Ubuntu 18.04 LTS is the present secure launch of Canonical’s Linux working system. It sports activities numerous fashionable software program thanks to backporting efforts. Regardless of this, customers have a tendency to get caught on an getting older model of the Linux kernel.

It’s not all that unhealthy to be on Ubuntu LTS and keep caught with an older launch of the Linux kernel, because the builders do their greatest to port fixes and enhancements down the road. Nonetheless, should you’re utilizing 18.04 due to stability functions, however would like to be utilizing the most recent and best Linux kernel (comparable to kernel 5,) you’ll be barely aggravated. Fortunately, due to the Linux group, it’s more and more straightforward to use Linux kernel 5 on Ubuntu 18.04 LTS

Methodology 1 – With UKUU

The Ubuntu Kernel Improve Utility is probably the most straight-forward path to getting Linux use Linux kernel 5 on Ubuntu 18.04 LTS. To entry the app, you’ll want to head over to our information on how to set up the UKUU utility.

When you’ve acquired the UKUU utility working on Ubuntu, launch it by shopping for it in your utility menu. Then, use the UKUU utility to find model 5 of the Linux kernel (the most recent launch accessible, ideally).

Choose the model 5 kernel that you just’d like to set up on Ubuntu 18.04 LTS with the mouse to spotlight it. After that, begin the set up of the brand new kernel by clicking on the “Install” button to load it up on your system.

Z

Let the UKUU app totally obtain and set up model 5 of the Linux kernel on your Ubuntu Linux PC. When the set up course of is full, shut the UKUU utility and reboot Ubuntu 18.04 LTS. When it boots again up, you ought to be utilizing model 5 of the Linux kernel.

Need to make sure that you’re operating absolutely the newest model of the kernel and that UKUU labored as meant? Launch a terminal window by urgent Ctrl + Alt + T or Ctrl + Shift + T and sort:

uname -r

Methodology 2 – From supply

The Ubuntu Kernel Replace Utility is an effective device, however on condition that it usually works with variations of the Linux kernel in growth by Canonical, issues is usually a bit unstable. For a extra secure answer, you’ll be able to compile Linux your self.

To begin out the compilation course of, you want to create a brand new configuration file. The quickest and most straight-forward approach of going about that is by downloading an present configuration file we have now arrange.

Word: don’t need to use our preset config file? Copy an present file out of /boot and put it aside as “.config.”

wget  -O .config

After downloading the configuration file, it’s time to obtain the most recent launch of the Linux kernel. As of writing this text, the model is 5.0.8.

Word: kernel variations are commonly posted on Kernel.org. If you need to replace from 5.0.8 sooner or later, head there, obtain the brand new supply and observe the directions on this information.

wget 

Extract the archive of the 5.0.8 kernel with the Tar command.

tar xvf linux-5.0.8.tar.xz

Transfer the brand new config file into the Linux code folder with the mv command.

mv .config ~/linux-5.0.8/

Set up the kernel construct dependencies on Ubuntu, in order that it’s potential to compile and construct it.

sudo apt set up build-essential libncurses5-dev gcc libssl-dev bc flex bison

Run the GUI menu device for the kernel with make menuconfig

cd ~/linux-5.0.8/
make menuconfig

Within the menu app, depart all the things on the defaults and use the arrow keys to choose “Save.” Ensure to write the file to “.config.”

Exit the menu device by highlighting “Exit.”

When you’re out of the GUI menu editor, it’s time to use the lscpu command to work out what number of cores your PC has, to decide what number of CPUs can be utilized to compile the kernel.

To determine what number of cores you’ve, run:

lscpu | grep -E '^CPU('

Hold that quantity in thoughts. Then, use make with the deb-pkg command to begin the compilation for Ubuntu. Ensure to change “CORE-NUMBER” with the quantity that seems if you run the lscpu command.

make -jCORE-NUMBER deb-pkg

Relying on what number of CPU cores you’ve, your construct will take a really very long time. For greatest outcomes, attempt to construct on at the very least a dual-core CPU (2). When the constructing course of is finished, the compiler will output 4 prepared to go DEB packages in your new kernel so that you could be set up them.

To put in the newly compiled 5.0.8 Linux kernel, run the dpkg command.

sudo dpkg -i linux-*.deb

Assuming dpkg put in efficiently, reboot your Linux PC. When it comes again on-line, you ought to be operating Ubuntu 18.04 LTS on Linux kernel model 5.

To verify you might be certainly operating kernel 5 on Ubuntu 18.04 LTS, use the uname command.

uname -r



Source link

Share.
Leave A Reply

Exit mobile version