Archive

Archive for the ‘Sysadminery’ Category

SSH and Screen

November 16th, 2005
Comments Off

I nabbed this from off google to solve the same problem. You are using screen and you disconnect and come back later and all your ssh auth sessions are broken. I modified it a bit to be friendlier about locations.

if [ ! -z "$SSH_AUTH_SOCK" ]; then
    screen_ssh_agent=/var/tmp/${LOGNAME}/state/ssh-agent-screen
    if [ "$TERM" = "screen" ]; then
        SSH_AUTH_SOCK=${screen_ssh_agent}; export SSH_AUTH_SOCK
    else
        if [ ! -d "$(dirname ${screen_ssh_agent})" ]; then
            mkdir -p $(dirname ${screen_ssh_agent})
        fi
        ln -snf ${SSH_AUTH_SOCK} ${screen_ssh_agent}
    fi
fi

Enjoy…

Sysadminery

Mod Rewrite

November 14th, 2005
Comments Off

Well I think I understand it now, at least better than I did before. As with most things apache it’s a matter of experience and trial and error. But I’ve got things working the way I wanted them. I guess everyone’s advice about mod_rewrite is true… Stay away whenever possible.

Sysadminery

Graphs, Graphs, Graphs

November 10th, 2005
Comments Off

After doing alot of graphing work at well… work. I decided to get it setup at home. The parltry amount of traffic makes them not very interesting but it was a good learning experience. Cacti is a much better replacement for mrtg. Loads easier to setup and does better graphs to boot. An even more obscure use of rrdtool can be found in mailgraphs which is neat though completely pointless . Just serves as proof that my email of 7+ years gets alot of spam.

Sysadminery