Generating Certificates for Apache

$ openssl genrsa -des3 -rand file1:...:filen \ -out www.yourdomain.org.key 1024 $ openssl rsa -in www.yourdomain.org.key -out www.yourdomain.org.key $ openssl req -new -key www.yourdomain.org.key \ -out www.yourdomain.org.csr -days $DAYS $ openssl req -x509 -key www.yourdomain.org.key \ -in www.yourdomain.…

Keeping several machines updated using "dsh" and "sudo"

If you manage a whole bunch of servers or client workstations (or both), it comes in handy to update them all with just one command. (Credits: This is based on an article [http://www.linux-magazin.de/Artikel/ausgabe/2003/05/update/update.html] to be found in the "Linux…

Usefull Debian Links

Debian NEW Queue [http://developer.skolelinux.no/~pere/debian-NEW.html] FAQ of the German IRC Channel #debian.de [http://channel.debian.de/faq/] Why is package X not in testing yet? [http://bjorn.haxx.se/debian/testing.pl] Debian packages archive [http://snapshot.debian.net/] HOWTO - Install Debian Onto…

logout and clear

start this script in .bash_logout! > !/bin/bash if [ -z "tty|grep tty" ]; then exit 0; fi TTY=tty|tail -c2 if [ $TTY = "1" ]; then chvt 2; chvt $TTY; else chvt 1 chvt $TTY fi…

Making SASL2 working with postfix in sarge

Stop SASLAUTHD service Create directory for runtime files # mkdir -p /var/spool/postfix/var/run Move sockets into chroot # mv /var/run/saslauthd /var/spool/postfix/var/run/ Create symlinks, so that the old setup with the default locations is still intact # ln -s /var/spool/postfix/var/run/saslauthd…