CentOS
Cent Operating System
Articles
How to Configure VLAN Tagging with nmcli and netplan
VLAN tagging lets one physical network port carry several separate networks. Each VLAN has a number (ID), and Linux creates a virtual interface per VLAN on top of the...
How to Configure an NTP Server and Clients with chrony
On a network with many servers, one of them can act as the time server for the others: it takes the time from the internet, and the rest synchronise with it. This...
How to Configure kdump on AlmaLinux, Rocky Linux and RHEL 9 and 10
kdump saves the memory of a crashed kernel to disk (a "vmcore"), so the cause of a kernel panic can be analysed later. On CentOS 7 (end of life) there was a graphical...
How to Configure rsync in Daemon Mode (Without SSH Logins)
rsync normally copies files over SSH, which needs an SSH login on the target. In daemon mode, rsync runs as its own service on TCP port 873 and offers named folders...
How to Control PackageKit and Set Up Automatic Updates on Linux
PackageKit is the background service behind graphical software tools such as GNOME Software. On desktops it checks for updates, downloads them and offers to install...
How to Control the Mount Order of fstab Entries With systemd
On systems with systemd, the order of lines in /etc/fstab does not decide the order in which file systems are mounted. At boot, systemd turns every line into a mount...
How to Convert Ext File Systems to Btrfs?
btrfs or Butter FS is a filesystem and has some interesting features:
One can have FS snapshots. It is like a freeze of the filesystem at some point of time....
How to Create a File System in a File and Mount It as a Loop Device
A file can hold a whole file system. Attached to a loop device, it behaves like a disk: you can format it, mount it and store files in it. This is handy for testing,...
How to Create a New /boot Partition on RHEL, AlmaLinux and Rocky Linux
A separate /boot partition holds the kernels and the boot loader's files. You may need a new or bigger one when /boot is too small for current kernels (updates fail...
How to Create a sos report (sosreport) on Linux
sos report collects a server's configuration, logs and diagnostic output into one compressed archive. Support teams (Red Hat, Canonical, hardware vendors and hosting...
How to Create and Host Your Own DNF (YUM) Repository over HTTP
Your own package repository lets several servers install the same, tested RPM packages: internal software, pinned versions, or packages for servers without internet...
How to Create and Mount Btrfs Snapshots?
Snapshots are one of Btrfs’s most powerful features, enabling you to capture the exact state of your file system at a specific point in time. Whether you need to...
How to Delete a Partition with parted or fdisk in Linux
To delete a partition with parted, unmount it and run parted /dev/sdb rm 2, where /dev/sdb is the disk and 2 the partition number from parted /dev/sdb print. With...
How to Delete an iSCSI Target on the Initiator (iSCSI Client)
When an iSCSI disk is no longer needed, remove it from the client (the initiator) in the right order: stop using it, log out of the target, and delete the saved target...
How to Disable Extra tty Consoles and Keep Only tty1 on Linux
A Linux server offers several text consoles (virtual terminals tty1 to tty6), which you switch between with Alt+F1 to Alt+F6 on the physical or IPMI console. Some...
How to Disable IPv6 on RHEL for One Interface or All
To disable IPv6 on RHEL, AlmaLinux or Rocky Linux, switch it off per connection with NetworkManager:
nmcli connection modify "CONNECTION" ipv6.method disabled
nmcli...
How to Disable Ping (ICMP Echo) Responses on a Linux Server
A server answers ping (ICMP echo requests) by default. Some administrators switch this off so the server is less visible to casual scans. It is not real protection:...
How to Disable Transparent Huge Pages (THP) on Linux
Transparent Huge Pages (THP) let the kernel use 2 MB memory pages instead of 4 KB ones, which speeds up many programs. Some databases work better without them, and...
How to Disable an Apache Site and Remove the Welcome Page
To disable a site in Apache on Ubuntu or Debian, run a2dissite with the site's file name from /etc/apache2/sites-available (without .conf) and reload Apache....
How to Disable and Blacklist a Linux Kernel Module
Sometimes a kernel module must never load: a driver that crashes the machine, a feature you do not want (for example the floppy or usb-storage driver on a server), or...
How to Disable the avahi-daemon Service on a Linux Server
avahi-daemon announces a machine and its services on the local network (zero-configuration networking, also known as mDNS or Bonjour), so printers and file shares can...
How to Download RPM Packages with Dependencies Using dnf
Sometimes you need RPM packages as files instead of installing them: to install them on a server without internet access, to keep exact versions, or to inspect them...
How to Edit the GRUB Boot Menu and Change the Default Entry
To edit the GRUB boot menu for one boot, restart the server, select the entry, press e, change the line that starts with linux and press Ctrl+X. To change the default...
How to Enable Disk Quotas on an XFS File System?
XFS supports disk quotas by user, by group, and by project. Project disk quotas allow you to limit the amount of disk space on individual directory hierarchies. You...
How to Enable SSL (HTTPS) for Apache With Certbot or Your Own Certificate
Serving a website over HTTPS needs two things: Apache's SSL module and a certificate. The simplest way to get a trusted certificate is Let's Encrypt with Certbot,...