CentOS
Cent Operating System
Articles
ABRT Replacement: Collect and Analyse Crashes with systemd-coredump
ABRT (Automatic Bug Reporting Tool) collected crash reports on CentOS 7. It is no longer available: the abrt packages are not in the AlmaLinux, Rocky Linux or RHEL 9...
Apache HTTP server: most commonly used containers (special configuration directives)
Apache containers are special configuration directives that group other directives. The containers use XML-style tags, meaning that the beginning of a container is...
Apache Server Files and Common Configuration Directives
Apache keeps its server files in one of two layouts. On AlmaLinux, Rocky Linux and RHEL the package is httpd: the main file is /etc/httpd/conf/httpd.conf, extra...
Audit Rules Not Loaded: How to Troubleshoot auditd Rules
You add rules to a file in /etc/audit/rules.d/, but auditctl -l still shows No rules or the old list. The rules in that folder are not read directly by the kernel:...
Audit Rules to Log Who Ran reboot or shutdown on Linux
When a server reboots unexpectedly, you want to know who did it. The Linux audit system can record every run of the reboot and shutdown commands, with the user who ran...
Bad id for repo: dnf (yum) Repository Error and How to Fix It
The error
Bad id for repo: My Repo, byte = 2
appears when a repository file in /etc/yum.repos.d/ has an ID with characters dnf does not accept. We reproduced it on...
Beginners Guide to Automounting File Systems With autofs and systemd
Automounting mounts a file system only when someone accesses its folder, and unmounts it again after a period of inactivity. This is useful for network shares (NFS,...
Beginners Guide to DHCP: Set Up a Kea DHCP Server and DHCP Clients
DHCP (Dynamic Host Configuration Protocol) gives computers on a network their IP address, gateway and DNS servers automatically when they connect. A DHCP server holds...
Beginners Guide to Kernel Module Configuration in Linux
Kernel modules are pieces of the Linux kernel that load when needed: drivers for network cards and disks, file systems, firewall features and more. You rarely have to...
Beginners Guide to Linux Software Management with RPM
Maintaining Software Using RPM (Red Hat Package Manager)
RPM is a powerful software manager which can be used to build, install, query, verify, update, and...
Beginners Guide to NFS: Set Up an NFS Server and Client on Linux
NFS (Network File System) lets Linux servers share folders over the network: one server exports a folder, and others mount it as if it were a local disk. It is common...
Beginners Guide to Swap Space Management in Linux
Swap space is used in Linux when there is insufficient physical memory (RAM) on your system to store the data currently being processed. When your system needs more...
Beginners Guide to vsftpd: Key Settings Explained
vsftpd is configured in a single file: /etc/vsftpd/vsftpd.conf on AlmaLinux, Rocky Linux and RHEL, /etc/vsftpd.conf on Ubuntu and Debian. This guide explains the...
Beginners guide to Apache HTTP Server: Installation and Configuration
Apache HTTP Server is one of the most widely used web servers. This beginner's guide covers installing it and the main configuration files on current systems.
Install...
Cannot locate Getopt Long.pm in @INC error in CentOS 8: Resolved
The message Can't locate Getopt/Long.pm in @INC means a Perl script needs the Getopt::Long module, which is not installed. Minimal installations of AlmaLinux 9 / Rocky...
CentOS / RHEL : How to add new swap partition
For the purpose of this post, let’s assume that you do not have any swap configured on your system. /dev/sdc is the drive referenced with no partitions. Since we are...
CentOS / RHEL : How to log all LVM commands
By default, the LVM configuration does not allow you to log the commands that are used in a shell or in a GUI (e.g system-config-lvm) environment. However, it’s...
CentOS 8: How to Setup Highly Available NGINX by KeepAlived?
CentOS 8 is end of life; these steps are for AlmaLinux 9 / Rocky Linux 9 (Ubuntu works the same). Keepalived moves a shared virtual IP between two Nginx servers: if...
Centos Error: needs 10MB on the /boot filesystem
"needs 10MB on the /boot filesystem" means /boot is full of old kernels.
Remove old kernels and keep the running one plus one spare. See "At least 250MB more space...
Ctrl+Alt+Del on Linux: What It Does in Linux Mint and How to Disable Reboots with systemd
On Linux, Ctrl+Alt+Del does not open a task manager as it does on Windows. On a desktop such as Linux Mint it opens the Log out dialog (Cinnamon, Xfce, GNOME) or the...
DNS configuration file /etc/named.conf explained
The default configuration of the /etc/named.conf file provides a caching-only nameserver. The file has four main sections described as follows.
1. options
-...
Enable X11 Forwarding over SSH and Set DISPLAY in Linux
X11 forwarding runs a graphical program on a server and shows its window on your own computer, through SSH. Install xauth on the server, connect with ssh -X...
Features of the Btrfs Filesystem
Btrfs (B tree file system) is a modern copy on write filesystem for Linux. It was designed to address the needs of large scale storage and advanced data management. In...
Fix semanage and sysctl Command Not Found on Linux
semanage: command not found means the package that contains it is not installed. On AlmaLinux, Rocky Linux and RHEL 8, 9 and 10 install it with:
sudo dnf install...
GRUB2 Configuration Files Explained (grub.cfg, BLS Entries and grubby)
The GRUB menu that starts your server is built from several files. On CentOS 7 and older releases the menu entries lived inside /boot/grub2/grub.cfg. On AlmaLinux,...