zrina.app
Contact
Menu
← All articles

Behind the Scenes

From an Old Mini PC to a Home Server: AdGuard, Dev Databases, Retro Games, and Zero Subscriptions

How I turned a used office mini PC into a silent Debian home server running Docker — from network-wide ad blocking and dev databases to retro games and Termius workflows.

Most of us have an older computer sitting around at home that feels too sluggish for modern Windows, yet is completely functional and far too good to end up in a drawer or e-waste bin. Instead of paying multiple monthly subscriptions for file storage, smart home control, media streaming, and development environments, I decided to give one such machine a new job — running 24/7 as a quiet home server.

The hardware of choice was a used office Lenovo ThinkCentre M73 (Intel Core i3 processor and a 500 GB internal drive) paired with an external USB 3.0 portable hard drive for larger archives. Below is a practical technical breakdown of how the system is set up, how I manage it from the terminal, and which Docker services I run for daily tasks, testing new projects, and entertainment.

1. The Foundation: Debian 12, Static IP, and CasaOS

At the start, I weighed whether to repurpose an old Android phone or buy a Raspberry Pi. A used business mini PC turned out to be the most reliable option: it is built to run plugged in for years without battery swelling or thermal throttling, comes with proper USB 3.0 and SATA ports, and uses standard x86 architecture so virtually every modern Docker image runs out of the box.

Before deploying any containers, I took care of three fundamentals that save plenty of headaches later:

  • Clean headless Debian 12: A minimal installation without a desktop environment uses negligible RAM and CPU, leaving almost all hardware resources free for containers. All administration happens remotely over SSH.
  • Static IP reservation on the router: To ensure the server's local address never changes after a power outage or router reboot, I bound its MAC address to a fixed IP address in the router's DHCP settings.
  • Persistent external drive mounting via UUID: I added the external USB drive to /etc/fstab using its unique UUID rather than a shifting device label like /dev/sdb1, guaranteeing it mounts to the exact same path after every reboot.

On top of Debian, I installed CasaOS — a lightweight web dashboard built on top of Docker. It makes managing containers, mapping storage volumes, and monitoring resource usage effortless in a browser, while still letting you spin up custom docker-compose.yml stacks whenever needed.

2. Terminal Workflow and Termius: Managing Everything from Laptop or Phone

While CasaOS provides a clean web overview, real control over a Linux server happens in the terminal. To connect from both my Windows laptop and Android phone, I rely on Termius — a clean SSH client that syncs saved hosts, SSH keys, and reusable command snippets so I never have to type long paths manually on the go.

Here are a few core terminal commands I use regularly to check system health, storage mounts, and running Docker containers:

# Connecting to the server over SSH
ssh user@local-ip-address

# Checking disk usage and mounted partitions (internal + external USB drive)
df -h
lsblk -f

# Finding the external drive's UUID before configuring /etc/fstab
sudo blkid

# Listing active Docker containers, ports, and live resource usage
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
docker stats --no-stream

# Deploying or updating a custom stack from a docker-compose.yml file
docker compose pull && docker compose up -d

# Checking private Tailscale mesh status
tailscale status

Once these commands are saved as quick snippets in Termius, checking the health of the entire server or spinning up a fresh test container takes literally five seconds — even from a phone screen.

3. AdGuard Home: Network-Wide Ad and Tracker Blocking

One of the most immediately noticeable services on the server is AdGuard Home. Rather than installing ad blockers separately on every phone, tablet, and computer in the house, AdGuard acts as the local DNS server (on standard port 53) for the entire home network.

  • Router-level DNS redirection: In the main router's DHCP configuration, the home server's static local IP is set as the primary DNS server. The moment any device joins the home Wi-Fi, its DNS queries are routed through AdGuard automatically.
  • Encrypted upstream DNS (DoH): AdGuard forwards legitimate lookups to upstream resolvers (such as Cloudflare 1.1.1.1 or Quad9 9.9.9.9) over DNS-over-HTTPS (DoH), preventing ISP-level snooping or DNS tampering.
  • Blocklists and instant exceptions: Alongside curated ad and tracker lists (such as OISD), the dashboard shows live query logs per device. If a legitimate app or local service gets blocked by an aggressive rule, whitelisting the domain takes a single click.

A practical side note: whenever a website suddenly refuses to load on one device, a local DNS block or stale DNS cache is often the culprit — to quickly compare whether an issue is local or server-side, I also built HostVitals.

4. Local Development Sandbox: Databases and Webtop

When building new web applications in your spare time, cluttering your daily laptop with background services drains battery life and leads to port conflicts. The home server acts as an isolated testing ground:

  • Local databases for projects in progress: For new applications still in active development and testing, I spin up a Docker container running PostgreSQL or MariaDB on a dedicated local port with a mapped data volume. That lets me test apps under realistic network conditions from phones, tablets, and laptops around the house — and once testing is done, the container shuts down cleanly without leaving leftovers on my main workstation.
  • Webtop: A full Linux desktop environment running inside a Docker container and accessible directly in a browser tab. It comes in handy whenever you need an isolated workspace, a clean test browser, or a way to download large files straight onto server storage from any device.

5. Keeping the Network Organized: Homarr, PairDrop, and MySpeed

Once a dozen services are running across different ports, remembering port numbers quickly gets old. Three lightweight tools keep everyday workflows smooth:

  • Homarr: A clean, customizable start dashboard that brings shortcuts to every self-hosted service onto a single screen alongside basic status indicators.
  • PairDrop: A local browser-based alternative to AirDrop that works across every operating system. Whenever I need to send photos, videos, or documents from an Android phone to a Windows laptop (or vice versa), I open the local address and transfer files directly over home Wi-Fi — no cables, no compression, and no third-party cloud uploads.
  • MySpeed: A background utility that automatically runs internet speed and ping tests every few hours and logs historical charts. Instead of guessing whether the connection slows down in the evening, you get concrete numbers and timestamps.

6. Media, Retro Gaming, and Secure Remote Access

Beyond development and network utilities, the server also handles media and archiving duties:

  • Jellyfin and local streams: A personal media server that organizes movies, shows, and videos with metadata and streams smoothly to smart TVs, phones, and tablets (pairing nicely with my own web player zrinaTV for local streams).
  • Retro game server: Using Docker containers (such as EmulatorJS / RomM), the server hosts a compact archive of classic retro games that launch straight inside a web browser on any computer or tablet at home, keeping save states stored centrally.
  • Home Assistant and Syncthing: Home Assistant manages smart plugs and sensors locally without depending on external vendor clouds, while Syncthing quietly syncs key project folders between my laptop and the server in the background.
  • Tailscale for secure remote access: Instead of opening ports on the router and exposing the home network to the public internet, Tailscale connects the server, laptop, and phone into a private encrypted WireGuard mesh. Wherever I am, I can reach home services and dev databases just as securely as sitting in the living room.

7. A Small Python Script That Saved Hours of Manual Work

One of the most rewarding moments of the whole build wasn't a massive platform, but a 50-line Python script. Over the years, old drives had accumulated more than 12,500 scattered files — duplicate photos, installers, and legacy backups.

Instead of spending days sorting folders manually, the script scanned the entire directory tree in seconds, categorized files by type and date, and organized them cleanly onto the external archive drive. Moments like that are exactly why I enjoy combining small automation scripts with focused web utilities on zrina.app — automate the repetitive work so you have more time to build things that matter.

Do you have an old computer gathering dust at home, or are you already running your own home server? Which self-hosted service has proven most useful in your daily setup?