How to set rsync speed limit from eating all bandwidth with ‐‐bwlimit option

The –bwlimit option in rsync allows you to limit the bandwidth used by the transfer. You can specify the bandwidth limit in kilobytes per second. For example, to limit the transfer speed to 128 kilobytes per second, use the following command: rsync –bwlimit=128 <source> <destination> where <source> and <destination> are the paths to the source … Read more

How to install GlusterFS with a replicated high availability storage volume on Ubuntu Linux 16.04 LTS

Here’s how you can install GlusterFS with a replicated high availability storage volume on Ubuntu 16.04 LTS: Install GlusterFS: sudo apt-get update sudo apt-get install glusterfs-server Start and enable the GlusterFS service: sudo systemctl start glusterd sudo systemctl enable glusterd Create two new directories on two different servers, which will be used as the bricks … Read more

How to enable gzip compression in nginx server on Linux or Unix system

Here’s how you can enable gzip compression in Nginx server on a Linux or Unix system: Open the Nginx configuration file, typically located at /etc/nginx/nginx.conf. In the http block, add the following lines to enable gzip compression: http { … gzip on; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; … } The gzip_types … Read more

How to install and configure MariaDB Galera as master to master replication cluster on Ubuntu 16.04 LTS

Here’s how you can install and configure MariaDB Galera as a master-to-master replication cluster on Ubuntu 16.04 LTS: Install MariaDB on each node in the cluster: sudo apt-get update sudo apt-get install software-properties-common sudo apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://ftp.igh.cnrs.fr/pub/mariadb/repo/10.3/ubuntu xenial main’ sudo apt-get update sudo apt-get install mariadb-server mariadb-client … Read more

How to extract a .deb file without opening it on Debian or Ubuntu Linux

You can extract the contents of a .deb package file without opening it on Debian or Ubuntu Linux using the dpkg-deb command line tool. The following command will extract the contents of a .deb package file named package.deb to the directory extracted_files: dpkg-deb -R package.deb extracted_files The -R option tells dpkg-deb to extract the contents … Read more