Lab #1: Installation
Date: January 16, 2008
Points: 10
- Select a removable hard disk from the box.
- Label it with "CIT 470" and your name.
- Pick up a CentOS 5.1 DVD.
- Insert and lock your removable hard disk in a PC.
- Boot the PC with the CentOS 5.1 DVD.
- Install CentOS 5.1, with the following options
- Skip media test.
- Manually partition the removable drive. Do not modify partitions on the fixed drive, which will be either hda or sda, depending on whether it's a PATA or SATA drive. If at any time you are unsure of which device is the removable drive, ask the instructor.
- Uncheck the fixed drive.
- Select Review and modify partitioning layout.
- Click on Next.
- Remove all existing partitions on the removable drive. Do not remove any partitions from the fixed drive.
- Create a 10GB ext3fs root partition. Check only the removable drive as an allowable drive in the Add Partition dialog.
- Create a 1GB swap partition. Check only the removable drive as an allowable drive in the Add Partition dialog.
- Create a 20GB ext3fs /var partition. Check only the removable drive as an allowable drive in the Add Partition dialog.
- Leave the rest of the disk unused by any partition. We'll need this space for future labs. You'll have to re-install from scratch if you don't leave this space unused.
- Install GRUB bootloader on the removable drive with the default options.
- Configure network access with DHCP.
- Set the time zone to America/New York.
- Set the root password to the password I give you.
- Select "Customize now" for the software selection.
Remove the following packages from the install list:
- Games and Entertainment
- Graphical Internet except Firefox
- Graphics
- evolution-* and planner from Office Productivity
- Sound and Video
- Reboot once the install is complete. If you encounter a problem, such as GRUB not being installed or Grub Error 17: Cannot Mount Selected Partition, reboot your system with the CentOS DVD.
- Enter linux rescue at the boot prompt.
- Follow the instructions to get a root shell.
- chroot /mnt/sysimage
- To re-install GRUB, run grub then
- root (hd0,0)
- cat /etc/passwd
- If that passwd file has the student user in it, then that's your removable disk. Otherwise, try setting the root to (hd1,0) and examine the passwd file again. Do not do the next step until you've set the root disk correctly. Use the same disk number you used for the root in the setup command below.
- setup (hdN)
- quit
- Reboot the system.
- To fix GRUB error 17
- vim /boot/grub/menu.lst
- Change the root to the other disk (from hd1 to hd0 or vice versa).
- Save the file and reboot.
- Post-install configuration.
- Enable the firewall.
- Accept the default SELinux configuration.
- Set the correct date and time.
- Create a user account named "student" with the password I give you.
- Update CentOS
- Run yum update to update your new CentOS installation. If you receive an error about an existing lock, read the process ID (PID) from the lock file specified in the error message and kill that PID before running yum again. Reboot after yum finishes and before attempting to install VMWare Server.
- Install VMWare Server
- Download the VMWare Server 1.04 tar.gz file.
- Register VMWare Server 1.04 (write down the serial number)
- Install packages you'll need for installing VMWare Server:
yum install gcc kernel-devel xinetd
- Extract the tar file: tar xzf VMware-server-*
- Move into the directory you extracted and run vmware-install.pl
- Configure all 3 types of networking (bridged, NAT, host only).
- Use /var/vm as the directory in which to store your virtual machines.
- Accept defaults for all other options.
- Run VMWare Server from the Gnome menu to verify that it works.
- Submit your lab
- Use sftp to transfer the following files from root's home directory of your new install. Run man sftp if you don't know how to use sftp.
- anaconda-ks.cfg
- install.log
- install.log.syslog
- Create a file called readme that provides one-sentence explanations of the contents and purpose of the three files listed above. Transfer readme to kosh too.
- Login to kosh
- Use the submit program to submit the files you transferred to kosh with an assignment name of "lab1".
©2008 James Walden, Ph.D.