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…

Compiling own debian kernels

run: # apt-get install genromfs # vi /etc/mkinitrd/mkinitrd.conf set: > MKIMAGE="genromfs -d %s -f %s" run: # cd /usr/src/linux # vi .config set: > CONFIG_CRAMFS=n # cramfs isn't needed CONFIG_ROMFS_FS=y # romfs support in kernel run: # PATCH_THE_KERNEL="YES&…

reinstalling all packagese

for a in `cat /var/lib/dpkg/status | grep -B 1 installed | \ grep -v installed | perl -ne 'if(/:s+(.*)/) {print qq($1n);}'`; \ do apt-get --reinstall install $a; done or # COLUMNS=200 dpkg -l | grep ^ii | awk '{print $2}' | \ xargs apt-get -y --reinstall install…