f
freude
Hardware

Raspberry Pi

A handful of Pis, each doing one quiet job rather than one Pi doing everything — easier to reason about, and a lot easier to recover when something needs a reflash.

Headless SSH GPIO Bash Home network

One job per Pi

Splitting roles across boards — Home Assistant on one, network tools on another — means a crash or an update gone wrong is contained to a single service instead of taking the whole setup down. It also makes it obvious, at a glance, which board does what.

Admin, the lazy way

A small bash menu script runs on each Pi for the common admin tasks — updates, service restarts, log checks — with a reboot warning baked in so a scheduled reboot doesn't take anything by surprise.

A simple admin menu

Nothing fancy — a select loop and a case statement — but it beats remembering fifteen different one-liners across fifteen different SSH sessions.

#!/bin/bash
PS3="Choose an option: "
options=("Update system" "Restart service" "Check disk space" "Reboot" "Quit")
select opt in "${options[@]}"; do
  case $opt in
    "Update system") sudo apt update && sudo apt upgrade -y ;;
    "Restart service") sudo systemctl restart home-assistant@homeassistant ;;
    "Check disk space") df -h / ;;
    "Reboot")
      echo "Rebooting in 10 seconds — Ctrl+C to cancel."
      sleep 10 && sudo reboot ;;
    "Quit") break ;;
    *) echo "Invalid option" ;;
  esac
done

Networking role

One board sits on the home network doing the unglamorous jobs — DNS-level ad blocking, basic uptime checks, the odd speedtest cron — on a wired connection rather than Wi-Fi, since reliability matters more than convenience for anything infrastructure-adjacent.