Category: Linux

WordPress – critical site health issues

Issue: If your WordPress site is behind a SSL reverse proxy that’s not on the same server as the WordPress site installation, your Site Health Status might be showing 2 critical issues: The REST API encountered an error Your site could not complete a loopback request This is due to WordPress site is trying to…


Port forwarding/redirect configuration for LXD/LXC Virtual Machines

How to configure a port forwarding or a port redirect in LXD/LXC Virtual Machine If you are looking how to do the same for LXC containers,  look here. Unlike port forwarding for containers, virtual machines require you to set a static IP address before you can configure the proxy device. If you don’t have a static…


Setting resource limits for LXC

How to limit resources for the Linux containers inside LXD. Intro In this example I’m using Ubuntu 20.04 with LXD 4.0.8 installed. Containers are running on ZFS storage. My test container name that I’m using for this tutorial is called lamp. What is lamp? CPU and Memory limits Use following commands to set CPU to…


Automated snapshots of LXC on ZFS storage

How to setup an automated backup of the LXCs backed by ZFS storage, using snapshots. Objective Configure scheduled snapshots with expiration date. Requirements Ubuntu or Debian server running LXD. Containers must reside on ZFS storage. Expiration Set the amount of days you want to keep your snapshots. Here is the example for 10 days: lxc config…


Port forwarding/redirect configuration for LXD/LXC containers

How to setup port forwarding/redirect for the LXC container Objective Configure port forwarding or port redirect on the Ubuntu 20.04, hosting LXC containers, to the container running web server on port 80. Forward To accomplish this we are going to add a proxy device called http-forward to the container called web-server that listens for connections…


Find disk space usage on Linux CLI

Disk Usage How to find disk usage on the Linux machine using du utility. To get more information on du, read this manual. To begin, open a command prompt and issue a du command, like so: $ du The output that you got out of it is probably not very useful. Let’s make it more…


Encryption with LUKS

How to encrypt media with LUKS and mount it on Debian 10 system start up Getting ready Prepare the device you want to encrypt. This can be a full disk, partition, mdadm device, LVM, also removable devices like USB flash drive, SD card, ZIP drive, etc. Install cryptsetup software on your system: $ sudo apt…


How to check if backup destination is mounted, in BASH script, before running a backup job.

This article is about running backup job only if destination mount point exists on the system. This script was tested on Ubuntu LTS 18 and 20. Both, desktop and server versions. You can get Ubuntu from here. BASH script, Part One I need to check if backup destination is mounted before backup job begins. Destination…


ZFS on Linux

How to manage ZFS on your Ubuntu or Debian Linux. This tutorial was tested on Debian 10, Ubuntu 18 and 20 both, Server and Desktop editions. I’m not going into details about what is ZFS. I’m assuming you already know this. Getting ready Install support for ZFS on Ubuntu with this command: $sudo apt install…