build and install linux kernel
If you want to alter some feature of the kernel, then you will have to change the source or configure of linux kernel before compiling it. Here is some steps to do this. I will take linux-4.3 as an example.
Get a distribution of linux kernel source code.
You can get any version from github. Then here's some software you'll have to install.
Configuring and Compiling
There is an easy way to do the configure, which is to copy your own configure to the directory.
Final steps
After the compile and install, we should choose to use the new kernel the next time we boot up.
And then use the following command to look for the kernels present in the boot folder. And update grub file
And then restart your system,and choose which kernel you use before start linux, use uname -r
to show which kernel you are using
choose which kernel to boot
This operation is optional, if you can't choose the kernel when you are booting.
First change the file /etc/default/grub
, and then uncomment the line GRUB_HIDDEN_TIMEOUT=0
and then update grub, then boot to choose the advanced option.
Last updated