Lab 3x Extra Credit: Installation of a Debian GNU/Linux Distribution
Last modified: Sep 20, 2011
The purpose of this lab is to install Debian 5.05 onto the virtual machine that you used for Red Hat 9.
In doing this lab, you will be demonstrating your ability to perform an interactive, network install of a Linux Operating System from a CD-ROM image.
Specification
Virtual Machine specification:
- Use the machine that you already made for Red Hat 9 which has login1-191 as its name.
- Edit the VM settings as follows:
- Type: Debian GNU/Linux 5 (32-bit) (Click the Options tab to do this.)
- Storage: 8 GB diskdrive with thin provisioning. (Expand from 4 GB.)
- RAM: 378 MB (Increase from 256)
Install specifications:
- You may do either a regular or graphic install.
- You must specify the hostname to be debian and the domain to be localdomain.
- Note: the search for a Network Time server will fail after 3 attempts.
- Select Pacific Standard Time for the timezone setting.
- Partition disks: choose Guided - use entire disk
Follow the prompts and choose: "Separate /home, /usr, /var, and /tmp partitions.
Once you see partitions #1, #5, #6, #7, #8, #9: choose "Finish partitioning and write changes to disk.
- Specify funny Cabrillo as the root password.
- New user: Guest Account - username: guest, password: funny Cabrillo
- Package Management:
- Choose one of the Debian mirrors e.g. ftp.us.debian.org
No HTTP proxy is needed.
Do not participate in the popularity usage survey.
Software selection: Choose Desktop environment and Standard system only.
- Install the GRUB bootloader to the master boot record.
You will also demonstrate logging in to your new installation as superuser and running system commands to gather information about your installation.
Procedure
As you go through this installation, note the similarities and differences between Debian and Red Hat 9.
- Log in to cislab.cabrillo.edu using your rdp client.
- Power on your existing Red Hat 9 virtual machine, and at the GRUB screen, direct it to come up in single user mode.
- At the shell prompt destroy the current system with the following command:
dd if=/dev/zero of=/dev/sda bs=512 count=1
- Click the "CDROM" tool in the toolbar and use the submenus to connect the cdrom to the debian-505-i386-netinst.iso image in nfsstore1->ISO. Note the smaller size of this iso; it relies on the network to download most of the software packages.
- Now click in the console window and type init 6 to reboot the virtual machine.
- On reboot, the virtual machine should present a boot screen for Debian GNU/Linux. You may select Install or Graphcial install menu option.
- Proceed through the installation using the default values except where noted
above. The action of the mouse will be very slow and lazy like. It is best to leave the mouse pointer in the lower right corner where the Next button is, and use the tab and arrow keys to navigate the screen.
- Once you have prepared the hard disk for installation, the base system will be installed from the iso image. This won't take long.
- Assign the root password, create a guest account, and then pick a mirror from where the rest of the software packages will be installed.
- Do not participate in the "popularity-contest", but on the following "select software" page select Desktop environment and Standard system
- The network installation will take a while, about 800 package files will be downloaded and then installed.
- Your final task to is install the GRUB boot loader to the master boot record.
- When the installation is complete, reboot the system.
- When you do reboot the virtual machine, you should come up to a screen that
looks like the image below. It will pause here for 5 or 10 seconds before autobooting.
- The system boots in quiet mode with only a few mesages coming to the screen.
In short order, you will be presented with a graphical login screen.
Note: Graphic disktops under VMware run slowly until a custom package called
vmware-tools is installed. We will install that package later in the course when we study package installation. In the mean time, switch to a console screen with <ctrl><alt><space>F1.
- When the system presents you with the debian login prompt, log in as guest.
Question: does Debian come preconfigured for the sudo command?
- As the guest user, assume root's identity and environment using the su command.
Question: what option is required to the su command?
- Your final task here is to collect information about your installation and
turn that information in to Opus as a file named lab3x. You can collect the information by redirecting the output of the following commands, or you can run the script program. The commands and what they do are listed below:
ifconfig # Network connectivity and interface settings
fdisk -l; mount # Disk preparation
tail -24 /boot/grub/menu.lst # The GRUB installation
dpkg -l # List of packages installed
df -h # Amount of disk space used for each filesystem
- You are now ready to turn in your work and shutdown your virtual machine;
Feel free to continue exploring your Debian system - perhaps comparing it to the
Red Hat system from lab1.
Turn in
You should be in root's home directory (/root) where the lab3x or the typescript file was created. Secure copy this file to your home directory on opus:
scp typescript logname@opus.cabrillo.edu:lab3x
Grading Rubric
Your lab will be graded for the following components:
- 1 point -
- for each of the file outputs requested above. (6 pts. total)