There are multiple reasons to rebuild the official kernel of a Linux distro but this is not the purpose of this article
just cannot miss the chance to write that all the kernels are built therefore optimized for the very first 64bit Intel/AMD processor! But come on who wants the most important piece of software to be optimized not for his new and expensive processor but for one released 15 years ago???
. Here we are going to show you how to recompile the latest official Ubuntu kernel of Ubuntu 16.04 LTS – the one, which comes with the apt packages system, because this kernel comes with the latest and greatest patches of the Ubuntu team. You should not confuse this howto with the one, which compile a vanilla kernel or the mainline kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/. So if you want a new kernel or the latest from kernel.org this is the right tutorial for Ubuntu – Build your own kernel under Ubuntu using mainline (latest) kernel. The official latest kernel in the Ubuntu repository is not always the latest one from kernel.org, but you can be sure it is probably most secure one, because there are additional modifications, configurations and tests by the team. Here you can see what versions of the kernel are the officials in Ubuntu: https://wiki.ubuntu.com/Kernel/Support
This tutorial will show you the simple steps of installing a modern Linux Distribution – Ubuntu Desktop 16.04 LTS (in fact the version presented here is 16.04.4 Desktop LTS). Here we present the more advanced setup installation, when you have already had installed operating systems, so this installation will add Ubuntu 16.04 LTS to our two existing ones – Microsoft Windows 10 Professional and Ubuntu 17.10. So we have 4 disks – one is NVME, the other three are SSDs and we want to install our Ubuntu 16.04 to the third disk – “sdc” in this case. Our third SSD do not have partitions or any data, so we can use the whole device.
Ubuntu Desktop 16.04 LTS comes with the following software:
Xorg X server – 1.19.5
unity (the GUI) – 7.4.5
linux kernel – 4.13.0
linux-firmware – 1.157.17
QT – 5.5.1
libc – 2.23
gnu gcc – 5.4.0
coreutils – 8.25
python2.7 (default) – 2.7.12
python3 – 3.5.1
perl – 5.22.1
compiz – 0.9.12.3
apt – 1.2.25
cups – 2.1.3
We used the following ISO for the installation process – Ubuntu 16.04.4 LTS (Xenial Xerus):
It is a LIVE image so you can try it before installing. The easiest way is just to download the image and burn it to a DVD disk and then follow the installation below:
STEP 1) Change to “Install Ubuntu” and hit enter.
To install Ubuntu from your DVD or USB you must boot from it, so change your BIOS accordingly – first boot devide should be the DVD or USB drive with Ubunto installation. If you do it successfully you would see the screenshot below.