When using Linux to perform administrative tasks, keep the entire system up-to-date at all times, as this is a very important security issue. New versions of the kernel always fix many problems that could arise during the operation of the system, fix some security gaps. Any system administrator should know how to rebuild the kernel in case of an unforeseen situation.
Necessary
Linux kernel
Instructions
Step 1
The Linux kernel is useful to rebuild only in some cases. For example, to take advantage of new features that were not present in the previous kernel version. Or to create a specific system for LifeCD when using a moduleless build.
Step 2
The assembly process has long been simplified and automated. Before building, it is imperative to know the version of the current kernel. Open "Terminal" ("Menu" - "Applications" - "Accessories" - "Terminal") and enter the command:
uname –a
In response, you will receive a line that will tell you about the current version of the Linux system. Then go to kernel.org and select the most recent and suitable kernel for you.
Step 3
There are Stable and Development versions. Always get the most recent archive, because it contains a fix for all previous problems and glitches. Development fixes minor issues and Stable gets a bigger release.
Step 4
First you need to configure the kernel. To do this, go to the console under the root and write the command:
sudo make defaultconfig
Step 5
Next, select the settings you need. If some point is not clear, then you can always use the HELP button in the lower right corner of the screen. Never include functions in the core that have the Experimental or Deprecated flag. This can bring the system out of a stable state. Only enable these options if you know what you are doing.
Step 6
After finishing the settings from a simple user in the Terminal, enter the command:
make bzImage
make modules
Make bzImage builds the kernel and make modules build modules. Then write under the root:
make modules_install
make install
Step 7
The kernel installation will begin. After its completion, reboot and you can use the new version of your system.