Chapter 5. Installing and Booting from a Kernel


Previous chapters showed you how to download and build your kernel. Now that you have an executable filealong with any modules you builtit is time to install the kernel and attempt to boot it. In this chapter, unlike earlier ones, all of the commands need to be run as the root user. This can be done by prefixing each command with sudo, by using the su command to become root, or actually by logging in as root.

To see whether you have sudo installed and the proper access set up, do the following:

 $ sudo ls ~/linux/linux-2.6.17.11/Makefile Password: Makefile 

Enter either your own password at the password prompt, or the password of the system administrator (root). The choice depends on how the sudo command is set up. If this is successful, and you see the line containing:

 Makefile 

then you can skip to the next section.

If sudo is not installed or giving you the proper rights, try using the su command:

 $ su Password: # exit exit $ 

At the password prompt, enter the password of the system administrator (root). When the su program successfully accepts the password, you are transferred to running everything with full root privileges. Be very careful while as root, and do only the minimum needed; then exit the program to continue back as your normal user account.



Linux Kernel in a Nutshell
Linux Kernel in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596100795
EAN: 2147483647
Year: 2004
Pages: 113

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net