Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
How to redirect non-www to www HTTP / TLS /SSL traffic on Nginx
Here is a simple Nginx configuration to redirect non-www traffic to www with HTTPS:rn rn rn server {rn listen 80;rn server_name example.com;rn return 301 https://www.example.com $request_uri ;rn} server {rn listen 443 ssl;rn server_name example.com;rn ssl_certificate /path/to/cert.pem;rn ssl_cert
How to run cron job every minute on Linux/Unix
To run a cron job every minute on a Linux/Unix system, you need to create a cron job that runs a shell script or command at the desired interval. Here's how you can do this:rn rn Open the crontab file for editing: rn rn rn rn crontab -ern rn rn rn Add the following line to the end of the file: rn rn
How to find out if my Ubuntu/Debian Linux server needs a reboot
To find out if your Ubuntu/Debian Linux server needs a reboot, you can use several methods. Here are some common methods:rn rn Check the system logs: You can check the system logs to see if there are any messages indicating that a reboot is required. You can use the following command to view the sys
How To Patch and Protect Linux Kernel Stack Clash Vulnerability CVE-2017-1000364
The Linux Kernel Stack Clash vulnerability (CVE-2017-1000364) is a security issue that affects the Linux kernel. To protect against this vulnerability, you will need to patch your Linux system by installing the appropriate security updates. The exact steps to patch and protect against this vulnerabi
How to run two or multiple networks instance of Tinc VPN on same box
Tinc VPN is a virtual private network (VPN) software that allows you to create a secure network between multiple computers. To run two or more network instances of Tinc VPN on the same machine, you will need to perform the following steps for each network: n n Create separate directories for each ne
How to find and delete directory recursively on Linux or Unix-like system ?
To find and delete a directory recursively on a Linux or Unix-like system, you can use the rm command with the -r (or --recursive ) option. For example, to delete the directory /path/to/directory , you would run the following command:rn rn rn rm -rf /path/to/directoryrn rn rnNote: The -f option (or
How to add ZIL write and L2ARC read cache SSD devices in FreeNAS
FreeNAS, a popular open-source network-attached storage (NAS) operating system, supports the use of solid-state drives (SSDs) as a write cache (ZIL) and read cache (L2ARC) to improve performance. Here's how to add ZIL and L2ARC SSD devices in FreeNAS:rn rn Connect the SSD devices to your FreeNAS sys
How to install and use Monit on Ubuntu/Debian Linux server as process supervision tool
Monit is a process supervision tool that can be used to monitor and manage the status of various services and processes on a Linux server. Here's how to install and use Monit on Ubuntu/Debian:rn rn Install Monit using the package manager: rn rn rn rn sudo apt - get update rnsudo apt - get install mo
How to display countdown timer in bash shell script running on Linux/Unix
You can create a countdown timer in a bash shell script using the for loop and the sleep command. Here's an example that counts down from 10 seconds:rn rn rn #!/bin/bash echo "Starting countdown..." rn for i in {10..1}; do rn echo -n " $i " rn sleep 1rn done rn echo "Time's up!" rn rn rnThe scr
How to install latest kernel on CentOS Linux 7 using yum command
To install the latest kernel on CentOS 7 using the yum command, you need to follow these steps:rn rn Update the yum repository to ensure that you have access to the latest packages: rn rn rn rn sudo yum update rn rn rn rn Install the kernel-devel package, which is required for building kernel module
How to write Raspbian OS image file to SD cards on Apple macOS / OS X
You can write a Raspbian image file to an SD card on macOS / OS X using the command line tool "dd". Here's how you can do it:rn rn Insert the SD card into your Mac's card reader. rn Determine the device name of the SD card by running the following command: rn rn rn rn diskutil listrn rn rn rn Unmoun
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:rn rn Install the unattended-upgrades package: rn rn rn rn sudo apt- get install unattended-upgradesrn rn rn rn Open the configuration file: rn rn rn rn sudo nano /etc/apt/apt.conf.d/
How do you find the uptime of a Linux server?
The uptime of a Linux server can be found using the following methods:rn rn Using the "uptime" command: rn rn rn rn uptime rn rn rnThis command displays the current time, the amount of time the system has been running, the number of users currently logged on, and the system load averages for the pas
How to use or specify multiple IP addresses in iptables source or destination on Linux
In iptables, you can specify multiple IP addresses by using the '--ipset' option in conjunction with an IP set. An IP set is a database that holds a collection of IP addresses or CIDR networks and is implemented as a kernel module in Linux. Here's an example of how you can specify multiple IP add
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:rn rn Update the package index and install OpenVPN: rn rn rn rn sudo apt - get update rnsudo apt - get install openvpnrn rn rn rn Create a directory for the VPN configuration files: rn rn rn rn sudo mkdir /etc/openvpn/serverrn
Check and verify md5/sha1/sha256 checksums for MacOS X when I download files
To check and verify the MD5, SHA1, or SHA256 checksum of a downloaded file on macOS, follow these steps:rn rn Download the checksum file for the file you want to verify. This file should contain the expected checksum values for the file you have downloaded. rn Open a terminal window. rn Change the c
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:rn rn Update the package index: rn rn rn rn sudo apt - get update rn rn rn rn Install the PostgreSQL 9.6 package: rn rn rn rn sudo apt- get install postgresql -9.6 rn rn rn rn Start the PostgreSQL service and enable it to start at b
How to upgrade LXD powered by Ubuntu/Debian or CentOS Linux
The method to upgrade LXD (Linux Container Daemon) depends on the operating system it is running on. Here are the steps to upgrade LXD on Ubuntu/Debian and CentOS Linux: For Ubuntu/Debian:rn rn Update the package index: rn rn rn rn sudo apt - get update rn rn rn rn Upgrade LXD: rn rn rn rn sudo a
How to change root password in Ubuntu Linux
To change the root password in Ubuntu, follow these steps:rn rn Open a terminal window or switch to a TTY console. rn Type sudo passwd and press enter. rn Enter your current user password. rn Type the new root password and press enter. rn Re-enter the new root password to confirm. rn rnThe root pass
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:rn rn Install the lxc and lxc-templates packages: rn rn rn rn sudo dnf install lxc lxc-templatesrn rn rn rn Create the required directories and set permissions: rn rn rn rn sudo mkdir -p /var/lib/lxcrnsudo chmod 755 /var/li
2,685 guides published.
