Linux

LightSail VPS WordPress notes

I recently moved a couple WordPress-based websites from an older Amazon Linux 2 based LightSail VPS to a newer Ubuntu 22 based VPS. These are my notes in case I want to refer to them later (with some info redacted for posting publicly). Ensure you can access and edit the domain records since the IP …

LightSail VPS WordPress notes Read More »

Bash – Launch new terminals

A simple example to launch terminals (gnome-terminal) with bash. This example launches 4 terminals; each monitoring the system in a different way. #!/bin/bash # [Eaxample] Helper script to launch CLI apps # Created to use gnome-terminal (e.g. instead of pterm, etc) ROUTING_TABLE_CMD=”watch -n 30 netstat -r” DISK_USAGE_CMD=”watch -n 60 df -h” ACTIVE_PROCESSES_CMD=”top -a” MEMORY_UTILIZATION_CMD=”watch -n …

Bash – Launch new terminals Read More »

Simple website backup script

I have used variation of this backup script for quick backups of typical LAMP stack websites (e.g. based on Drupal or WordPress). This saves the database along with the files into an archive… Depending on the website, there may be various non-web-accessible (private) directories to include in the script as well. Once the script is …

Simple website backup script Read More »