How to create a Linux swap file

You can create a Linux swap file by following these steps: First, check the available disk space by running the command “df -h”. This will show you the amount of free space available on your system. Decide on the size of the swap file. It’s recommended that the swap file size is at least twice … Read more

FreeBSD configure AWS SES with Postfix MTA

To configure Amazon Web Services (AWS) Simple Email Service (SES) with the Postfix Mail Transfer Agent (MTA) on FreeBSD, you will need to follow these steps: Install the Postfix MTA by running the command “pkg install postfix”. Configure the Postfix MTA by editing the “/usr/local/etc/postfix/main.cf” file. Set the “myorigin” parameter to your domain name, set … 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

How to install less on CentOS / RHEL / Fedora

Less is a command-line tool that allows you to view text files in a paginated manner. You can install it on CentOS, RHEL, and Fedora using the package manager. (https://www.fi-di.com/) To install less on CentOS or RHEL: Run the command “sudo yum install less” to install the less package. To install less on Fedora: Run … Read more

How to set/change FQDN on Ubuntu 20.04 Linux

To set or change the Fully Qualified Domain Name (FQDN) on Ubuntu 20.04, you can follow these steps: Open the terminal by pressing “Ctrl + Alt + T” or by searching for “terminal” in the start menu. Run the command “sudo nano /etc/hostname” to open the hostname configuration file in nano text editor. Change the … Read more