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.

How to Stop Nemo From Freezing When You Plug In a New USB Stick

Why Nemo Sometimes Freezes on USB Insertion

Plug a USB stick into a Cinnamon‑powered machine and you’ll often see Nemo pause for a few seconds.
It’s not a mysterious bug; the culprit is usually the thumbnail generation daemon (nemo‑thumbnailer).
When the drive is large, full of files, or uses a filesystem that the thumbnailer struggles with, the UI can stall.
For a homelab operator juggling media libraries or a developer who needs a snappy workflow, that pause can feel like a real roadblock.

[Read More]

Zero‑downtime Let’s Encrypt renewal behind Caddy for my homelab Nginx stack

Running a small homelab with Nginx as the front‑end for a handful of services, I like to put Caddy in front. It gives me automatic HTTPS, a tidy reverse‑proxy, and the peace of mind that certificates are always fresh. The trick is to keep the renewal process from touching Nginx at all. Below is the practical walk‑through I use every day, with all the commands and details intact.


Why Caddy + Nginx?

Caddy’s built‑in ACME client is a major reason it’s the go‑to for homelabs. It can request, renew, and reload certificates without a manual touch. Nginx, meanwhile, is the workhorse that serves static files, runs PHP‑FPM, or forwards requests to Docker containers. By putting Caddy in front, you get:

[Read More]

How to Run a Home‑Lab MQTT Broker with Traefik and ACME on Debian

Setting Up a Home‑Lab MQTT Broker with Traefik and ACME on Debian

MQTT is the de‑facto messaging protocol for IoT and home‑automation projects.
If you already run a small lab or a home server, adding a broker that is secure, automatically cert‑managed, and easily reachable from the internet is a great way to learn about reverse proxies, TLS, and container orchestration.

Below is a step‑by‑step guide that uses Docker Compose (or Podman‑Compose if you prefer a rootless setup), Traefik as the reverse proxy, and Let’s Encrypt (ACME) for free TLS certificates.
Everything runs on a fresh Debian 12 “bookworm” installation, but the concepts translate to other distros with little change.

[Read More]

Running a Home NAS with TrueNAS CORE: From ZFS Pool to SMB Shares

Setting up a Home NAS with TrueNAS CORE: From ZFS Pool to SMB Shares

Home‑network attached storage is the bread‑and‑butter of any homelab. A single box can hold media, backups, and a file‑server, and it can run Plex, Nextcloud, or just plain SMB.
TrueNAS CORE (the free, community edition of the FreeNAS family) ships with ZFS, so you get snapshots, compression, and data integrity out of the box.

Below is a hands‑on walk‑through on a modest 4‑bay chassis, from booting the installer to exposing a Windows‑friendly SMB share. I’ll keep the command snippets real, point out where you’ll run into trade‑offs, and throw in some “I’ve seen this go wrong” moments that only come from running the system day‑to‑day.

[Read More]

Quickly Restore a Mistakenly Deleted Home Folder with Btrfs Snapshots

Accidentally running rm -rf ~/Documents or letting a rogue script wipe your entire home directory is a nightmare that can happen to anyone. If your root filesystem sits on Btrfs, you can usually recover almost instantly by leveraging snapshots. This post walks through the steps you need to take—from setting up snapshots before you delete anything to restoring the lost data—and discusses the trade‑offs and pitfalls you should watch out for.

[Read More]

Deploy Traefik to Route Home NAS and Pi‑Hole Without Self‑Signed Certs

Why Traefik is a Good Fit for Home NAS and Pi‑Hole

If you’re already running a NAS (Synology, QNAP, or a DIY Raspberry Pi) and a Pi‑Hole instance, you’re probably exposing them through a static IP or a dynamic‑DNS service. The easiest way to add HTTPS without juggling self‑signed certs is to let Traefik be the reverse proxy and hand off certificate acquisition to Let’s Encrypt automatically. Traefik is lightweight, runs in a container, and can be configured with a single YAML file. Below is a step‑by‑step guide that shows how to set it up on a Raspberry Pi running Raspberry OS (Debian‑based) and how to route traffic to both services while keeping the configuration simple.

[Read More]

Using jq to extract a single field from nested JSON logs

Extracting a Single Field from Nested JSON Logs with jq

Running a homelab or a tiny self‑hosted service usually means dealing with JSON‑encoded logs. Whether it’s systemd‑journal, docker logs, or a custom app, the output is often a tidy JSON object per line. The catch? Those objects are usually nested, and if you only care about one value—like the HTTP status code or a user ID—you’ll waste a lot of time sifting through the whole file. That’s where jq steps in.

[Read More]

Preventing /tmp from Over‑filling: a quick Ubuntu desktop fix

Why /tmp can become a silent disk‑drainer

On an Ubuntu desktop /tmp is just another folder on the root partition.
Every app that needs a scratch pad drops files there, and most of the time it’s fine—just a few megabytes.
But if a program starts spitting out large temporary data (think big builds, video editors, or a runaway installer) and never cleans up, that folder can gobble up the whole root filesystem.
A full root partition means apps crash, new files can’t be created, and worst of all you might find yourself locked out of the login screen.

[Read More]

How to Stop a Log File from Filling Your SSD in 5 Minutes

The problem

On a fresh SSD a single log file can grow fast enough to fill the drive in minutes.
Typical culprits are:

  • Systemd journal when systemd-journald is left to write to /var/log/journal/ without limits.
  • Application logs that never rotate, e.g. nginx, docker, postgres, or custom scripts.
  • Debug or verbose modes that are left enabled in production.

When the disk is full, services stop, new writes fail, and the machine can become unresponsive. Below is a hands‑on guide that shows how to stop a log file from filling an SSD in 5 minutes, using tools that are already part of most distributions.

[Read More]

When nftables silently drops your local web server: a step‑by‑step debug

If a browser on the same machine can’t reach http://localhost:8080 but curl from another host works, the culprit is often nftables. Unlike iptables, nftables doesn’t log dropped packets by default, so you may not see any trace in /var/log/syslog. Below is a concise, hands‑on checklist that will help you locate the invisible rule that’s blocking local traffic.

1. Verify the service is listening

sudo ss -tulpn | grep 8080

You should see something like:

[Read More]