Ubuntu Create a cron.log File To Log crontab Logs [16.04/18.04/20.04]

To create a “cron.log” file to log crontab logs on Ubuntu 16.04, 18.04, and 20.04, you can use the following steps: Create the “cron.log” file: # touch /var/log/cron.log Change the ownership of the file to the syslog user: # chown syslog:adm /var/log/cron.log Edit the syslog configuration file: # nano /etc/rsyslog.d/50-default.conf Add the following line to … Read more

How to configure Postfix relayhost (smarthost) to send eMail using an external smptd

To configure Postfix to use an external SMTP server as a relayhost (smarthost), you can use the following steps: Edit the Postfix configuration file: # nano /etc/postfix/main.cf Add or modify the following line: relayhost = smtp.example.com:587 Replace smtp.example.com with the hostname or IP address of your SMTP server and 587 with the port number if … Read more

How to install KVM on Ubuntu 16.04 LTS Headless Server

To install KVM on a headless Ubuntu 16.04 LTS server, you can use the following steps: Verify that your system supports virtualization: # egrep -c ‘(vmx|svm)’ /proc/cpuinfo If the output is 0, your system does not support virtualization. Install the necessary packages: # apt-get update # apt-get install qemu-kvm libvirt-bin bridge-utils Add your user to … Read more

How to force users to use secure passwords on Ubuntu/Debian Linux

To force users to use secure passwords on Ubuntu or Debian Linux, you can use the “pam_cracklib.so” module in PAM (Pluggable Authentication Modules). This module checks the strength of passwords before allowing them to be set. Here are the steps to enable password checks with PAM: Install the “libpam-cracklib” package: # apt-get install libpam-cracklib Edit … Read more