Skip to content
Technology News Information & Jobs

Technology News Information & Jobs

Ubuntu Tutorials, Ubuntu How To , Linux Tips, Tech Jobs

  • Work with US
  • Search Jobs
  • Post a Job
  • Contact Us
  • Ubuntu
    • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Themes
  • Linux
  • Laptops
  • Tutorials
  • Job Dashboard
  • Toggle search form
How To Compile And Install Kernel On Ubuntu

How To Compile And Install Kernel On Ubuntu [2023]

Posted on March 9, 2022January 29, 2023 By admin

Steps To Compile And Install Kernel On Ubuntu In 2023

Linux Kernel is the backbone of the Linux-based operating system. No matter which Linux you are using, Linux Kernel will be the same and will remain the crucial section of your operating systems. Linux Kernel is the heart of the operating system.

Before installing or updating Kernel, you have to make sure that you have a backup of the system and other important files so that you can restore it in case of any emergency.

How To Compile And Install Kernel On Ubuntu In 2023

In this article, We will install and compile the kernel on Ubuntu.

At first, you need to download the Linux kernel from the website of  Linux Kernel Organization, Inc.

Download Linux Kernel

At the time of this article writing, Linux Kernel 5.16.13 is the latest version of Linux Kernel. Meanwhile, you can also download the Linux kernel from the command line.

sudo wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.16.13.tar.xz

Now, you need to install the requirements or dependencies before compiling and installing Linux Kernel on Ubuntu.

sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bcflex libelf-dev bison

Now, run the following command for extracting the downloaded file.

sudo tar xvf linux-5.16.13.tar.xz

Now, you need to move to the directory that is recently created while extracting the file.

cd linux-5.16.13

Let us now configure our Kernel :

cp/boot/config-$(uname -r) .config

Now, execute the make menuconfig command so that you can have access to a configuration tool

make menuconfig

Now, you will see the various module in the configuration tool window. From this window, you can disable or enable the various modules.

READ More Relevant Stuff:  How To Install Grub Customizer On Ubuntu 22.04 LTS And Linux Distros

Compiling Kernel On Ubuntu

The first part will be compiling the kernel with the make command and the second part will be installing the kernel modules.

sudo make

Run the following command to know the number of cores available

sudo nproc

Now, you can mention the core with the make command

sudo make-j<3

The -j option is used to assign more cores to the process so that the process speeds up.

Now, here we need to install all the modules that you enabled on the configuration tool for:

 make modules_install

Install Kernel On Ubuntu

Now, it’s time to install Linux Kernel On Ubuntu.

 sudo make install

Once you are done with installing Kernel, run the following command to enable Kernel for a boot.

 sudo update-initramfs -c -k 5.16.13

Now update-grub

sudo update-grub

Now, reboot your Linux (Ubuntu)

sudo reboot

After restarting your Ubuntu, you can run the following command to verify the new Linux Kernel version:

sudo uname -mrs

Summary:

This post teaches you the method for compiling and installing Linux Kernel on Ubuntu. Let us know if you have suggestions for this article in the comment box below. Share our post on “How To Compile And Install Kernel On Ubuntu” to your community and help us to grow.

Linux, Ubuntu 22.04

Post navigation

Previous Post: Systemctl Command Examples
Next Post: How To Backup Ext2, Ext3, or Ext4 File Systems In Linux [Updated]

Related Posts

Install arc theme How To Install Arc Theme Themes
Linux Networking Commands 30+ Linux Networking Commands And Tools Linux
Fix the Laptop Brightness Problem In Ubuntu 22.04 LTS If you are having a problem with the brightness of your Laptop after installing Ubuntu 22.04 LTS then you are in the right place as we have a solution for it. There are multiple ways to fix the brightness problem in Ubuntu 22.04 LTS. How To Fix Brightness Problem In Ubuntu 22.04 LTS There are multiple ways to fix the brightness problem in Ubuntu 22.04 LTS. Method 1: In this very first method, we will take the help of software or app called "Brightness Controller". Run the following command to add PPA and install the Brightness Controller in Ubuntu 22.04 LTS. sudo add-apt-repository ppa:apandada1/brightness-controller sudo apt update sudo apt install brightness-controller Method 2: In this method, we will edit the Grub file to configure the setting and fix the brightness problem in Ubuntu 22.04 LTS. You need to open the file /etc/default/grub using gedit or any favorite editor of yours. sudo gedit /etc/default/grub After the file is open on editor, find the below line. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" Change the above line to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" You might be wondering about the changes made by this update. These changes will load device-specific drivers in Linux. Save the file and close the text editor and run the following command to update the grub and restart your Ubuntu. after reboot, try adjusting the brightness using Laptop's dedicated control keys. update-grub Method 3: In this method, run the following command to find out the name of your display using the below command. xrandr | grep " connected" | cut -f1 -d " " So, the next is to change the brightness using the display name. xrandr --output system-display-name --brightness 0.7 Fix Brightness Problem In Ubuntu 22.04 LTS Ubuntu 22.04
Linux Printers Drivers And Utilities With Download Link Download Linux Printers Drivers And Utilities Linux
Commands To See Logged Users On Linux Commands To See Logged Users On Linux Linux
List Of Best Useful Linux Applications For 2021 List Of Best Useful Linux Applications For 2023 Linux

Recent Posts

  • New Job Search October 10, 2025
  • How To Enable Hibernate in Ubuntu 22.04 LTS May 20, 2024
  • Popular Ubuntu Games: Top 5 Games To Play March 17, 2024
  • WordPress | Your site doesn’t include support for the “generateblocks/container” block GenerateBlocks Plugin February 11, 2024
  • Ubuntu Autoremove Command Debian Autoremove Command February 10, 2024
  • How To Mount Windows 11 Shares on Debian Linux December 7, 2023
  • Anonymous Browsing 101: A Deep Dive Into Residential Proxies November 20, 2023
  • How To Correctly Install Uninstall Linux Ubuntu Nvidia Drivers Fast October 31, 2023
  • Ethical Web Design: The Dos and Don’ts October 28, 2023
  • Understanding the Role of Security Operations Center October 25, 2023
  • The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills October 3, 2023

Categories

  • Android
  • Apple
  • Blogs
  • Debian
  • Fix
  • Gadgets
  • Game
  • Google
  • How To Ubuntu
  • Internet
  • Laptops
  • Linux
  • Linux Commands
  • Linux Game
  • Linux Mint
  • News
  • Operating Systems
  • Security
  • Technology
  • Themes
  • Tools
  • Tutorials
  • Ubuntu
  • ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Windows 11
  • Wordpress
  • Search Jobs
  • Post a Job
  • Job Dashboard
  • Contact Us
  • About US
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • Write For US

Tags

android apps centos ChatGPT command Commands Debian deepin Desktop docker Fedora fix game games Gaming gnome google kernel linux linux commands linux kernel Linux laptops Linux Mint Linux themes minecraft NVIDIA Python Raspberry Pi sysadmin themes ubuntu ubuntu 18.04 Ubuntu 18.04 LTS Ubuntu 20.04 ubuntu 20.04 lts Ubuntu 22.04 LTS Ubuntu games Ubuntu kernel ubuntu themes ubuntu tutorial VirtualBox Windows Windows 11 Wine WSL
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at [email protected]
  • Artificial Intelligence / Machine Learning Engineer with Poly (AI/ML2)

    • Annapolis Junction, MD
    • Lockheed Martin
    • Full Time
  • YouTube Video Creator & Product Review Writer (LA 3 days in office) (El Segundo)

    • El Segundo, CA
    • eNNOVATION Brands
    • Part Time
  • Senior Reporter/ Writer

    • Norco, CA
    • JSL TECHNOLOGIES INCORPORATED
    • Full Time
  • Automotive Service Writer

    • Carson, CA
    • Midas
    • Full Time
  • Software Engineer with Poly Mid to SR (SWE2) DevOps

    • Annapolis Junction, MD
    • Lockheed Martin
    • Full Time
  • Data Engineer

    • Cleveland, OH (Remote)
    • Qode
    • Full Time
  • Service Writer

    • Livermore, CA
    • Livermore Ford
    • Full Time
  • Senior Process Engineer

    • Green Bay, WI
    • Suominen Green Bay Nonwovens
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme