qemu 
#> sudo apt-get install kqemu-source kqemu-common build-essential
#> sudo module-assistant prepare kqemu
#> sudo module-assistant auto-install kqemu

/etc/udev/rules.d/60-kqemu.rules:
KERNEL=="kqemu", NAME="%k", MODE="0660", GROUP="kqemu"

#> sudo addgroup --system kqemu
#> sudo adduser USERNAME kqemu
#> modprobe kqemu

create a qemu image:
#> qemu-img create -f qcow2 root.qcow2 20G

install with a cd:
#> qemu -hda root.qcow2 -cdrom cd.iso -boot d

boot installed system:
#> qemu -hda root.qcow2


[ view entry ] ( 520 views )   |  print article
fast sftp 
sftp -o Ciphers=blowfish-cbc USER@HOST

[ view entry ] ( 551 views )   |  print article
packet capture with ssh and tcpdump on a remote host and display with wireshark 
#> mkfifo /tmp/shark
#> ssh USER@HOST 'sudo tcpdump -i eth0 -w - -p -n -s 0' > /tmp/shark

In an other session
#> wireshark -k -i /tmp/shark

Then go back to first session and enter the ssh password.

[ view entry ] ( 1060 views )   |  print article
Grub Error 2: Bad file or directory type 
grub prior 0.97 only supports a inode size of 128 Bytes

To format a partition set inode size of 128 Bytes:

#> mkfs.ext3 -I 128 /dev/sda6

[ view entry ] ( 705 views )   |  print article
ugly rename hack 
find -name 'Pic*' -exec sh -c 'mv $1 "$(echo $1 | sed s/\\./_/g | sed s/^_/\\./g | sed s/_-//g)"' {} {} \;

[ view entry ] ( 748 views )   |  print article

<<First <Back | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Next> Last>>