Practical Exercises
To be completed due by 2/2/2005
The practical exrecises consist of Debian installation (manual and semi-automatic)
and practicing with dpkg and apt.
During the system re-installation, you won't be able to run a browser
so you'd better to print out this page.
Backup the original system configuration.
Generate a list of installed packages on your desktop and store it
in a file:
Archive some configuration files on your system:
Get a blank floppy; format it with ext2 file system; mount it; copy the
both created files onto the floppy:
Now you should be able to restore the original system configuration after Debian re-installation.
Manual system installation.
Download floppy images of the installer boot, root and network drivers:
boot.img
root.img
net-drivers.img
Create three installation floppies:
Boot the system from the boot floppy and follow the installer
instructions. When prompted for the installation type, choose
http
Edit countries list by hand
Enter information manually
for host type in:
192.168.5.55; for directory: /debmirror.
It is obvious to choose the nearest Debian mirror. In our case, it is a server in the Unisys lab. If you live on campus and
want to install Debian on your computer in the dorm, choose debian.rutgers.edu.
For partitioning, you can choose the following layout, or stay close to it:
In this exercise, you don't care about installing various software since the
system is going to be reinstalled again in the next exercise. To save time, install only the base system. At the second installation stage after reboot,
create root account, skip software installation and APT configuration. Now
you should be able to login into the new system as root.
proceed with "Finish configuring base system".
Semi-automatic installation
Boot the system from the boot floppy. At the prompt,
type the following boot parameters:
When prompted, chose the default language, English.
Then just wait until the installer finishes the installation. At the second
stage, after reboot, skip software installation and proceed with
"Finish configuring base system". You should be able to login as root with
password "r00tme", specified in preseed.cfg file at http://192.168.5.250/preseed/preseed.cfg. Change the root password upon the first login.
Restore the original configuration
As you may have noticed, the newly installed system is not configured and lacks a lot of useful software, for example, you can not run startx since the XFree86 is not
installed; the host name is the default, debian.
Mount the floppy with the two files created in the first exercise and
copy the one with the configuration archive:
Reboot the system. Now you see the host name shows as it was on the old system.
Configure APT:
Choose edit sources list by hand. It will start
nano editor. In the editor, write the following entries then exit with saving
(Ctrl-X):
Run update for apt:
Copy file old_system.dat from the floppy into your home directory.
Generate a list of installed packages on your new ystem and store it
in a file:
Comparing files new_system.txt and old_system.txt, you can see what packages have not been installed on
the new system.
To compare the content of the two files, download a script,
make_update_list.sh.
Since you don't have a browser at this moment, install wget
and fetch the file with it:
Make the script executable and run as follows:
The script will generate a new file, diff.txt, which
contains the list of the packages which were installed on the old system and
are not installed on the new one -- about 130 packages as shown by
By using APT, install ssh:
Similarly install the following packages:
xserver-xfree86
xfonts-base
xbase-clients
fvwm
xterm
xemacs21
vim
mozilla
less
gcc g++ g77
make autoconf autotools-dev automake
Again, check the number of the absent packages:
Upgrade the kernel to 2.6. To check what the kernel the system is running, execute
command
Find the latest available kernel package for "686" kind of system:
As of now, the latest available kernel package
is kernel-image-2.6.8-2-686.
Run apt to install it:
Reboot the system and verify that it boots into the new kernel:
Read about dpkg and APT:
Sec. 24.2
APT manual