Here is a method to use if you have not compiled your own kernel before.It's not the only method or perhaps the best but it is probably the easiest.
You'll need some packages to begin with:
Code:
aptitude install kernel-package libncurses5-dev fakeroot wget build-essential
Then make a sub-directory in your /home called 'Kernels':
Code:
ade@Pc1:~$ mkdir Kernels
Then change into the newly created directory and run the following command:
Code:
ade@Pc1:~$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.bz2
This will download the vanilla kernel source.
Next untar the kernel with:
Code:
ade@Pc1:~$ tar jxvf linux-2.6.34.1.tar.bz2
Next,change into the newly created kernel directory:
Code:
ade@Pc1:~$ cd linux-2.6.34.1
Next run the following command:
Code:
ade@Pc1:~$ make clean && make mrproper
Then copy your current kernel configuration with:
Code:
cp /boot/config-`uname -r` ./.config
Next we need to check the configuration options using 'menuconfig':
Which brings up the kernel configuration menu. Go to Load an Alternate Configuration File and choose .config (which contains the configuration of your current working kernel) as the configuration file.
Then browse through the kernel configuration menu and make your choices. When you are finished and select Exit, answer the following question (Do you wish to save your new kernel configuration?) with Yes.
You can now build the kernel with these commands:
Code:
ade@Pc1:~$ export CONCURRENCY_LEVEL=2
Code:
ade@Pc1:~$ make-kpkg clean
Code:
ade@Pc1:~$ fakeroot make-kpkg --append-to-version -amd64custom --initrd kernel_image kernel_headers
Now just wait for the compile to finish and install the .debs with dpkg.