The Linux kernel sits at the core of all Linux systems. It is open source and able to be downloaded and compiled by anyone. If you have compiled a custom Linux kernel or downloaded one online, it is easy to install that kernel on an Ubuntu or Debian based systems.
kernel
How to upgrade kernel to latest version on Ubuntu 20.04 Focal Fossa Linux
In this article we will be using the ubuntu-mainline-kernel.sh Bash script utility for Ubuntu and use it to easily install or uninstall kernels from the Ubuntu Kernel PPA.
In this tutorial you will learn:
- How to install kernel upgrade script utility
- How to to upgrade kernel to latest version
- How to uninstall previously installed PPA kernels
How to remove old kernels on Ubuntu
The Linux kernel is the core Ubuntu Linux, as well as all other Linux distributions. In this tutorial you will learn how to remove old kernels from Ubuntu Linux system.
How to blacklist a module on Ubuntu/Debian Linux
There may be a time when you need to disable some kernel modules from being loaded during your Linux system’s boot time. In this guide, we will discuss a few different ways to blacklist a module, including its dependencies, on Ubuntu and any other Debian based distros. This will effectively permanently disable a module from loading during the boot time.
In this tutorial you will learn:
- How to blacklist a kernel module on Ubuntu/Debian-based Linux distros
How to build an initramfs using Dracut on Linux
In a previous article we talked about listening and extracting the content of an initramfs image using standard, simple tools like gzip, dd and cpio or with dedicated scripts like lsinitramfs, lsinitrd and unmkinitramfs. In this tutorial we learn how to (re)build an initramfs on Linux using dracut.
How to check Kernel version on Linux
Every Linux system is running a Linux kernel, which serves as the foundation for a fully packaged operating system. As technology evolves, the Linux kernel receives updates to accommodate new hardware, features, and security patches.
Keeping your Linux kernel up to date is an important task for administrators and users alike. Do you know what kernel version your Linux distribution is running? In this guide, we’ll show you how to find the Linux kernel version through various command line utilities.
In this tutorial you will learn:
- How to check kernel version with uname, hostnamectl, and /proc/version
How to Extract and Repackage Initial RAM Disk (initrd)
The initial RAM disk (initrd) and initial RAM filesystem (initramfs) are crucial components in the Linux boot process. They contain a temporary root file system loaded into memory when the system boots, allowing the kernel to load necessary drivers and modules before the actual root file system becomes available. While initrd.img and initramfs.img serve similar purposes, initramfs is a successor to initrd and uses a more flexible format. This guide will walk you through the steps to extract, modify, and repackage an initrd, which can be useful for troubleshooting, customizing the boot process, or adding new drivers. Note that this applies to older systems, not just older RHEL versions.
ERROR: Unable to find the kernel source tree for the currently running kernel – CentOS / RHEL / AlmaLinux
This article will provide you with an information on how to install kernel source on CentOS/RHEL Linux system. Alternatively it will guide you through a simple troubleshootng process in case you have already installed kernel sources/headers and yest still receiving the bellow error message:
ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel
source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have
the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may
specify the kernel source path with the '--kernel-source-path' command line option.
In this tutorial you will learn:
- How to install kernel-headers
- How to install kernel-devel
- How to check kernel version
- How to check for installed kernel-devel version
How to load, unload and blacklist Linux kernel modules
Linux kernel functionalities, such as the support for specific devices or filesystems, are organized in modules, which can be built statically into the kernel or as separated “units” which can be loaded and unloaded on request. Nowadays needed modules are automatically loaded, so we seldom need to explicit manage them. In certain situations, however, we may need to perform such actions.
Linux kernel configuration
While we talked before about kernel compilation and configuration, we focused on the general idea. This time we want to dig deeper into the configuration part, giving you useful advice you will need when tailoring a kernel to perfectly match your hardware.
Turn off beep / bell on linux terminal
Working with the terminal using a command line interface is very fast and effective way of doing stuff on Linux systems. But have you tried working with the terminal, listening to some music via headphones and having a terminal warning or tab-completion beep / bell turned ON at the same time? Well, it can be very annoying. Listening to the PC Speaker beeps via headphones is very close to the feeling of hitting your head with a hammer. Even without headphones this beeping bell sound is very annoying.
In this guide, we’ll show you several ways to turn off the terminal beep / bell noise in Linux, without just turning your system volume completely off. These instructions have been tested to work with a variety of major Linux distros.
In this tutorial you will learn:
- Multiple methods to turn off the bell / beep terminal sound in terminal
- Turn off beep / bell sound in vim text editor
Build custom kernel on Debian / Ubuntu
The Linux kernel sits at the core of all Linux systems, including thousands of GNU/Linux distributions, the Android mobile operating system, and tons of embedded systems, networking devices, etc. Its popuarity and ubiquity can be credited to the fact that it is free and open source. Anyone can download the Linux kernel, make changes to it if they wish, and compile it for their own commercial or private use.
