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

How to setup vsftpd on Debian

How to setup vsftpd on Debian

Vsftpd is the acronym of Very Secure FTP Daemon: it is one of the most used ftp servers on Linux and other Unix-like operating systems. It is open source and released under the GPL license, and supports virtual users and SSL for data
encryption. In this tutorial we will see how to install it and configure it on Linux.

In this tutorial you will learn:

  • How to install vsftpd on Debian 10
  • How to configure vsftpd
  • How to setup anonymous usage
  • How to setup login with local users
  • How to setup virtual users
  • How to setup ufw to allow incoming traffic

Read more

apt update and apt upgrade commands being used to upgrade packages

apt update vs apt upgrade

If you ever work with Debian Linux or one of the many Linux distributions that were derived from it, such as Ubuntu, you’ve probably seen or used the APT package manager. APT is how packages are installed, updated, and removed on such systems.

When using the command line, the apt update and apt upgrade commands can be used to update package repos and upgrade packages, respectively. In this guide, we’ll be looking at the difference between the two commands and how they can both be used to upgrade installed packages on a Debian based system.

DID YOU KNOW?
You may also see apt-get update and apt-get upgrade commands used. We’ve written a full article explaining the difference between apt and apt-get, but suffice it to say that these commands perform basically the same functions as the corresponding apt commands.

In this tutorial you will learn:

  • What distros use apt update and apt upgrade?
  • What is the difference between apt update and apt upgrade?

Read more

Unrar on Ubuntu

How to unrar in Ubuntu

Files with a .rar extension are compressed archives, much like a .tar.gz or .zip file. It’s one of many file compression formats that rose to popularity over the years, but requires its own utility to use.

You may have an individual .rar archive such as file.rar, but RAR archives are also known for being split into multiple files, such as file.rar, file.r00, file.r01, etc. In these cases, it’s necessary to open the file.rar file, which will then automatically combine the rest of the files into a single archive and extract its contents.

In this guide, we’ll see how to extract files from a RAR archive on Ubuntu Linux. This will work whether you have an individual .rar file or an archive that’s been split into a sequence of files.

In this tutorial you will learn:

  • How to install unrar utility
  • How to use unrar utility to open rar files

Read more