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 install and setup PostgreSQL on RHEL 8
To install and set up PostgreSQL on RHEL 8, you can follow these steps:rn rn Enable the PostgreSQL repository by running: rn rn rn rn sudo dnf install https: / /download.postgresql.org/pub /repos/yum /reporpms/ EL - 8 -x86_64/pgdg-redhat-repo-latest.noarch.rpmrn rn rn rn Install the PostgreSQL serve
How to set up a firewall using FirewallD on RHEL 8
Setting up a firewall using FirewallD on Red Hat Enterprise Linux 8 (RHEL 8) is a fairly straightforward process. Here's an overview of the steps you'll need to take:rn rn Start by installing FirewallD by running the following command: rn rn rn rn sudo dnf install firewalldrn rn rn rn Once the insta
How to install and use Nginx on OpenSUSE Linux server
Installing and using Nginx on OpenSUSE Linux server is a fairly straightforward process. Here’s an overview of the steps you’ll need to take: n n Start by adding the Nginx repository to your system. You can do this by running the following command: n n n n sudo zypper addrepo -f http: /
How To Install MariaDB on RHEL 8
Installing MariaDB on Red Hat Enterprise Linux 8 (RHEL 8) is a fairly straightforward process. Here's an overview of the steps you'll need to take:rn rn Start by adding the MariaDB repository to your system. You can do this by running the following command: rn rn rn rn sudo dnf config-manager --add-
How to update OpenSUSE Linux software and kernel using CLI
To update OpenSUSE Linux software and kernel using the command line, you can use the "zypper" command. First, update the package index by running:rn rn rn sudo zypper refreshrn rn rnThen, update all installed packages by running:rn rn rn sudo zypper update rn rn rnYou can also update specific pac
Define ssh key per host using ansible_ssh_private_key_file
You can define an SSH key per host using the ansible_ssh_private_key_file variable in Ansible. This variable allows you to specify a different private key file for each host or group of hosts. Here is an example of how you can use the ansible_ssh_private_key_file variable in your inventory file:r
How To Set Up SSH Keys on RHEL 8
Setting up SSH keys on a Red Hat Enterprise Linux 8 (RHEL 8) system allows you to log in to a remote server without having to enter a password. Here is an overview of the steps to set up SSH keys on RHEL 8:rn rn Start by creating a new key pair on your local machine. This can be done using the ssh-k
How to upgrade Ubuntu 16.04 to 18.04 LTS using CLI
To upgrade Ubuntu 16.04 to 18.04 LTS using the command line interface (CLI), you can follow these steps:rn rn Make sure your system is fully updated by running the following command: rn rn rn rn sudo apt update && sudo apt upgradern rn rn rn Back up your system before you begin the upgrade p
How to install and configure memcached on Ubuntu Linux 18.04/20.04
Memcached is a high-performance distributed memory caching system that can be used to speed up dynamic web applications by reducing the amount of time required to load data from a database. Here is an overview of the steps to install and configure Memcached on Ubuntu 18.04/20.04:rn rn Start by updat
How to setup a UFW firewall on Ubuntu 18.04 LTS server
UFW, or Uncomplicated Firewall, is a command-line firewall tool for Ubuntu 18.04 LTS servers. Here is an overview of the steps to set up a UFW firewall on an Ubuntu 18. 04 LTS server: rn rn Start by updating the package list: rn rn rn rn sudo apt update rn rn rn rn Install the UFW package: rn rn rn
How to configure a static IP address on RHEL 8
To configure a static IP address on Red Hat Enterprise Linux (RHEL) 8, you can follow these steps:rn rn Open the /etc/sysconfig/network-scripts/ifcfg-interface file, where interface is the name of the network interface you want to configure. For example, if you want to configure the eth0 interface,
How to install and activate Cockpit web console on RHEL 8
Cockpit is a web-based interface for managing servers running Red Hat Enterprise Linux (RHEL) 8. Here is an overview of the steps to install and activate Cockpit on RHEL 8:rn rn Install the Cockpit package using the dnf package manager: rn rn rn rn sudo dnf install cockpitrn rn rn rn Start the Cockp
Bash read file names from a text file and take action
In Bash, you can read the names of files from a text file and take action on them using a while loop and the read command. Here's an example of how you might do this:rn rn rn #!/bin/bash # The name of the file containing the list of file names rnfile_list= "files.txt" # Open the file and r
FreeBSD wget cannot verify certificate, issued by Let’s Encrypt
When using wget on FreeBSD to download a file from a website with a Let's Encrypt SSL certificate, you may encounter an error that the certificate cannot be verified. This can occur if the root CA certificate for Let's Encrypt is not installed on your system. To resolve this issue, you can instal
Bash get exit code of command on a Linux / Unix
In Bash, the exit code of a command can be accessed using the special variable $? . The exit code is a numeric value that represents the status of the command's execution. A value of 0 typically indicates success, while a non-zero value indicates failure. Here is an example of how to check the ex
How to update LXD container Ubuntu image from 16.04 to 18.04
To update an LXD container running Ubuntu 16.04 to 18.04, you can use the lxc command-line tool. Here are the general steps to follow: n n Start by making a snapshot of the container, so that you can roll back if anything goes wrong during the update process: n n n n lxc snapshot < container name
How to check RAID configuration in Linux
There are several ways to check the RAID configuration in Linux, depending on the type of RAID being used. Here are a few common methods:rn rn cat /proc/mdstat : This command shows the current state of all Software RAIDs in the system. It will display all RAID arrays and their component devices, alo
How to secure Apache with Let’s Encrypt Certificates on RHEL 8/9
To secure Apache with Let’s Encrypt certificates on RHEL 8/9, you can use the Certbot tool. Here are the general steps to follow: n n Install Certbot by running the following command: n n n n sudo dnf install certbot-apache n n n n Obtain a certificate by running the following command: n n n n
Bash check if string starts with character such as #
In Bash, you can use the = operator to check if a string starts with a specific character, such as # . Here is an example:rn rn rn # Declare a variable rnmystring= "#example" # Check if the string starts with "#" rn if ]; then rn echo "The string starts with #" rn else rn echo "The string does
How To Install Linux, Apache, MySQL, PHP (LAMP) stack On RHEL 8
Installing a LAMP (Linux, Apache, MySQL, PHP) stack on RHEL 8 can be done by following these steps:rn rn Install Apache web server: rn rn rn rn sudo dnf install httpdrn rn rn rn Start the Apache service and enable it to start automatically at boot time: rn rn rn rn sudo systemctl start httpdrnsudo s
2,685 guides published.
