This procedure will install the base Debian GNU/Linux operating system.
Note: If you have rebooted your computer since you created the RAID volume, then you must manually restart the md0 device with this command:
# mdrun
The RAID volume will be started automatically after the operating system is fully installed.
# ifconfig eth0
[screenshot]
Check for a line that begins with "inet addr". If this line does not exist, then your ethernet interface was not automatically configured with DHCP and you must configure the interface manually.
If an error like this is returned, then your network adapter was not automatically detected:
eth0: error fetching interface information: Device not found
# hostname -v vmwoody
[screenshot]
In this example, the computer has been named "vmwoody". Use a different name for your computer.
Note: Choose a unique name for this computer. Generic names like "mail", "smtp", and "pop" are especially poor choices that will cause conflicts later.
# mkdir -v /target
[screenshot]
We will use this directory as a filesystem "mount point".
# mount -v /dev/md0 /target
[screenshot]
The contents of /dev/md0 will become accessible under the /target directory. (You can do the same thing in Windows 2000 with the "Computer Management" MMC panel.)
# debootstrap woody /target
[screenshot]
[screenshot]
The base Debian install is appoximately 200 megabytes. Depending on the speed of your Internet connection, it may take a long time to download.
Note: The distribution name for Debian 3.0 is "woody". This command will download woody to the /target directory. The distribution name for Debian 3.1 will be "sarge". When Debian 3.1 is released, you must run "debootstrap sarge /target" instead.
# rm -v /target/etc/hostname
[screenshot]
# hostname > /target/etc/hostname
[screenshot]
# cat /target/etc/hostname
[screenshot]
# rm -v /target/etc/resolv.conf
[screenshot]
# cp -v /etc/resolv.conf /target/etc/resolv.conf
[screenshot]
Note: If you manually configured your network interface earlier, then you must also manually create this file.
# echo "127.0.0.1 $(hostname) localhost" > /target/etc/hosts
[screenshot]
# cat /target/etc/hosts
[screenshot]
The hostname that you specified earlier should appear in this file.
# HOME=/root chroot /target /bin/bash
[screenshot]
Notice how the command prompt changes.
# base-config
[screenshot]
Answer the questions as follows:
# mount -v /dev/fd0 /floppy
[screenshot]
# cd /; tar xzvf /floppy/debian-etc.tar.gz
[screenshot]
# umount -v /dev/fd0
[screenshot]
# apt-get install mc
[screenshot]
# mcedit /etc/fstab
[screenshot]
Notice /dev/md0 in this file. If you are not using a RAID volume, then you must change it to the the name of the partition that contains the Debian operating system. In most computers, this will be /dev/hda1 or /dev/sda1.
# mcedit /etc/lilo.conf
[screenshot]
Notice both instances of /dev/md0 in this file. If you are not using a RAID volume, then you must change it to the the name of the partition that contains the Debian operating system. In most computers, this will be /dev/hda1 or /dev/sda1.
(The suggested Lilo configuration is consistent with the usage of install-mbr in the previous chapter, but contrary to most other Linux documentation.)
# mount -v /proc
[screenshot]
# apt-get install mdadm
[screenshot]
Answer the questions as follows:
Do you want to start the RAID monitor daemon? No
The mdadm package provides tools for managing and monitoring RAID volumes. Automatic fault notifications may be enabled after the MTA is configured.
# apt-get install --target-release testing initrd-tools
[screenshot]
The initrd tools are used to start your computer. The initrd-tools package in Debian/woody does not support mdadm-style volume autodetection, so we must use the "--target-release" switch to get a more recent version. As of this writing, the "testing" distribution is Debian/sarge.
# apt-get install kernel-image-2.4.18-386
[screenshot]
[screenshot]
Answer the questions as follows:
Install a boot block using the existing /etc/lilo.conf? Yes.
Note: You may receive modprobe warnings after installing this package. These warnings are safe to ignore. They happen because the running Knoppix kernel is different than the Debian kernel.
# apt-get install discover
[screenshot]
The discover program automatically detects hardware and loads drivers when the computer starts. If you do not install this package, or if your hardware is not properly identified, then you can manually specify drivers in the /etc/modules file.
# exit
[screenshot]
Notice how the prompt changes.
# reboot
[screenshot]
The base operating system has been configured. The computer should reboot into the Debian operating system.