Message me

Have a nice day,
Claudius

Valid HTML 4.01 Strict


Short Hints

Some of these may be totally outdated, while others may involve great risks. Some do both. Use at your own risk!

Clone a hard drive

Machine to clone:
dd if=<hdd> | gzip -c | nc -vv -n -w 10 <target_ip> <target_port>
Target:
nc -l -vv -p <target_port> > `date +%Y-%m-%d`.full.img.gz

Print out dd status

dd dumps out its status when receiving a SIGUSR1:
kill -SIGUSR1 <dd_pid>

Load german keymap

loadkeys de-latin1

Fix your MS-DOS/Win[9x/Me] master boot record

Boot from your installation cd or something similar and run
fdisk /mbr

Necessary when installing the Canon IP4200

ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
(see also)

Setting a packet to \"hold\"

echo <name> hold |dpkg --set-selections

Install a TrueType-Font on Debian

Necessary: libft-perl defoma x-ttcidfont-conf
defoma-hints -c --no-question truetype <PathToFonts>/* >/etc/defoma/hints/<some name>.hints
defoma-font register-all /etc/defoma/hints/<some name>.hints
defoma-reconfigure
xset fp rehash
Taken from tuxknowledge.org

Build a Debian-Package

HOWTO on Linux.com

Resize images

for file in *original.jpg; do newfile=$(echo ${file}-400); convert $file -resize 400 -quality 100 $newfile; done

Convert m4a-files to mp3 with ffmpeg

for i in $(ls *m4a); do ffmpeg -i $i -ab 128k $(echo $i | sed \'s/m4a/mp3/g\'); done && rm *m4a