~/lab
The Lab
Because apparently working with computers all day isn't quite enough.
I've been running my own servers and experimenting with technology at home for years. Some of it is genuinely useful, some of it has been a good way to learn something new, and some of it has been a solution to a problem that didn't really exist until I started trying to solve it.
This is somewhere to document a few of those projects and experiments.
The homelab
At the centre of my home setup is an Unraid server, alongside a collection of Raspberry Pis, UniFi networking equipment and various other bits of hardware I've accumulated over the years.
I've always enjoyed finding a use for old computer equipment. At one point, that involved turning an assortment of hardware into a Kubernetes cluster at home. You'd think I'd get enough of Kubernetes at work, but apparently not.
I also run a few remotely hosted Linux servers for things I don't necessarily want to host from home, including this website.
I like having control over the services I run, how they're configured and where my data lives. There's something rather satisfying about getting things working yourself, even when there's a perfectly good commercial alternative that would require considerably less effort.
The trouble is that a relatively simple project can quite quickly acquire a reverse proxy, some automation, monitoring, backups and an alarming amount of configuration.
Possibly too much Wi-Fi
I'm a big fan of UniFi and have gradually built up the network at home over the years. I like having everything centrally managed and being able to see what's happening across the network.
Wireless coverage is something I've possibly taken a little too seriously. We have more access points than people living in the house, and it's apparently possible to pick up our Wi-Fi from trains passing nearby.
In my defence, the wireless coverage inside the house is excellent.
A house with a mind of its own
Home Assistant is probably one of my favourite things I've introduced into the house.
I've accumulated quite a collection of Zigbee devices, sensors and lights over the years. Most of our lighting is automated, with lights coming on as we enter rooms and turning themselves off again when we leave.
It's amazing how quickly you get accustomed to being spared the enormous inconvenience of pressing a light switch.
One of the things I particularly like about Home Assistant is being able to get devices from different manufacturers working together without necessarily relying on their individual apps or cloud services.
I'm much more interested in making the house work intelligently than simply being able to control everything from my phone. Having to get my phone out to turn a light on rather defeats the purpose for me.
The best automations are the ones you eventually forget exist.
I also try to make sure everything is straightforward for Ian to use. Ideally, turning on a light shouldn't require a working knowledge of Zigbee or a brief introduction to YAML.
Everything as code (eventually)
I use Ansible to provision and maintain my Linux servers, Docker to run applications and Nginx to handle incoming web traffic.
I like keeping as much configuration as possible in version control, with repeatable deployments and enough documentation that future me has at least a fighting chance of understanding what past me was thinking.
Having a homelab also gives me somewhere to experiment with technologies outside of work. I can try things out, break things, change my mind and start again without having to explain myself in an incident review.
The hardest part is naming things
Give me a new server and I'll spend an unreasonable amount of time deciding what to call it.
I've changed the naming convention for my servers several times over the years. I'll settle on something I like, rename everything and then inevitably come up with another convention I prefer.
There's a particular irony in being able to automate the provisioning of an entire server in minutes, only to spend considerably longer deciding what its hostname should be.
Rebuilding in Rotterdam
With Ian and me preparing to move to the Netherlands, I'm rather excited about one particular aspect of the move.
I get to build it all again!
Rather than simply recreating what we have now, I'd like to take everything I've learned over the years and have a fresh look at the network, the hardware I'm running, the services I host and how we automate our new home.
It'll also be a good opportunity to simplify some of the things that have become unnecessarily complicated over the years and be a little more efficient about what equipment I keep running.
I'm genuinely looking forward to getting hold of a floor plan, working out where the access points should go and seeing what we can do with Home Assistant in a completely different property.
Ian and I are both looking forward to having a lovely new home in Rotterdam. I've just also got some thoughts about its network topology.
And everything will need naming again.