This is my little spot to keep notes for things I need to remember and maybe others would like to remember.
Backup/Restore applications on a Debian based system
Backup:
dpkg --get-selections > selections.txt
Restore:
dpkg --set-selections < selections.txt dselect update apt-get dselect-upgrade
Tar over SSH
tar xcvf user@host dir/foo.tar.gz
Mount remote directory via SSH
Mount:
sshfs hostname:/remotedir localdir/
Unmount:
fusermount -u localdir/
Remap Kensington Slim Type keyboard \ to Alt
xmodmap -e "keycode 94 = Alt_L
Get your external IP address
curl --silent whatismyip.com/automation/n09230945.asp | awk '{print $1}'
WebKit by default in Konqueror
keditfiletype text/html
Qemu
Create a disk image (static size) or a qcow image (dynamic size):
qemu-img create foo.img 2G
qemu-img create -f qcow foo.qcow 2G
Start installation from ISO:
qemu -cdrom foo.iso -hda foo.img -boot d
qemu -cdrom foo.iso -hda foo.qcow -boot d
Boot installation with 512M of memory:
qemu -m 512 -hda foo.img
qemu -m 512 -hda foo.qcow