Installing a Specific Ruby Version

We needed to install Ruby 2.7 instead of what normally comes with Ubuntu 20.04 LTS, if we installed a later than 2.7 Ruby version, the particular application (i.e. Staytus in this case) would barf. The nice people at BrightBox have created some packaged installs of Ruby at various versions.https://www.brightbox.com/docs/ruby/ubuntu/#adding-the-repositoryhttps://launchpad.net/~brightbox/+archive/ruby-ng (Latest version supported 20.04) We first […]

More...

Using dnsmasq on Raspberry Pi for Quick Hosts File Fudge for Android Mobile

During some upcoming changes I needed to test a mobile application to use a test IP address for a standard hostname. Problem is, I didn’t want to root my Android phone to be able edit the hosts file. There are apps such as “Hosts Go”, but in my case these didn’t work. On a normal […]

More...

Storing Credentials for Scripts Outside of Version Control (Environment Variables Example)

So you have a Python script (for example), and you need to store some access credentials for an API it accesses (for example), now you could put the username and password in the script. There’s lots of reasons not to do this however, a key one being that if you are using a version control […]

More...

MicroK8s (Kubernetes) – Raspberry Pi Ubuntu Linux Basic Setup Guide – Part 4 (Image Repositories)

https://microk8s.io/docs/registry-images So images. A container is based on an image. You can pull these images in from the outside world, e.g. from a Public, Private registry, or from the built-in registry. For this copy the “hello-python” directory we created in Part 2 into one called “hello-python3”, you can delete the .tar file in there for […]

More...

MicroK8s (Kubernetes) – Raspberry Pi Ubuntu Linux Basic Setup Guide – Part 3 (Further Tasks)

Well Part 2 was very long, so lets have a shorter one and cover how you can adjust your application on the fly and add the other worker nodes to the cluster. Updating an Application or Service on the Fly Kubernetes is a system whereby you declare what you want the “world” to look like, […]

More...

MicroK8s (Kubernetes) – Raspberry Pi Ubuntu Linux Basic Setup Guide – Part 2 (Build Your Own Image and Deploy It)

Log onto your master node via SSH. We’re going to build an image and then deploy it, so as a developer you’d probably be developing on your own machine possibly running docker locally to test how your containers work before deploying the code to a repository where it can then be applied to a production […]

More...