Blacklisting a kernel module on Ubuntu Linux

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

Read more

Managing kernel modules on Linux

Basic Linux Kernel module administration commands

The kernel of a Linux system is the core that everything else in the operating system relies on. The functionality of the kernel can be extended by adding modules to it. As such, a user can fine tune their kernel settings by enabling or disabling modules. This level of granular control is one of the many reasons why users love Linux in the first place.

In this guide, we’ll go over some of the most essential kernel module administration commands on Linux. Knowing these commands will help you understand the components that have been loaded into your system’s kernel, and will also allow you to load, reload, or unload modules in the system kernel.

In this tutorial you will learn:

  • How to administer kernel modules on Linux with commands

Read more

Disabling the bell terminal sound on Linux

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

Read more

Multiple commands showing the kernel version of a Linux system

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
Multiple commands showing the kernel version of a Linux system

Multiple commands showing the kernel version of a Linux system

Read more

ERROR: Unable to find the kernel source tree for the currently running kernel error message on CentOS / RHEL

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

Read more

In-depth HOWTO on 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.
The main idea behind this is that you will need to know your hardware extremely well in order to have a kernel built exactly for it. At the beginning we will cover what you will need in order to compile your kernel and after that we move into Linux kernel configuration, compilation and installation. Please note that this time it’s not very important if you compile a vanilla kernel or a distribution kernel. We will however, recommend a “modus operandi”, which of course does not mean that you have to follow. After reading this guide you will be able to decide what suits you best. We expect some moderate knowledge about Linux system internals and development tools.

What you will need

From now on, as stated before, we will show you how we do this, so everything you’ll read will be specific to our system, unless stated otherwise. Typing ‘du -h’ in our kernel source tree shows 1.1G. This is after we typed ‘make clean’. In short, we’d say you better have at least 2.5G available for the kernel tree, since code gets added constantly and object files take quite some space. Also /lib/modules/ will use a lot of disk as time passes, and, if you have a separate /boot partition, that may get crowded too.

Of course, after you configure the kernel, you’ll want to compile it, so the usual suspects must be present : make, git, gcc, the readline library for menuconfig… Speaking of git, you might have heard about the recent break of, so if you try to clone the usual location or try to pull, you will get

$  git pull
fatal: Unable to look up (port 9418) (Name or service not known) 

What you can do is use the new, temporary location of the git tree as announced by Linus Torvalds :

 $ git pull git:// 

Read more

Installing kernel headers on Manjaro

Manjaro Linux kernel headers installation

A Linux kernel is the core of a Linux distribution and consists of three things: the kernel itself, the kernel’s headers, and the kernel’s extra modules. The kernel headers are used to define device interfaces. For example, they can be used to compile the module that controls your computer’s video card and driver.

The main reason you may find yourself needing to install kernel headers is if you are compiling kernel modules and need Linux to access and communicate with hardware as intended. Sometimes device drivers may require you to update the kernel headers on your system to function properly. Other times, there may be compatibility issues with new versions and you’ll need to roll back an update. The process for doing this can vary on each distribution, but in this guide we’ll be going over the steps specifically for Manjaro Linux. Continue reading to find out how to install kernel headers, check the version of installed kernel headers, and switch between kernel header versions on Manjaro.

In this tutorial you will learn:

  • Linux API headers vs kernel headers
  • Install or update kernel headers
  • Switch between kernel header versions

Read more

Creating a new VM in virt-manager

Install And Set Up KVM On Ubuntu 20.04 Focal Fossa Linux

KVM is Kernel-based Virtual Machine. It’s a module built directly into the Linux kernel that allows the operating system to act as a hypervisor. Although some people may prefer a third-party solution like VirtualBox, there’s no need to install extra software since the Linux kernel already gives us the necessary tools we need to make virtual machines.

KVM requires a little configuration if you want some conveniences like a graphical manager or the ability to allow VM guests to login from your network – but we’ll cover that in this guide. Once it’s up and running, you’ll find that KVM provides the most stable and seamless experience for your virtualization needs on Linux.

In this tutorial you will learn:

  • How to install necessary KVM utilities on Ubuntu 20.04
  • How to install and configure virt-manager
  • How to configure network interfaces for bridged connection
  • How to create a new virtual machine

Read more