Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
Setup CentOS 7 Set Up OpenVPN Server
Setting up an OpenVPN server on CentOS 7 is a relatively straightforward process that can be completed in just a few minutes. Here are the steps to set up an OpenVPN server on CentOS 7:rn rn Install the OpenVPN package by running the following command: rn rn rn rn sudo yum install epel-releasernsudo
Ubuntu 18.04 LTS Set Up OpenVPN Server
To set up an OpenVPN server on Ubuntu 18.04 LTS, you can follow these steps:rn rn Install the OpenVPN package by running the command: sudo apt-get install openvpn rn Create a directory for the server configuration files: sudo mkdir /etc/openvpn/server rn Copy the sample server configuration file to
CentOS 7 dig command not found – How to install dig on CentOS
The dig command is not installed by default on CentOS 7. However, it can be easily installed using the package manager yum . n Here are the steps to install the dig command on CentOS 7: n n Open a terminal window on your CentOS 7 system. n Update the package list by running the following command: n
Ubuntu Enable & Set up Automatic Unattended Security Updates
In Ubuntu, you can enable and set up automatic unattended security updates using the unattended-upgrades package. Here are the steps to do this:rn rn Install the unattended-upgrades package: rn rn rn rn sudo apt-get install unattended-upgradesrn rn rn rn Configure the package to automatically downlo
AWS Lightsail upgrade Ubuntu 16.04 LTS to 18.04 LTS
Upgrading an Ubuntu 16.04 LTS instance on AWS Lightsail to 18.04 LTS requires a few steps. Here's an overview of the process:rn rn Take a snapshot of your Lightsail instance: This will create a backup of your current system in case something goes wrong during the upgrade process. rn Update the packa
FreeBSD install PHP 7.2 with FPM for Nginx
Here are the steps to install PHP 7.2 with FPM (FastCGI Process Manager) for Nginx on FreeBSD:rn rn Install the PHP package using pkg: rn rn rn rn pkg install php72rn rn rn rn Install the PHP-FPM package: rn rn rn rn pkg install php72-fpmrn rn rn rn Enable PHP-FPM in the system: rn rn rn rn sysrc ph
Bash foreach loop examples for Linux / Unix
In Bash, the for loop can be used to iterate over a list of items. Here are some examples of using the for loop in Bash:rn rn Loop over a range of numbers: rn rn rn rn for i in {1..10}; do rn echo $i rn done rn rn rn rn Loop over a list of items: rn rn rn rn for i in item1 item2 item3; do rn echo $i
How to create VM using the qcow2 image file in KVM
Here are the general steps to create a virtual machine (VM) using a qcow2 image file in KVM:rn rn Install KVM on your system if it is not already installed. rn rn rn rn sudo apt-get install qemu-kvm libvirt- bin rn rn rn rn Create a new virtual machine using the virt-install command. This command is
Bash check if process is running or not on Linux / Unix
You can use the ps command to check if a process is running or not on Linux/Unix. The ps command lists all running processes on the system. To check if a specific process is running, you can use the grep command to filter the output of the ps command. For example, to check if the process "ngin
How to add bash auto completion in Ubuntu Linux
Bash auto-completion is a feature that provides suggestions for commands and arguments as you type. To add bash auto-completion in Ubuntu Linux, you can use the following steps:rn rn Install the bash-completion package by running the following command: rn rn rn rn sudo apt- get install bash-completi
Ubuntu dig command not found – How to install dig on Ubuntu
The dig command is part of the dnsutils package in Ubuntu. To install the dig command on Ubuntu, you can use the apt package manager. Here are the steps to install dig command on Ubuntu:rn rn Open a terminal window on your Ubuntu system. rn Run the following command to update the package list and
Ubuntu upgrade or update a single package using apt-get
To upgrade or update a single package using apt-get on Ubuntu, you can use the following command:rn rn rn sudo apt- get install --only-upgrade package -namern rn rnThis command will update the specified package to the latest version available in the repositories. Alternatively, you can use the co
CentOS 7 Run Script When Network Interface is Up (Network Manager)
In CentOS 7, you can use the NetworkManager service to run a script when a network interface is brought up. The NetworkManager service provides a number of hooks that can be used to execute scripts at different points in the network configuration process. Here's an example of how you can use the
Ubuntu 18.04 Setup SSH Public Key Authentication
To set up SSH public key authentication on an Ubuntu 18.04 system, you can use the following steps:rn rn Open a terminal and run the following command to generate a new SSH key pair: rn rn rn rn ssh-keygenrn rn rnBy default, the key will be saved in the ~/.ssh/ directory with the file name id_rsa .r
Ubuntu 18.04 LTS change hostname permanently
To change the hostname of an Ubuntu 18.04 LTS system permanently, you can use the following steps: n n Open a terminal and run the following command to edit the “/etc/hostname” file: n n n n sudo nano /etc/hostname n n n n Replace the current hostname with the new hostname in the file an
How to check how many CPUs are there in Linux system
There are several ways to check the number of CPUs in a Linux system. Here are a few common methods:rn rn Using the "cat" command with the "/proc/cpuinfo" file: rn rn rn rn cat /proc/cpuinfo | grep -c processorrn rn rn rn Using the "nproc" command: rn rn rn rn nproc rn rn rn rn Using the "lscpu" com
Ubuntu -bash: do-release-upgrade: command not found
The "do-release-upgrade" command is used to upgrade an Ubuntu system to a new release version. If you are getting a "command not found" error when trying to run the command, it could mean that the package "update-manager-core" is not installed on your system. Here's an overview of the steps you'l
Ansible reboot Linux machine or server with playbooks
In Ansible, you can use the reboot module to reboot a Linux machine or server. The reboot module allows you to reboot a machine and wait for it to come back online before continuing with the rest of the playbook tasks. Here is an example of how you can use the reboot module in an Ansible playbook
How to add bash auto completion in RHEL 8 (Red Hat Linux)
In Red Hat Enterprise Linux 8 (RHEL 8), bash auto-completion can be enabled by installing the "bash-completion" package. Here's an overview of the steps you'll need to take:rn rn Start by installing the "bash-completion" package by running the following command: rn rn rn rn sudo dnf install bash-com
How to remove hidden files in Linux
n Linux, hidden files are files that begin with a dot (.) character. To remove hidden files in Linux, you can use the rm command with the -r flag to recursively remove the files and the -f flag to force removal. Here is an example command that removes all hidden files in the current directory:rn
2,685 guides published.
