Set up automatic unattended updates for Ubuntu 20.04

Ubuntu 20.04 includes a built-in tool called “unattended-upgrades” that allows you to set up automatic updates. Here’s how you can set it up: First, install the package by running the command “sudo apt install unattended-upgrades” Next, configure the package by editing the “/etc/apt/apt.conf.d/50unattended-upgrades” file. In this file, you can set the parameters for the automatic … Read more

How to check TLS/SSL certificate expiration date from command-line

You can check the expiration date of a TLS/SSL certificate from the command line using the “openssl” tool. Here’s an example command that checks the expiration date of a certificate for the domain “example.com”: openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates The “-connect” option specifies the domain and port to … Read more

How to show dropped packets per interface on Linux

Installing dnscrypt-proxy with an ad-blocker on Linux can be done by following these steps: Start by installing dnscrypt-proxy by following the instructions on the official website, this could vary depending on the distribution you are using. Next, you will need to install an ad-blocker such as dnscrypt-proxy-blocklist. To do this, you can download the blocklist … Read more

Alpine Linux set up WireGuard VPN server

Setting up a WireGuard VPN server on Alpine Linux can be done by following these steps: Start by installing the WireGuard package by running the following command: apk add wireguard-tools wireguard-virt Create a new directory to store the configuration files by running the following command: mkdir -p /etc/wireguard Generate a private key for the server … Read more

How to check TLS/SSL certificate expiration date from command-line

You can check the expiration date of a TLS/SSL certificate from the command line using the “openssl” tool. Here’s an example command that checks the expiration date of a certificate for the domain “example.com”: openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates The “-connect” option specifies the domain and port to … Read more