After Googling and ogling a lot of documentation about installing
Debian in a chroot environment, I decided to put together
this quick checklist, mostly for my own purposes, so that I wouldn't
have to search around so much the next time I install Debian. Feel
free to use it if you wish.
debootstrap. The Debian package can
be fetched from /debian/pool/main/d/debootstrap on your
preferred Debian mirror, such
as ftp://ftp.se.debian.org/.debootstrap to bootstrap the base system. Quick
command:
debootstrap --arch i386 etch /mnt/debian ftp://ftp.se.debian.org/debian
/proc in Debian's prefix./etc/default/rcS
and set the timezone by either symlinking the correct tz file into
/etc or by running tzconfig.
/etc/fstab.LANG="en_US.UTF-8" or similar to /etc/default/locale./etc/hostname, /etc/hosts
and /etc/network/interfaces. A rather
standard configuration for the last would be as follows:
auto lo eth0 iface lo inet loopback iface eth0 inet dhcp
debootstrap should have
gotten /etc/resolv.conf right, but it is
wise to check to be sure.
/etc/apt/sources.list. The
following is a rather sane default configuration for a stable
system:
deb http://ftp.se.debian.org/debian etch main contrib deb-src http://ftp.se.debian.org/debian etch main contrib deb http://security.debian.org/ etch/updates main contrib deb-src http://security.debian.org/ etch/updates main contribRemember to run
apt-get update afterwards.
root password.locales-all package.console-data, unicode-data
and kbd packages.linux-image-2.6-686.timeout 10 default 0 title Debian Etch root (hd0,0) kernel /boot/vmlinuz rw root=/dev/hda1 initrd /boot/initrd.imgNote, in particular, that Debian's rc system requires the root filesystem to be mounted in read-write mode.
You may want to run tasksel to get some common
packages (for example, the standard set).
nfs-commonlessniskrb5-userlibpam-krb5openssh-server