Compiling the 2.6.x Kernel
Preraring to compile a new kernel:
The latest kernels are available at www.kernel.org. The kernel version is in three parts, major#. minor#. patch level. Kernels with an odd minor numbers such as 2.5.x, or 2.7.x are development or beta versions and may not be stable,it would be best to use only kernels with even minor numbers. 2.4.x, 2.6.x
For this example I will use kernel 2.6.11. Download linux-2.6.11.tar.bz2 cd to /usr/src and su to root, check to see if /usr/src/linux is a directory or a symlink.
If you see something like "linux -> linux-2.6.6" then "linux" is a symlink and needs to be removed.
If "linux" is a directory then rename it using the kernel version numbers
I used 2.6.6 as an example.
to find out the version of the curent kernel.
Now you are ready to unpack the new kernel source,
or if you downloaded the .tar.gz insted of the .tar.bz2
This is a large file so it will take a minute to unzip, then there will be a new directory named linux-2.6.11
Now make a new symlink
Compiling the new kernel:
Use "make gconfig" or "make xconfig" if you are in graphical mode, or make menuconfig if in text mode.Then chose the options and modules needed for your computer. "make oldconfig" will look for a file name ".config" and use that to set the options, you can copy ".config" from the old kernel source directory to the new one to use the same setup.
Installing the new kernel:
if vmlinuz and System.map are symlinks remove them
If they are not symlinks rename to save them
Copy new files
Creat new symlinks
update lilo or grub or whatever boot loader you use, so it boots the new kernel.