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

How to install Go [golang] on Ubuntu Linux

To install Go (Golang) on Ubuntu Linux, you can follow these steps: Download the latest version of Go from the official website by running the following command: wget https://golang.org/dl/go1.x.linux-amd64.tar.gz Extract the downloaded archive by running the following command: tar -xvf go1.x.linux-amd64.tar.gz Move the extracted folder to the ‘/usr/local’ directory by running the following command: sudo … Read more

How to install MySQL server on CentOS 8 Linux

To install MySQL server on CentOS 8, follow these steps: Start by enabling the MySQL module by running the following command: sudo dnf module enable mysql:8.0 Next, install the MySQL server package by running the following command: sudo dnf install mysql-server After the installation is complete, start the MySQL service and enable it to start … Read more

How to enable rc.local shell script on systemd while booting Linux system

To enable an rc.local shell script on a systemd-based Linux system during boot, you can follow these steps: Create a file named “rc-local.service” in the “/etc/systemd/system” directory. Open the file in your text editor and paste the following content: [Unit] Description=/etc/rc.local compatibility [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=multi-user.target Make the file … Read more

How to install VirtualBox on Ubuntu 20.04 Linux LTS

To install VirtualBox on Ubuntu 20.04 LTS, follow these steps: Add the VirtualBox repository to your system by running the following command in the terminal: sudo add-apt-repository “deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian focal contrib” Download and add the Oracle public key for apt-secure using the following command: wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add – Update … Read more