Welcome to the Café

Explore the world of Linux with clear, approachable guides. Whether you’re just starting out or looking to sharpen your skills, you’ll find something to brew your interest here.

Running a FreeNAS Backup Server with rsync and Snapshots on a Raspberry Pi 4

Running a FreeNAS‑style Backup Server with rsync and Snapshots on a Raspberry Pi 4

If you’ve ever wanted a tiny, energy‑efficient NAS that still gives you snapshots and incremental sync, the Pi 4 is a solid choice. I’ve set up a few of these in my own home lab, and they’re surprisingly robust. Below is the walk‑through I use, with a few practical tweaks that keep things running smoothly.


Why this stack?

  • rsync is the workhorse for incremental copies; it’s built into almost every distro and keeps permissions, timestamps, and ownership intact.
  • btrfs (or ZFS‑on‑Linux if you’re adventurous) gives you instant, copy‑on‑write snapshots that are cheap in space and fast to roll back.
  • The Pi 4’s 4 GB RAM and single‑GbE port are plenty for a handful of clients and a few hundred gigabytes of data.
  • All tools are free, and the Pi can run headless – SSH is all you need, but if you’re a GUI fan, Webmin or Cockpit is an option.

Hardware checklist

Item Minimum Recommendation
Raspberry Pi 4 B (any revision) 4 B + USB‑3.0 HAT
Storage 1 TB HDD/SSD (USB‑3.0) 2 TB SSD for speed
Power 5 V 3 A 5 V 3 A USB‑C
Network 1 GbE 1 GbE or 2.5 GbE via USB‑3.0 HAT

A USB‑3.0 HAT gives you a real 5 Gbps link to your drives, which keeps rsync throughput high. I’ve seen the Pi choke on 100 Mbps when you only use the on‑board Ethernet.

[Read More]

Rootless Podman: How I Got My Home Directory Synced to a Container Volume

Why a Rootless Podman Volume for Your Home Directory?

Running services inside containers is a staple of most homelab setups. When you use Podman in rootless mode you keep the container runtime isolated from the host’s privileged space, which is great for security and for users who don’t have root access. A frequent pain point is that the container’s filesystem is isolated from your personal files. If you want a container to read or write your documents, photos, or configuration files, you need a way to expose a part of your home directory to the container. This post walks through a reliable method to mount a subdirectory of ~/ into a rootless Podman container, covering the trade‑offs, pitfalls, and a few tricks that make the setup robust.

[Read More]

Setting up a Home NAS with Docker, NFS, and SMB – A Hands‑On Guide

Why a Docker‑Based Home NAS?

If you’re looking to turn a spare PC, a Raspberry Pi, or an old laptop into a file server that talks to Windows, macOS, and Linux, Docker is a great way to keep the host clean. You can drop in or pull out services without messing with the kernel, and you still get the familiar NFS/SMB combo that covers every client. Below is a walk‑through that sticks to Debian 12 or Ubuntu 24.04, but the same ideas work on any distro with systemd and Docker.

[Read More]

Running a Rootless Podman Web App with Persistent Volumes on Ubuntu

Ubuntu 24.04 LTS ships with Podman 4.8 straight from the official repos, which makes it a solid choice for a lightweight, root‑less container runtime. Rootless mode means you never have to type sudo, and the container stays inside your own user namespace – a big win for home labs and self‑hosted services.

Below is a step‑by‑step walk‑through that pulls the popular Ghost blogging platform, runs it in rootless Podman, and keeps its data in a bind mount. The same pattern works for any stateless or stateful web service you want to host.

[Read More]

Why My Home Assistant Timer Never Fires—and How to Fix It

If you’ve ever set a timer in Home Assistant and then stared at the clock wondering why nothing happened, you’re not alone.
The culprit is almost always one of three things:

  1. Time‑zone or daylight‑saving mis‑configurations
  2. Timer entity state or YAML syntax errors
  3. System clock drift or NTP hiccups

Below is a practical walk‑through that keeps the technical meat intact while sounding like a coffee‑shop chat between two sysadmins.


1. Verify the System Clock and Time Zone

Home Assistant piggybacks on the host’s clock. If that’s off, timers will be mis‑aligned or never fire.

[Read More]

Fixing a Broken /etc/hosts When systemd‑resolved Hides It

When systemd‑resolved hides /etc/hosts, how to get it back

You’ve edited /etc/hosts to add a local hostname for a home‑lab service, but after a reboot the entry disappears from the output of getent hosts. The system still resolves the name, but it comes from a different source. That’s because systemd‑resolved, the default DNS stack on most recent Linux distributions, now prefers its own cache and configuration over the traditional /etc/hosts file. The result is a silent break in the workflow many beginners rely on.

[Read More]

Running a Self‑Hosted GitLab CI Runner on a Raspberry Pi 4

Why a Raspberry Pi 4 for GitLab CI?

If you already host a GitLab instance on a NAS or a tiny server, a Pi 4 can be the perfect “just‑add‑a‑little‑more‑power” solution.
It’s cheap, low‑power, and its 4‑core Cortex‑A72 at 1.5 GHz does more than you’d expect for unit tests, linting, and even modest Docker builds—just keep the job size in check.


Prerequisites

Item What you need
Raspberry Pi 4 2 GB or 4 GB RAM works; 8 GB gives headroom for Docker.
Micro‑SD card 32 GB+, Class 10.
Power supply Official 5 V/3 A USB‑C.
Network Wired Ethernet is best for stability.
Host OS Raspbian Bookworm (Debian 12) or Ubuntu 22.04 LTS for ARM.
GitLab instance Self‑hosted or GitLab.com, with an API token for runners.

If you’re new to the Pi, flash the OS first and make sure you can SSH in.
For a fresh Raspbian image, enable SSH by placing an empty ssh file in the boot partition or run raspi-config after boot.

[Read More]

Rootless Docker‑Compatible Service on a Home Server: Step‑by‑Step Guide

Rootless Docker‑Compatible Service on a Home Server

Running containers on a home server is a staple of modern homelabs. Most tutorials still point to Docker, but Docker’s root‑required installation is a security and permission headache for a single‑user machine. Rootless container runtimes—most notably Podman—offer the same Docker‑compatible CLI while keeping the daemon in user space. This guide walks through installing Podman, enabling the Docker‑compatible socket, and running a simple web service without ever touching root privileges.

[Read More]

Low‑power Raspberry Pi VPN server blocks ISP snooping

You’ve probably heard that many ISPs log the traffic that passes through their infrastructure. Even if they don’t keep logs for long, the fact that a packet can be inspected at the ISP’s edge is unsettling. A simple VPN on a Raspberry Pi turns that edge into a tunnel that keeps your traffic private, while still letting you use the Pi as a low‑cost, always‑on server.

Below is a step‑by‑step guide that covers:

[Read More]

Fixing GNOME Terminal Freezes on Wayland

Heavy background jobs on a 4K laptop display

Why GNOME Terminal can freeze on a 4K Wayland display

When you fire up a heavy background job—think dd, fio, or a long‑running rsync—the terminal can suddenly stop answering. On a 4K laptop running Wayland the culprit is usually the compositor trying to keep the terminal’s output fresh while the CPU is busy elsewhere. The rendering loop stalls, and the window looks frozen even though the shell is still alive. The cure is to separate the terminal’s repainting from the job’s I/O, or to give the compositor a lighter load.

[Read More]