How to set/change FQDN on Ubuntu 20.04 Linux

In Ubuntu 20.04, you can set or change the Fully Qualified Domain Name (FQDN) by following these steps: First, open the /etc/hosts file by running the following command: sudo nano /etc/hosts Locate the line that starts with 127.0.0.1 and change the hostname to your desired FQDN, for example: 127.0.0.1 localhost.localdomain mynewfqdn Next, you will need … Read more

Set up automatic unattended updates for Ubuntu 20.04

Unattended-upgrades is a package that allows Ubuntu to automatically download and install security updates and other important updates without any user intervention. This can be useful for servers or other systems that are running 24/7, as it ensures that the system remains up-to-date with security patches and other important updates. Ubuntu 20.04 includes an automatic … Read more

How to save iptables firewall rules permanently on Linux

To save iptables firewall rules permanently on Linux, you can use the iptables-save and iptables-restore commands. Start by saving your current iptables rules by running the following command: sudo iptables-save > /etc/iptables/iptables.rules This command will save the current iptables rules to a file named “iptables.rules” in the “/etc/iptables” directory. To make sure that the iptables … Read more

Alpine Linux Change Hostname (computer name)

In Alpine Linux, you can change the hostname (computer name) by following these steps: First, open the system’s hostname configuration file, typically located at /etc/hostname, by running the following command: nano /etc/hostname Replace the current hostname with your desired hostname in the file, then save and close the file. Next, you should also update the … Read more