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

How to install and setup LXC (Linux Container) on Fedora Linux 26

To install and setup LXC (Linux Containers) on Fedora 26, follow these steps: Install the lxc and lxc-templates packages: sudo dnf install lxc lxc-templates Create the required directories and set permissions: sudo mkdir -p /var/lib/lxc sudo chmod 755 /var/lib/lxc Start the lxc service and enable it to start at boot: sudo systemctl start lxc sudo … Read more

How to mount Glusterfs volumes inside LXC/LXD (Linux containers)

To mount a GlusterFS volume inside an LXC/LXD container, you need to do the following steps: Install GlusterFS client packages in the container: sudo apt-get update sudo apt-get install glusterfs-client Create a mountpoint directory in the container: sudo mkdir -p /mnt/glusterfs Mount the GlusterFS volume to the mountpoint directory: sudo mount -t glusterfs <glusterfs-server-hostname-or-ip>:<volume-name> /mnt/glusterfs … Read more