≡ Menu

Debian / Ubuntu

I read your Nginx and Let’s Encrypt free SSL certificate tutorial. However, I use Lighttpd web server on AWS cloud. How do I secure my Lighttpd web server with Let’s Encrypt free SSL certificate on my Ubuntu Linux 16.04 LTS or Debian Linux 8.x server?
[click to continue…]

Ubuntu Linux Remove/Delete PPAs apt-get command

Over time I have added way too many PPAs using the add-apt-repository command on Ubuntu Linux 16.04 LTS server for testing purpose. How can I delete or remove those PPAs? Is there a command to list all PPAs?
[click to continue…]

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

I downloaded a .deb Debian file. How do I extract deb package without installing it on my Debian or Ubuntu Linux based system? How do I list and extract the contents of a Debian package?
[click to continue…]

How to enable TLS/SSL encryption with Glusterfs storage cluster on Linux

I setup GlusterFS cluster on Ubuntu Linux. How do I enable network encryption using TLS/SSL for my Glusterfs storage cluster on Linux for security reasons when using over insecure network such as WAN (wide area network) or the Internet? How do I setup I/O encryption and management encryption with Glusterfs?
[click to continue…]

How do I install and configure MariaDB Galera master to master cluster on Ubuntu Linux 16.04 LTS server to get both read and write scalability?
[click to continue…]

How to wipe a signature from a disk device on Linux with wipefs command

I recently decommissioned Debian Linux based nas server and moved disk from my nas server to Linux-powered desktop. However, when I run fdisk command, I am getting the following error:
    /dev/sdb: device contains a valid ‘LVM2_member’ signature; it is strongly recommended to wipe the device with wipefs(8) if this is unexpected, in order to avoid possible collisions
What is a wipefs and how do I use it on Linux?
[click to continue…]

How to forcefully shutdown a guest VM using virsh command on Linux KVM

I used the command ‘virsh shutdown vm1’ to shut down a guest named vm1 using the virsh command. However, it is still running, and my vm1 is not responding to an ssh session. Is there is a way to forcefully stop or kill a guest VM using the virsh command from host server?
[click to continue…]

How to find all hard links in a directory on Linux

I have a file named /etc/passwd i and I would like to find all hard links to this file in a directory. How do I find out all other hard links to the /etc/passwd in /backups/ directory? How can find all hard links to a given file using Linux or Unix command line option?
[click to continue…]

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

The rsync command is eating all my bandwidth from a backup script and generating tons of I/O. How do I set a limit for file transfer speed of rsync command on Linux or Unix-like system? How can I keep my rsync script from using all of my bandwidth?
[click to continue…]

How to add an extra second hard drive on Linux LVM and increase the size of storage

I have 250GB disk installed on my home Linux server. I just bought a brand new 250GB SATA disk and I want to add a new disk to my existing LVM volume to increase its size total size to 500GB. How do I add a disk to LVM and extend an LVM volume on Linux operating system?
[click to continue…]