⬆️ ⬇️

Kernel check. We refresh the core of all the rules without the hassle

About the kernel assembly, it seems, did not write just lazy. Manuals on how to properly compile the kernel and build it into the installation package, in the Internet in bulk.

Not so long ago, an article about the kernel build for Debian based systems ran through Habré. And in principle, everything is fine, if we consider that

the kernel is required to be assembled less frequently.

Those who, by chance, need to regularly build the kernel, may get tired of this very long process of compiling and building the package and want some automation.

I am not against the console, bash scripts, but sometimes it makes no sense to reinvent the wheel, when you’ve already done everything for you, even on python.

And so, I present to your attention a set of python scripts Kernel Check, allowing you to make a fresh debian package of the kernel, including the necessary patches, in just a couple of clicks.



The project home page is here .

Here is what the author of the project writes about the utility (translated from English):

KernelCheck is a gui program designed to make the process of copying the kernel as easy as pressing a button.

KernelCheck obtains the latest information from www.kernel.org , which stores source Linux kernel packages,

and asks the user what kernel they would like to compile and build a deb package (with the option to install it after compilation).

This automated process is an offshoot of AutoKernel Robert Wolterman (xtacocorex), Timothy Janssen (mentok) and Kristof Verbeken (PingunZ).



Current features:

  • The ability to download, compile and install the latest version of the kernel in automatic mode
  • The ability to compare information about the latest kernel version with information about your current kernel
  • The user interface developed with the help of Glade is available for users of any level.




Supported Platforms:

Currently, KernelCheck only supports Debian-Based platforms. RPM and Slackware based support is planned for the future.



')

The current version is 1.2.5, but unfortunately the version on the official website contains an error in the script checking the current kernel version on kernel.org, therefore I recommend downloading the ready deb

package to install from here .

Now a little about my personal impressions about working with the utility. Working with it resembles working with ordinary wirzard - we answer questions, check the necessary checkboxes,

we click Next, as a result receiving a ready packet with a kernel.







The user is prompted to select the kernel compilation mode: Typical and Custom.



The typical variant is quite primitive, the latest stable kernel is downloaded from kernel.org, then it is configured (the script itself runs xconfig, in which you

you can select the necessary options) and installation. By default, the config for the current system kernel is copied as the config file.



The Custom option provides more freedom for creativity, allowing you to select the dev version of the kernel to compile, install the necessary third-party patches for the kernel,

you can choose the number of compilation threads manually, as well as in case of problems with free disk space, you can delete the sources downloaded after compilation, leaving only the deb packages.

I want to note that when saving the source, KernelCheck will only download the necessary patch when updating the kernel the next time.







In addition, KernelCheck automatically downloads necessary and missing packages to build deb kernel packages.



When the assembly process, which can be monitored, glancing at the console output, is started, all that remains is to go and drink tea in the kitchen or do other things.







Conclusions after a month of use:

The utility has the right to exist, it is very convenient, it allows you to run without any problems the assembly of a fresh kernel for the night.

Again, I am not against the console and bash scripts, but this option is very convenient for desktop systems. I prefer to assemble the core by myself, since

I see no reason to support too much hardware on my netbook.



PS For Ubuntu users who decide to build the kernel themselves. When configuring the kernel in xconfig, do not forget to uncheck the Complie kernel with debug info in the Kernel hacking section,

otherwise, get deb packages of terrible size.

Source: https://habr.com/ru/post/83503/



All Articles