DOC PREVIEW
U of I CS 498 - Laboratory Project 1

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 498: Network Systems LaboratoryLaboratory Project 1Installing, Compiling, and Configuring Linux KernelJennifer C. HouDepartment of Computer ScienceUniversity of Illinois at Urbana ChampaignE-mail: [email protected] date: August 25 (Thursday)Due date: September (Tuesday)1 Project ObjectiveThis laboratory assignment is designed to familiarize you with the procedures needed to (i)install/compile Red Hat Linux 9 (or Fedora), (ii) install packages (e.g., VMware) using rpm,(iii) use VMware as a kernel development environment, (iv) configure network interfaces, (v)add, delete, and maintain user accounts, and (vi) set up NFS.2 Project DescriptionIn this project, you will act as a system administrator and install Red Hat Linux 9 (or Fedora)on two physical machines assigned to you in the IXA Intel lab, and one virtual host in VMwareon each of the physical machines. You will be given root privilege on the two machines assignedto you. Do not abuse the privilege; otherwise, your class account and access to the lab will besuspended.The project is organized in the following sequences. Please read the document carefully, usethe parameters recommended, and follow the instructions closely.2.1 Installing Redhat LinuxOne useful document that teaches you how to install Redhat Linux 9 is the installation guidelocated athttps://www.redhat.com/docs/manuals/linux/RHL-9-Manual/install-guide/1. Check out the three Redhat installation CDs from the TA.2. Set up the BIOS of your computer to boot from CDROM.3. Place the first Redhat Linux CDROM in the CDROM drive and boot your computer.Follow the instructions on the screen to install the system in graphics mode.4. The system will boot into X11. The default values should work for most of the choices,except that you should choose custom installation (rather than workstation installation)as the installation type.15. Use Disk Druid to set up the disk partition as follows. Partition the first disk into a swappartition (of file system type swap) that is twice of the size of the RAM (except thatnormally the size of the swap space is no larger than 1GB), a 100 MB /boot partition(of file system type ext3), a 4GB /usr partition (of file system type ext3), and a 4GB /partition (root partition of file system type ext3). You may partition the remainder of thedisk in whatever way you prefer. (Note the different partition types: primary, extended,and logical.) As the second disk will be used for backup, you may set up a single partitionon it.6. Choose GRUB as the boot loader, but do not set a GRUB password. Select to configureadvanced boot loader options. In the advanced boot loader configuration page, selectto install the boot loader on the Master Boot Record and do not set general kernelparameters.7. In the network configuration page, configure eth0 and eth1 to activate on boot and chooseto set up the hostname manually. Set the IP address, hostname, gateway, and primaryDNS values according to the following network configuration.Group i is in charge of 2 physical machines. In addition, a virtual host 1 will be createdin VMware on machine 1, and a virtual host 2 will be created in VMware on machine 2.The network configuration is as follows.Netmask 255.255.255.0Gateway 192.168.0.1Nameserver 192.168.0.100Domain cs498hou.uiuc.eduHost name mj.cs498hou.uiuc.edu, where j denotes the jth Xeon machineSubnet 192.168.(3i − 2).x, 192.168.(3i − 1).x,192.168.(3i).x, each is 100 Mbps Ethernet.IP address virtual host 1: 192.168.(3i − 2).1 (eth0)virtual host 2: 192.168.(3i − 2).2 (eth0)192.168.(3i − 1).1 (eth1)machine 1: 192.168.(3i − 1).2 (eth0)192.168.(3i).1 (eth1)machine 2: 192.168.(3i).2 (eth0)192.168.0.(i + 1) (eth1)8. Set the firewall configuration to “no firewall.”9. Choose a private root password for your group.10. Do not enable NIS (network information service). We will come back to set it in project2.11. Select the package (application) groups to be installed. All the kernel development andsystems utilities package should be selected. You may also select Editors and GNOMEdesktop packages. Do not install the web server at this point (as we will come back to itin project 2). Other packages can be installed at your discretion.212. You may wish to create a boot disk. The disk can be useful if you cannot boot directlyfrom the hard disk. If you do not wish to do so, simply skip the boot disk creation step.13. Repeat the installation process for the other physical machine (and later in Section 2.4).2.2 Compiling Linux KernelOne useful document that teaches you how to compile Redhat Linux 9 in detail is the Kernel-HOWTO located athttp://www.linuxdocs.org/HOWTOs/Kernel-HOWTO.html,on the official HOWTO websitehttp://www.tldp.org/HOWTO/HOWTO-INDEX/howtos.html.Another useful document ishttp://www.digitalhermit.com/linux/Kernel-Build-HOWTO.htmlExecute the following sequence of commands:1. make xconfig: This command runs a X-based configuration tool that asks you specificquestions about each and every kernel configuration option. Most kernel features havethree compilation options: Y, M, and N, where Y and N stand for “compiling the optiondirectly into the kernel” and “not compiling it at all,” and M stands for “compiling theoption as a kernel module.” You need to enable loadable module support.2. make dep: This command creates dependency information, so that the compiler knowseach component’s dependencies and can compile components as appropriate.3. make clean4. make bzImage: This command compiles the Linux kernel properly. The result will be akernel file called bzImage and located in /usr/src/linux-2.4.20-8/arch/i386/boot.5. cp /usr/src/linux-2.4.20-8/arch/i386/boot/bzImage /boot/bzImage-2.4.206. make modules: This command compiles the kernel module files.7. make modules install: This command copies all the compiled kernel modules into thesubdirectory of lib/modules/2.4.20-8.8. make install: This command copies the new kernel and its associated files to the /bootdirectory, builds a new initrd image, and adds new entries to the boot loader configurationfile.9. Use the command “ls -l /boot to make sure that the new initrd image file was created.Browse through /boot/grub/grub.conf to make sure that it contains a title section withthe same version as the kernel package you just installed.32.3 Configuring Network InterfacesAlthough the Redhat Installation CD-ROMs pretty much do the job of configuring/bringingup network interfaces, you should be aware


View Full Document

U of I CS 498 - Laboratory Project 1

Documents in this Course
Lecture 5

Lecture 5

13 pages

LECTURE

LECTURE

39 pages

Assurance

Assurance

44 pages

LECTURE

LECTURE

36 pages

Pthreads

Pthreads

29 pages

Load more
Download Laboratory Project 1
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Laboratory Project 1 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Laboratory Project 1 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?