Monthly Archives: November 2007

Troubleshooting Apache

telnet server.foo.com 80
GET / HTTP1.1
Host: www.foo.com

A good article from prefetch.net.

Open Source Calendaring

Good article and comments on slashdot about Open Source Calendaring replacements for Exchange, et al.

Suggestions are Chandler/Cosmo, CalDAV, Hula, Zimbra, Scalix, Citadel, but still none seem to be good enough.

Troubleshooting mac addresses in Ubuntu

As far as /etc/iftab goes, this is not used in Ubuntu 7.10
anymore….this functionality is moved to hotplug,. and maybe causing
your prob. (more…)

ssh, ssh-agent, keychain and cron notes

Summary

To setup ssh and keychain to allow ssh related jobs to run from cron:

  • generate keys with a password (ssh-keygen -t dsa) and install keychain. Do only on secure machines ie ones that only you (or a small number of trusted admins) can logon to as root – typically your laptop/desktop and a secure admin server
  • add the following lines to your ~/.profile:
  • some sites say .bash_profile, but I use .profile as I use both bash and zsh (don’t have both as then only .bash_profile will be read)
  • I check keychain is executable with -x as I have the same .profile on all machines (synced via a script)
  • I use rsa keys as I work with older ssh1 machines; dsa keys are preferable.

export HOSTNAME=`hostname` # HOSTNAME not set some machines
if [ -x /usr/bin/keychain -a -f $HOME/.keychain/${HOSTNAME}-sh ] ; then
/usr/bin/keychain $HOME/.ssh/id_rsa
source $HOME/.keychain/${HOSTNAME}-sh
fi

expect notes

(draft)

Expect Language, Expect Book.

Summary

  • set timeout x (in seconds)
  • spawn
  • expect
  • send

(more…)

Next Page »