Tag: linux
-
Disk Partitions, Tables, Labels and File Systems
Intro I just got a new disk, installed it physically into my Ubuntu Server, and realized that I’ve forgotten everything to do with disk formatting/partitioning, etc. Here I remind myself as to what exactly all of these are concepts are and how to work with them. Identifying Disks When you’ve got a disk installed for…
-
LAMP Stack App on AWS with Docker, RDS and phpMyAdmin
Intro I was recently tasked with migrating an old LAMP-stack app (PHPv5) running on a Centos6 server to the newer PHPv7 on a Centos8 machine, and ensuring that the code didn’t break in the php upgrade. I figured the best way to do that would be to use Docker to simulate PHP 7 on a…
-
Raspberry Pi Cluster V: Deploying a NextJs App on Ubuntu Server 20.04
Intro In the last part I opened up my primary node to the Internet. We’re now in a position to make public-facing applications that will eventually connect up with microservices that harness the distributed computing power of the 4 RPi nodes in our cluster. Before we can make such parallel applications, we need to be…
-
Raspberry Pi Cluster Part IV: Opening Up to the Internet
Intro We want to serve and access the cluster to the Internet from a home connection. To do that, we need to set up our home router with port forwarding, and open up ports for SSH, HTTP and HTTPS. All traffic goes through our primary node (RPi1). If I want to connect to a non-primary…
-
Raspberry Pi Cluster Part II: Network Setup
Introduction In the last post we got the hardware in order and made each of our 4 RPi nodes production ready with Ubuntu Server 20.04. We also established wifi connections between each node and the home router. In this post, I’m going to describe how to set up the “network topology” that will enable the…
-
Launching Subprocesses in Python3
Motivation It’s important in the world of IT to know a scripting language for data processing, task automation, etc. For simple tasks (e.g. moving files, starting programs), my goto scripting language is Bash. But when I need something with more tools and precision (e.g. parsing html), I use python3. I decided in recent times to…