Today, continue on your path to RHCE certification. Learn about creating a new kernel the easy way, kernel sources, recompiling a kernel, and the cron and at systems. Take notes, because there's a test at the end. This comes from chapter five of Red Hat Certified Engineer Linux Study Guide (Exam RH302), fourth edition, by Michael Jang. (McGraw-Hill/Osborne, 2004, ISBN: 0-07-225365-7).
It can take time to load all of the RPMs required to compile and customize the Linux kernel. It can be difficult to remember to install every RPM. There is an alternative: the Red Hat Package Management utility. I値l show you how to use this tool to load the kernel source packages in Exercise 5-3.
Exercise 5-3 Loading the Kernel Source Graphically
In this exercise, we値l install the source code and associated files for the Linux kernel using the Red Hat Package Management utility. I値l assume that you池e using the same network source that you created in Chapter 2. This exercise assumes that network source is on a remote computer with an IP address of 192.168.30.4. Substitute the IP address (or if you have a DNS server for your LAN, the hostname) for your network source computer. You値l need to start from the Linux GUI.
If you池e not already in the Linux GUI, run the startx command.
Open a command line interface. Right-click on the desktop, and click New Terminal in the pop-up menu that appears.
At the command line interface, make a connection to the network source. I知 assuming that you have an active NFS connection, no firewall, and a local /mnt/inst directory. For the given source, run the following command (substitute your IP address or hostname, and preferred mount directory in this command):
# mount -t nfs 192.168.30.4:/mnt/inst /mnt/inst
Start the Package Management utility. Point to the mounted network source (without the --tree option, the Package Management utility works from the installation CDs):
# redhat-config-packages --tree=/mnt/inst
Select the Kernel Development package group for installation.
Click Update. The Package Management utility computes the dependencies, adding RPMs to the list of packages to be installed.
Once you see the Completed System Preparation window, click Continue.
The Package Management utility starts installing the packages you need to examine the source code and recompile the Linux kernel.
When installation is complete, click OK.
Click Quit to exit from the Package Management utility.
This is part one from the fifth chapter of Red Hat Certified Engineer Linux Study Guide (Exam RH302), fourth edition, by Michael Jang. (McGraw-Hill/Osborne, 2004, ISBN: 0-07-225365-7). Check it out at your favorite bookstore today. Buy this book now.