Each distribution has some specific tools to build a custom kernel from the sources. This article is about compiling a kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (vanilla kernel) so that you are independent from the kernels supplied by your distribution. It also shows how to patch the kernel sources if you need features that are not in there.
1 Preliminary Note
I prefer to do all the steps here as the root user. So if you haven't already created a root login, you should do so now:
sudo passwd root
Afterwards, log in as root:
If you would like to work as a normal user instead of root, remember to put sudo in front of all the commands shown in this tutorial. So when I run
you should run
sudo apt-get update
Full Article .