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 mount Glusterfs volumes inside LXC/LXD (Linux containers)
To mount a GlusterFS volume inside an LXC/LXD container, you need to do the following steps:rn rn Install GlusterFS client packages in the container: rn rn rn rn sudo apt - get update rnsudo apt - get install glusterfs - clientrn rn rn rn Create a mountpoint directory in the container: rn rn rn rn s
How to install the latest/stable version of Linux kernel on Ubuntu Linux using apt-get
To install the latest stable version of the Linux kernel on Ubuntu using apt-get , follow these steps:rn rn Update the package index: rn rn rn rn sudo apt update rn rn rn rn Install the latest Linux kernel image and headers: rn rn rn rn sudo apt install linux-image-generic linux-headers-genericrn rn
How to test the network speed/throughput between two Linux servers
You can test the network speed or throughput between two Linux servers using the iperf tool. Here's how to do it:rn rn Install iperf on both servers: rn rn rn rn sudo apt install iperf (on Debian/Ubuntu) rnor rnsudo yum install iperf (on CentOS/Red Hat) rn rn rn rn On one of the servers, start iperf
How to add new brick to replicated GlusterFS volume on Linux
To add a new brick to a replicated GlusterFS volume on Linux, follow these steps:rn rn Ensure that the GlusterFS volume is stopped on the new brick node: rn rn rn rn systemctl stop glusterdrn rn rn rn Start the glusterd service on all other nodes in the trusted storage pool: rn rn rn rn systemctl st
How to secure Nginx with Let’s Encrypt certificate on Alpine Linux
To secure Nginx with a Let's Encrypt SSL certificate on Alpine Linux, you can use the certbot tool. Here are the steps:rn rn Install certbot: rn rn rn rn apk add certbotrn rn rn rn Obtain a SSL certificate: rn rn rn rn certbot certonly --standalone -d example .com rn rn rn rn Update Nginx configurat
How to install PHP 7 fpm on Alpine Linux
To install PHP 7 fpm on Alpine Linux, follow these steps:rn rn Update the package list: rn rn rn rn apk update rn rn rn rn Install PHP 7 fpm and dependencies: rn rn rn rn apk add php7-fpmrn rn rn rn Start the PHP 7 fpm service: rn rn rn rn /etc/init.d/php-fpm7 startrn rn rn rn Enable the PHP 7 fpm s
How to install and setup Nginx on Debian Linux 9
To install and set up Nginx on Debian Linux 9, follow these steps:rn rn Update the package list: rn rn rn rn sudo apt update rn rn rn rn Install Nginx: rn rn rn rn sudo apt install nginxrn rn rn rn Start Nginx: rn rn rn rn sudo systemctl start nginxrn rn rn rn Enable Nginx to start automatically on
Linux Rename Folder Command
To rename a folder in Linux, use the “mv” command. The syntax is: n n n mv old_folder_name new_folder_name n n n For example, to rename a folder named “old_folder” to “new_folder”, run: n n n mv old_folder new_folder n n( www.topskitchen.com )
How to shutdown / reboot the remote Linux server from the CLI
To shutdown a remote Linux server from the command line, you can use the ssh command to remotely log into the server and then use the sudo command to run the shutdown command with the appropriate options. For example, to shutdown the remote server immediately, you can run the following command: ssh
How to test PHP 7 and WordPress MySQL/MariaDB Database connectivity using a PHP script
To test PHP 7 and WordPress MySQL/MariaDB database connectivity using a PHP script, you can use the following steps: Create a new PHP file with a .php extension, for example test.php Open the file using a text editor and add the following code: <?php rn $host = "hostname" ;rn $user = "username" ;
How to move/migrate LXD VM to another host on Linux
To move/migrate an LXD virtual machine to another host, follow these steps: n n On the source host, stop the LXD container: n n n lxc stop < container name > n n n n Export the container: n n n lxc export <container name> < file name > .tar.gz n n n n Copy the exported tar archive
How to change or configure OpenBSD package install mirror
To change the package mirror on OpenBSD, you can modify the ftp.conf file, which contains the URL of the package mirror. Here's how to change the package mirror: Open the ftp.conf file: sudo nano /etc/installurlrn Change the URL in the file to the desired package mirror: http : //ftp.openbsd.org/pub
How to delete files containing a character or number/digit in their filename on Linux or Unix
You can delete files containing a character or number/digit in their filename using the find command and the rm command. Here is an example to delete all files containing a digit in their filename: find . - type f -name "* *" - delete rn Explanation: find . : Find files in the current directory. -ty
How To Set Up PF Firewall on FreeBSD to Protect a Web Server
To set up the PF firewall on a FreeBSD system, follow these steps: Install PF: # pkg install pf rn Enable PF on boot: # echo pf_enable= "YES" >> /etc/rc.conf rn Configure firewall rules: Create a file named /etc/pf.conf and add the firewall rules. Here is an example configuration to protect a
How to install route command on CentOS / RHEL 7
The route command is already installed and available on most Linux distributions, including CentOS and RHEL 7. To verify if it’s installed on your system, you can run the following command in the terminal: n n n route --version n n n If the output shows the version of the route command, it mea
How to delete and remove files on Arch Linux
To delete and remove files on Arch Linux, you can use the following methods: Using the rm command: The rm (remove) command is used to delete files and directories in Arch Linux. To delete a file, simply run the following command: rm file_namern Using the rm -r command: The rm -r (remove recursively)
How to remove non empty Directory in Linux
To remove a non-empty directory in Linux, you can use the "rm" command with the "-r" option for recursive deletion: rm -r <directory_name>rn For example: rm -r /path/to/non_empty_directoryrn This will remove all files and subdirectories within the target directory. Be careful when using the "-
How to find and replace text/IP address with Ansible
To find and replace text/IP address with Ansible, you can use the replace module. Here's an example of how you can use it in a playbook: - name: Replace text in file rn replace: rn path: /path/to/file rn regexp: 'old_text' rn replace: 'new_text' - name: Replace IP address in file rn replace: rn
How to find disk I/O latency with ioping monitoring tool on Linux
To find disk I/O latency with the ioping monitoring tool on Linux, you can use the following steps: n n n Install ioping: On most Linux distributions, you can install ioping using the package manager. For example, on Ubuntu, you can run sudo apt-get install ioping . n n n Use ioping to measure disk
userdel: user vivek is currently used by process 749 error and fix on Linux
This error message occurs when you try to delete a user account that is still being used by a running process. To resolve this issue, you need to first identify the process using the user account and then stop it before deleting the user account. n Here is the process to resolve the error: n n n Ide
2,685 guides published.
