How to configure automated security updates on Debian automatically

Debian provides a package called “unattended-upgrades” to automate security updates. Here’s how you can configure it: Install the unattended-upgrades package: sudo apt-get install unattended-upgrades Open the configuration file: sudo nano /etc/apt/apt.conf.d/50unattended-upgrades Enable the automatic upgrade of security updates: Unattended-Upgrade::Allowed-Origins { “${distro_id}:${distro_codename}-security”; // “${distro_id}:${distro_codename}-updates”; // “${distro_id}:${distro_codename}-proposed”; // “${distro_id}:${distro_codename}-backports”; }; Enable email notifications for upgrades: Unattended-Upgrade::Mail “root”; … Read more

Install and Configure an OpenVPN on Debian 9 In 5 Minutes

Here is a step by step guide to install and configure OpenVPN on Debian 9: Update the package index and install OpenVPN: sudo apt-get update sudo apt-get install openvpn Create a directory for the VPN configuration files: sudo mkdir /etc/openvpn/server Copy the sample OpenVPN server configuration file to the new directory: sudo cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/server … Read more

How To install and setup PostgreSQL 9.6 on Debian Linux 9

To install and setup PostgreSQL 9.6 on Debian 9, follow these steps: Update the package index: sudo apt-get update Install the PostgreSQL 9.6 package: sudo apt-get install postgresql-9.6 Start the PostgreSQL service and enable it to start at boot: sudo systemctl start postgresql sudo systemctl enable postgresql Change the default PostgreSQL user password: sudo -u … Read more