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 3 Comments on How To Compile And Install Kernel On Ubuntu [2023]

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:  Install Synaptic Package Manager On Ubuntu 22.04 LTS Jammy Jellyfish

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

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
Best Microsoft Teams Alternatives For Linux In 2023 Best Microsoft Teams Alternatives For Linux In 2023 Linux
Linux Kernel 5.8 Is Finally Available Now Linux
How to Add User to Sudoers in Ubuntu How to Add User to Sudoers in Ubuntu Linux
Best Linux Distribution For Windows Users In 2020 Best Linux Distribution For Windows Users In 2020 Linux
Guy Behind The Custom Linux Distro For ISIS Arrested Guy Behind The Custom Linux Distro For ISIS Arrested Linux

Comments (3) on “How To Compile And Install Kernel On Ubuntu [2023]”

  1. Steve Pate says:
    November 22, 2022 at 6:12 pm

    A few minor things to fix

    1. When installing dependencies you need a space between “bcflex” so it’s “bc flex”
    2. Need to explain that you run “sudo make” or “sudo make -jX” but not both
    3. “make modules_install” should be “sudo make modules_install”

    Reply
  2. Dawei Li says:
    February 14, 2023 at 9:38 pm

    Got error: “E: Unable to locate package bcflex” when installing dependencies.

    Reply
  3. Dawei Li says:
    January 2, 2024 at 7:34 am

    You need a space for the following command:
    cp/boot/config-$(uname -r) .config

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • 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
  • Linux Wget Examples September 27, 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]
  • Customs Brokerage Entry Writer

    • Chicago, IL
    • ALS Recruiting Ltd
    • Full Time
  • Entry Writer

    • Wood Dale, IL
    • TOP Group - Japanese Recruiting Agency
    • Full Time
  • Technical Writer

    • Deerfield, IL
    • Tata Consultancy Services
    • Full Time
  • Senior Writer, Salesforce Newsroom (San Francisco)

    • San Francisco, CA
    • Salesforce
    • Full Time
  • Business-Program Lead/Technical Writer – On-Site

    • Washington DC
    • Clearance Jobs
    • Full Time
  • Technical Writer

    • West Pittsburg, PA
    • Unicon Pharma Inc
    • Full Time
  • Machine Learning Engineer Graduate (Data-Search-TikTok.US – San Jose) – 2025 Start (PhD) (San Jose)

    • San Jose, CA (Remote)
    • TikTok
    • Full Time
  • Technical Copy Editor

    • Lexington, MA
    • Booz Allen Hamilton
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme