tar xjvf kernel (Here -j option is for bz2 compression)
Make old configuration – asks you questions on what the kernel should support one by one, very time consuming.
Make menuconfig – creates a menu where you can browse options on what the kernel supports.
Requires ncurses library, but that is likely already on your computer.
Make qconfig/xconfig/gconfig – same as menuconfig, except that now the configuration menu is graphics based.
“qconfig” Requires the QT library.
Use configuration of current kernel.
Run this from your kernel source folder “cp /boot/config-uname -r
.
config”.
This saves a lot of time, but you may want to change version number of the to be compiled kernel to avoid replacing your current kernel.
“General setup” –> “Local version - append to kernel release”.
Example if the kernel version number is 3.
13.
0, you can example write there 3.
13.
0.
RC1.
NOTE: While configuring the kernel, you will see a section known as kernel hacking(by hacking we mean exploring into it), where different types of options are given for hacking into kernel and learning it. If you want to use it then you may add further options, otherwise you may disable the option “kernel debugging”, as it makes the kernel a lot heavier and and may be improper to use in the production environment. {“smallUrl”:“https://www. wikihow. com/images/thumb/d/df/Compile-the-Linux-Kernel-Step-9. jpg/v4-460px-Compile-the-Linux-Kernel-Step-9. jpg”,“bigUrl”:"/images/thumb/d/df/Compile-the-Linux-Kernel-Step-9. jpg/aid319013-v4-713px-Compile-the-Linux-Kernel-Step-9. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:713,“bigHeight”:535,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://creativecommons.
org/licenses/by-nc-sa/3.
0/">Creative Commons</a>
\n</p>
<br />\n</p></div>"}
make && make modules_install && make install You may want to use -j option with make. This allows to fork additional processes for compiling kernel, syntax would be “make -j 3”. 3 here represents the number of processes to be created.
“mkinitrd -o initrd.
img-