How to change the Hostname on AlmaLinux 8, CentOS 8 and Rocky Linux 8

Change Hostname

The easiest way to change the hostname on AlmaLinux 8, CentOS 8, and Rocky Linux 8 is to use the hostnamectl command. First I will check the current hostname by running "hostnamectl status" on the shell of my server: hostnamectl status The output on my system is: [root@server1 ~]# hostnamectl status Static hostname: server1.example.com Icon ... Read more

How to convert RPM software packages to Debian (.deb) using alien

Maybe you have had this problem: you are using Debian or Ubuntu Linux and a software package you would like to install is only available in RPM format. The solution is the handy tool called alien, which converts .rpm files to .deb files. Install alien: apt-get install alien Converting an rpm package to Debian format: ... Read more

Solution for: fatal: open database /var/lib/postfix/smtpd_scache.db: File exists

If your mail server stops working (neither incoming nor outgoing email works) and you find the following error message in the mail.log file: fatal: open database /var/lib/postfix/smtpd_scache.db: File exists then the smtpd_scache.db might got corrupted. Postfix will recreate this file if it does not exist. So it can be removed to solve the issue: /etc/init.d/postfix ... Read more

Solution for dovecot error: /path/ is no longer mounted. If this is intentional, remove it with doveadm mount

Dovecot is watching the whole server filesystem for modifications and removed or added sub filesystems. If you get errors similar to this one on your server: Aug 30 09:10:23 server1 dovecot: master: Warning: /var/www/clients/client1/web1/log is no longer mounted. If this is intentional, remove it with doveadm mount  (the directory path may vary), then you can ... Read more

Incorrent Time on Windows/Linux Dual Boot System

If you work on a dual boot system you might experience that when you log off from Windows, onto Linux, and to Windows again, the time that is shown in the bottom right corner might be an hour or more off the actual time. This will correct once you refresh it by loading the time ... Read more

Apache mod_security settings for WordPress and ModX

If you use the apache mod_security module on your apache server, you might encounter wrong 403 errors for several URL's of the cms systems. Here are some exception rules to avoid that: For WordPress Blogs <locationmatch "/wp-admin/admin-ajax.php"> SecRuleRemoveById 300013 SecRuleRemoveById 300015 SecRuleRemoveById 300016 SecRuleRemoveById 300017 </locationmatch> <locationmatch "/wp-admin/page.php"> SecRuleRemoveById 300013 SecRuleRemoveById 300015 SecRuleRemoveById 300016 SecRuleRemoveById ... Read more

Install Minecraft on Ubuntu 12.10 and Mint 14

Minecraft provides you with really good support on Linux. To be able to play, you need to download the .jar file from the official website first (you need that from the Minecraft for Linux / Other section: http://minecraft.net/download. After you have it, you need to check if the java runtime environment is installed: open Synaptic ... Read more

Install Cinnamon 1.6 (unstable) on Linux Mint

Cinnamon 1.6 will apparently be the version used in Linux Mint 14 and is already available for testing. Be warned, since it's the first release of 1.6, it will be buggy. Open Sofware Sources from the main menu and check the Unstable packages (romeo) checkbox to make the packages available to your Update Manager. Afterwards ... Read more