Monthly Archives: November 2007
Troubleshooting Apache
| 29-Nov-2007 | Posted by Sonia Hamilton under |
telnet server.foo.com 80
GET / HTTP1.1
Host: www.foo.com
A good article from prefetch.net.
Open Source Calendaring
| 29-Nov-2007 | Posted by Sonia Hamilton under |
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
| 28-Nov-2007 | Posted by Sonia Hamilton under Networking, 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
| 15-Nov-2007 | Posted by Sonia Hamilton under Ssh |
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
| 14-Nov-2007 | Posted by Sonia Hamilton under Expect, Perl |
Recent Comments