Hello All,
I told you I shall be back with a new idea

Today this article came to my mind to write about because when ever I go to a forum I see the same question: How can I compile a Kernel ?
Really this questions is asked by lots of people not just newbie's but even intermediate users. So I decided to write this short article to help out.
Important Note:
Do not run a command as root until I say so.
1st: you download the latest Kernel version from here:
http://www.kernel.org/
2nd: Move the file you downloaded into a directory change to it and if the kernel is downloaded in a gz file type ? you extract it like this:
Code:
tar xvfz kernel-package.gz
if its a bz2 type you extract it like this:
Code:
tar xvfj kernel-package.bz2
3rd: Enter the directory you just extracted and run any of the following kernel configuration types:
1. make config
2. make oldconfig
3. make menuconfig
4. make gconfig
5. make xconfig
Note:- Not all of them exist by default on a Linux System, you need to install them.
the "
make config" is a Q&A configurator. "
make oldconfig" is used when you have a pre-config file and want to reuse it in compiling the new Kernel. "
make menuconfig" is just like the netconfig that runs under CLI and you choose the needed options by marking them with a correct sign. "
make gconfig" is a configurator running under GTK+. "
make xconfig" is also a configurator run under QT.
4th: Now run
inside the directory of the kernel. This shall build the bzImage.
Important Note:
Now continue to run the commands as root.
5th: Install the needed modules for the kernel. Run this:
Code:
make modules_install
6th: Install the new Kernel, by doing the following:
Code:
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.0
Code:
cp System.map /boot/System.map-2.6.0
7th: All you have to do now is edit the boot loader used, here I use GRUB. Add the following lines to the end of the file:
Code:
title SUSE Linux 10.1 using Kernel vmlinuz-2.6.0
root (hd0,0)
kernel /vmlinuz root=/dev/hda3 vga=0x317 splash=silent showopts
initrd /initrd
Finally: Reboot your machine you shall have a new running Kernel.
I hope you like this mini HOWTO - Linux Kernel Compilation
Regards 2 all,
B!n@ry