Archive for November, 2011

Trac Configuration for GIT

So that I would remember

Add these to the <trac_env_dir>/conf/trac.ini

[components]
tracext.git.* = enabled
tracopt.ticket.commit_updater.committicketreferencemacro = enabled
tracopt.ticket.commit_updater.committicketupdater = enabled
mastertickets.* = enabled

After which, run the command:

trac-admin [path/to/trac] upgrade

This will upgrade the trac and install all the necessary modules

Using ssh-agent with ssh by Mark A. Hershberger (weblog)

So that I would always remember:

From Here

This is a neat trick that I can use with terminals:

Put the commands below on your $HOME/.bashrc

SSH_ENV="$HOME/.ssh/environment"

function start_agent {
     echo "Initialising new SSH agent..."
     /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
     echo succeeded
     chmod 600 "${SSH_ENV}"
     . "${SSH_ENV}" > /dev/null
     /usr/bin/ssh-add;
}

# Source SSH settings, if applicable

if [ -f "${SSH_ENV}" ]; then
     . "${SSH_ENV}" > /dev/null
     #ps ${SSH_AGENT_PID} doesn't work under cywgin
     ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
         start_agent;
     }
else
     start_agent;
fi 

And sure enough, if you log in, the pass key for your ssh-keys will be prompted. After which, you can use the keys without having to type the pass key everytime.

Fedora 16 Acer 4736z Blank Display

I almost not able to install Fedora 16 on this machine. Luckily, I found out through much google-ing that the backlight display of this machine dies out once the display driver is loaded. To fix this, you need to put these options in the kernel:

acpi_osi=”Linux” acpi_backlight=vendor

Put them once on the kernel line during installation, and then again on your grub.cfg in /boot/grub2 after installation.

Hope this helps.

Previous month Next month