Ubuntu Server 20.04

How to monitor the network on Ubuntu Server 20.04

July 29th 2021, 8:40
The Ubuntu server provides tons of utilities to ease network monitoring and administration. Step 1 : We will start with a commonly used command, that is, ifconfig. You will need to install net-tools. sudo apt install net-tools We mostly use this command to read the network configuration details such as...
131

How to monitor system memory and swap utilization on Ubuntu Server 20.04

July 29th 2021, 8:25
In the last post, we used commands top and vmstat to monitor CPU utilization. These commands also provided details of memory usage. Step 1 : Run the top command and check for the Mem and Swap rows top Step 2 : You can query memory statistics for a specific PID...
146

How to How to Monitor the CPU on Ubuntu Server 20.04

July 29th 2021, 7:34
Follow these steps to monitor the CPU Step 1 : To start top, simply type in top in your command prompt and press Enter top Step 2 : You can use the htop command. htop Step 3 : The command pidstat can be used to monitor CPU utilization by an...
160

How to install and set up a well-known e-mail filtering program, spam-assassin on Ubuntu Server 20.04

July 29th 2021, 7:32
Follow these steps to filter mail with spam-assassin Step 1 : Install spam-assassin with the following command: sudo apt-get update sudo apt-get install spamassassin spamc Step 2 : Create a user account and group for spam-assassin sudo groupadd spamd sudo useradd -g spamd -s /usr/sbin/nologin -d /var/log/spamassassin -m spamd Step...
125

How to add e-mail accounts to Postfix on Ubuntu Server 20.04

July 29th 2021, 8:09
Follow these steps to add e-mail account: Step 1 : Create a new user account: sudo useradd -s /usr/sbin/nologin -m usermail Step 2 : Get the UID and GID for this account sudo grep usermail /etc/passwd Step 3 : Create a base directory layout for domains and users sudo mkdir...
92

How To Enable IMAP and POP3 with Dovecot on Ubuntu Server 20.04

July 29th 2021, 7:35
Follow these steps to enable IMAP and POP3 with Dovecot Step 1 : First, install the Dovecot binaries from the Ubuntu main repository: sudo apt-get update sudo apt-get install dovecot-imapd dovecot-pop3d Step 2 : Next, proceed with configuring Dovecot. Open the file /etc/dovecot/dovecot.conf. By default Dovecot has enabled POP3 and...
93

How To Install and Configure Postfix on Ubuntu Server 20.04

July 29th 2021, 8:16
Postfix is an open source MTA which routes e-mails to their destination. It is a default MTA for Ubuntu and is available in Ubuntu's main package repository. Follow these steps to send e-mails with Postfix Step 1 : Install Postfix and mailutils with the following commands: sudo apt-get update sudo...
131

How to Install the Network File System (NFS) on ubuntu server 20.04

July 29th 2021, 8:31
Network File System (NFS) is a distributed filesystem protocol that allows clients to access remote files and directories as if they are available on the local system You will need two Ubuntu systems: one as a central NFS server and another as a client. Host - 192.168.1.160 Client - -...
104

How to use the Rsync utility to synchronize files on ubuntu server 20.04

July 29th 2021, 8:33
Follow these steps to synchronize files with Rsync: Step 1 : Create a sample directory structure on the source server cd ~ mkdir sampledir touch sampledir/file{1..10} ls -l sampledir Step 2 : Now, use the following command to synchronize the entire directory from the source server to your local system....
113

How to Install the secure FTP server on ubuntu server 20.04

July 29th 2021, 7:32
Follow these steps to install the secure FTP server: Installing FTP server Step 1 : Install vsftpd with the following command sudo apt-get update sudo apt-get install vsftpd Step 2 : After installation, we can configure vsftpd by editing /etc/vsftpd.conf Configure an FTP server with SSL/TLS Step 3 : First...
122