dpkg --add-architecture i386#!/bin/bashxrdb -merge <<EOIxterm*altSendsEscape: trueXTerm*eightBitInput: falseEOIusername ALL = NOPASSWD: /sbin/poweroff
username ALL = NOPASSWD: /sbin/reboot
mkfs.ext4 ...debootstrap lucid /targetecho "auto eth0" >>/target/etc/network/interfacesecho "iface eth0 inet dhcp" >>/target/etc/network/interfacescp /etc/resolv.conf /target/etc/resolv.confmount -o bind /proc /target/procmount -o bind /sys /target/sysmount -o bind /dev /target/devchroot /target#apt-get updateexport LC_ALL=Captitude reinstall console-setupsed "s:main:main restricted universe multiverse:" /etc/apt/sources.list >/tmp1mv /tmp1 /etc/apt/sources.listapt-get updateapt-get install nano mc ssh linux-image command-not-found bash-completionpasswdexitmount -o remount,ro /targetapt-get install locales util-linux-locales/etc/default/locale LANG="en_US.UTF-8"LANGUAGE="en_US:en"/usr/share/locales/install-language-pack en_US.UTF-8modprobe kvmmodprobe kvm-intelmodprobe kvm-amdkvm -drive file=image -boot c -drive if=virtio,file=image -cdrom ubuntu-10.04.2-desktop-i386.iso -net nic,model=virtio -net user