Notepad

This is my little spot to keep notes for things I need to remember and maybe others would like to remember.

Backup/Restore installed applications on a Debian based system

Tar over SSH

tar xcvf user@host dir/foo.tar.gz

SSHFS

  1. sshfs hostname:/remotedir localdir/
  2. fusermount -u localdir/

Remap Kensington Slim Type Keyboard Backslash key 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

Go to the Embedded tab and move the WebKit part up to the top.

Qemu

  • Create a disk image (static size) or a qcow image (dynamic size):
    • qemu-img create foo.img 2G
    • or...
    • qemu-img create -f qcow foo.qcow 2G
  • Start installation from ISO:
    • qemu -cdrom foo.iso -hda foo.img -boot d
    • or...
    • qemu -cdrom foo.iso -hda foo.qcow -boot d
  • Boot installation with 512M of memory:
    • qemu -m 512 -hda foo.img
    • or...
    • qemu -m 512 -hda foo.qcow