HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_87
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 87 [root@deep linux]# make modules [root@deep linux]# make modules_install NOTE: The make modules and make modules_install commands are required only if you say Yes to “Enable loadable module support (CONFIG_MODULES)” in your kernel configuration above. Installing the new kernel 1.     Copy the file “/usr/src/linux/arch/i386/boot/bzImage” from the kernel source tree to the “/boot” directory, and give it an appropriate new name. [root@deep linux]# cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz- kernel.version.number NOTE: An appropriated or recommended new name is something like  vmlinuz-2.2.14, this is important if you want a new rescue floppy or emergency boot floppy using the  mkbootdisk program that require some specific needs like for example: vmlinuz-2.2.14 instead of vmlinuz- 2.2.14.a 2.     Copy the file “/usr/src/linux/System.map” from the kernel source tree to the “/boot” directory, and give it an appropriate new name. [root@deep linux]# cp /usr/src/linux/System.map /boot/System.map-kernel.version.number 3.     Move into the “/boot” directory and rebuild the links vmlinuz and System.map with the following commands: [root@deep linux]# cd /boot [root@deep /boot]# ln -fs vmlinuz-kernel.version.number vmlinuz [root@deep /boot]# ln -fs System.map-kernel.version.number System.map We must rebuild the links of “vmlinuz” and “System.map” to point them to the new kernel version installed. Without the new links LILO program will look by default for the old version of your linux kernel. 4.     Remove obsolete and unnecessary files under the “/boot” directory to make space: [root@deep /boot]# rm -f module-info [root@deep /boot]# rm -f initrd-2.2.12-20.img The “module-info” link point to the old modules directory of your original kernel. Since we had installed a brand new kernel, we don’t need to keep this broken link. The “initrd-2.2.12-20” is a file that contains an initial RAM disk image that serves as a system before the disk is available. This file is only available and it is installed from the Linux setup installation only if your system has a SCSI adapter present. If we use and have a SCSI system, the driver now will be incorporated into our new Linux kernel since we have build a monolithic kernel. So we can remove this file (initrd- 2.2.12-20.img) safety. 5.     Create a new Linux kernel directory that will handle all header files related to Linux kernel for future compilation of other programs on your system.