Home Linux Distros Debian
Install debian in a directory:

apt-get install debootstrap
mkdir /path/to/NewDebian
debootstrap lenny /path/to/NewDebian

mount -o bind /proc /path/to/NewDebian/proc
mount -o bind /dev  /path/to/NewDebian/dev

echo "127.0.0.1   localhost" > /path/to/NewDebian/etc/hosts
echo "127.0.1.1   localhost" >> /path/to/NewDebian/etc/hosts

cp /etc/fstab /path/to/NewDebian/etc/fstab
vi  /path/to/NewDebian/etc/fstab

mkdir /path/to/NewDebian/boot/grub
cp /boot/grub/menu.lst /path/to/NewDebian/boot/grub/menu.lst
vi /path/to/NewDebian/boot/grub/menu.lst

chroot /path/to/NewDebian
passwd
#enable root login
vi /etc/default/rcS  #SULOGIN=yes
apt-get update
apt-get remove nano
apt-get install grub linux-image-2.6.26-1-amd64

#to make live-cd with install
apt-get install bootcd-i386 bootcd-mkinitramfs