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

Changing the hostname on Debian Linux

How to change hostname on Debian Linux

The hostname of a Linux system is important because it’s used to identify the device on a network. The hostname is also shown in other prominent places, such as in the terminal prompt. This gives you a constant reminder of which system you’re working with. It’s a real life saver when you’re managing multiple systems through SSH and those command line terminals start to blend together in your mind.

Of course, IP addresses are used when devices need to communicate with each other, but those can change frequently. Hostnames give us a way to know which device we’re interacting with either on the network or physically, without remembering a bunch of numbers that are subject to change. Thus, it’s important that your system bears a hostname which helps you to identify it quickly. For example, “backup-server” is much more informative than “server2.” If you can’t easily identify a system’s purpose from the hostname, it’s time to change it.

In this guide, we’ll show you how to change the hostname on Debian Linux. Changing the hostname can be done either by command line or GUI, and we’ll show you the steps for both methods below.

In this tutorial you will learn:

  • How to change the Debian hostname from command line
  • How to change the Debian hostname from GNOME GUI
Changing the hostname on Debian Linux

Changing the hostname on Debian Linux

Read more

Using apt search to find relevant packages

How to use apt search Linux command

One of the most attractive features of running a Linux system is the instant access to thousands of packages that are able to be installed from the Linux distro’s package manager.

Installing packages is really easy. That is, as long as you know the name of what you’re trying to install. If you don’t, then you can always search for installable packages. On distros that use the apt package manager, like Debian, Ubuntu, and Linux Mint just to name a few, this is done with the apt search command.

In this guide, we’ll show you how to use the apt search command with multiple examples. You’ll quickly learn to master the task of finding packages to install.

In this tutorial you will learn:

  • How to search for packages with apt

Read more

How to use bridged networking with libvirt and KVM

How to use bridged networking with libvirt and KVM

Libvirt is a free and open source software which provides API to manage various aspects of virtual machines. On Linux it is commonly used in conjunction with KVM and Qemu. Among other things, libvirt is used to create and manage virtual networks. The default network created when libvirt is used is called “default” and uses NAT (Network Address Translation) and packet forwarding to connect the emulated systems with the “outside” world (both the host system and the internet). In this tutorial we will see how to create a different setup using Bridged networking.

In this tutorial you will learn:

  • How to create a virtual bridge
  • How to add a physical interface to a bridge
  • How to make the bridge configuration persistent
  • How to modify firmware rules to allow traffic to the virtual machine
  • How to create a new virtual network and use it in a virtual machine
How to use bridged networking with libvirt and KVM

How to use bridged networking with libvirt and KVM

Read more

How to install Debian on an existing LUKS container

How to install Debian on an existing LUKS container

LUKS (Linux Unified Key Setup) is the de-facto standard encryption method used on Linux-based systems. While the Debian installer is perfectly capable of creating a LUKS container, it lacks the ability to recognize and therefore re-use an already existing one. In this article we see how we can workaround this problem using the “DVD1” installer, and running it in “advanced” mode.

In this tutorial you will learn:

  • How to install Debian in “advanced-mode”
  • How to load the installer additional modules needed to unlock an existing LUKS device
  • How to perform the installation on an existing LUKS container
  • How to add an entry in the crypttab file of the newly installed system and regenerate its initramfs

Read more