> ## Content Index
> Fetch the complete content index at: https://trendboxgeek.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Build an Affordable Home Server from a Used Mini PC
- URL: https://trendboxgeek.com/blog/home-server-mini-pc/
- Published: 2026-11-04T13:05:29.000Z
- Updated: 2026-11-04T13:05:29.000Z
- Author: Pankajbhai Chavda
- Tags: #blog-col

If you check the new Raspberry Pi 5's value or a used enterprise rack server's price, you already know the hardware market in 2026 has extremely high prices. On one hand, AI data centers are consuming a large portion of the global DRAM supply, and on the other hand, when a case, power supply, and NVMe HAT are added to single-board computer kits, the cost exceeds $130\. Thus, the era of "cheap Pi servers" has now come to an end.

Yet some companies dump thousands of off-lease 1-liter office PCs on eBay and local liquidation sites every week. For $50 to $80, you can grab a used Dell OptiPlex Micro, Lenovo ThinkCentre Tiny, or HP EliteDesk Mini. For less than the cost of a simple Raspberry Pi board, you get a real x86 processor, upgradable laptop RAM, an NVMe slot, a metal case, and a power adapter.

Instead of buying a loud, power-hungry 12-bay rack server like an old Lenovo RD440 or paying retail prices for a brand-new NAS, a used mini PC, or even an old PC or laptop you have sitting in your house, is the smartest way to start self-hosting and cancel recurring cloud subscriptions.

Here is how to pick the right budget hardware, lock down Ubuntu Server 26.04 LTS, and spin up Jellyfin, Audiobookshelf, and Beszel in Docker without hitting the permission errors that trip up almost everyone on their first build.

## What to Look For When Buying a $50–$80 Used Mini PC

If you are shopping on eBay or Facebook Marketplace, stick to the three corporate 1-liter lines: Lenovo ThinkCentre Tiny (M710q, M720q, M920q), HP EliteDesk or ProDesk Mini (400/600/800 G3, G4, G5), and Dell OptiPlex Micro (3050, 3060, 5060, 7060).

### Keep four things in mind before you click buy:

**Aim for 7th or 8th Gen Intel T chips (or a cheap thin client):** An i5-7500T, i3-8100T, or i5-8500T idles around 8 to 12 watts and has Intel Quick Sync built in for hardware video transcoding. If your budget is strictly under $50, then you should look at the HP T630/T640 or Dell Wyse 5070.

**Make sure the power brick is included:** When selling mini PCs, many sellers list them as "unit only, no AC adapter." A real OEM Dell, HP, or Lenovo 65W barrel-plug charger costs $15 to $20 on its own, which ruins a $50 deal fast.

**Check for BIOS locks:** Read the description carefully and check that there is no BIOS password or corporate Computrace lock.

**Turn on AC power recovery in the BIOS:** When you connect a machine to a monitor and keyboard for the first time to install Linux, go into the BIOS first and set Restore on AC/Power Loss to Power On. This setting will help you when midnight power blinks occur, there is no need to touch the power button, as the machine will boot back up on its own.

## Install Ubuntu Server 26.04 LTS and Check Your Hardware

Skip desktop GUIs entirely on Linux. A graphical desktop wastes RAM when you are going to manage the whole box over SSH and web browsers anyway. Flash Ubuntu Server 26.04 LTS (resolute) or Debian 13 (trixie) onto a USB stick, run through the basic installer, and check the box to install the OpenSSH server.

Once the machine boots up and you SSH in from your main PC, run a quick check on the operating system, kernel, CPU, and GPU device nodes.

grep -E '^(PRETTY_NAME|ID|VERSION_CODENAME)=' /etc/os-release && uname -r && lscpu | grep "Model name" && ls -l /dev/dri

**Expected Output:**

PRETTY_NAME="Ubuntu 26.04 LTS"
VERSION_CODENAME=resolute
ID=ubuntu
7.0.0-38-generic
Model name: Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz
total 0
drwxr-xr-x 2 root root 80 Oct 31 02:13 by-path
crw-rw---- 1 root video 226, 0 Oct 31 02:13 card0

Take a look at that `/dev/dri/` output. If you are on an Intel Core `i3` or `i5` mini PC with integrated graphics, you will see `renderD128` listed right next to `card0`. You can pass `/dev/dri/renderD128` straight into Jellyfin for hardware transcoding. I am running this test on an old Xeon E5-2682 v4 setup that lacks `Quick Sync`, so only `card0` appears here. That is not a problem at all. A multi-core x86 CPU can transcode 1080p video in software easily, so we just leave the `/dev/dri/renderD128` device line out of the Docker file.

Next, update your package index and install the core security and management packages:

sudo apt update && sudo apt install -y curl git ufw fail2ban python3-systemd unattended-upgrades htop

## Fix Ubuntu's SSH Socket Setup and Enable UFW + Fail2Ban

Modern Ubuntu releases (24.04 LTS and 26.04 LTS) use `ssh.socket` instead of running `ssh.service` directly. If you check `sudo systemctl status ssh.socket`, you will see `ssh.socket` holding port 22\. I always disable socket activation and go back to standard ssh.service so SSH behaves predictably when changing ports or restarting the daemon.

Let's disable `ssh.socket`, enable `ssh.service` and lock down the UFW firewall, so only SSH and our local home network (`192.168.100.0/24` in my lab, change this to match your own router's subnet) can talk to the server.

sudo systemctl disable --now ssh.socket && sudo systemctl enable --now ssh.service && sudo ufw default deny incoming && sudo ufw default allow outgoing && sudo ufw allow 22/tcp comment 'SSH' && sudo ufw allow from 192.168.100.0/24 comment 'Local LAN' && sudo ufw --force enable && sudo ufw status verbose

That gives us a clean firewall table:

![Status of Ubuntu's SSH Socket and UFW + Fail2Ban](https://trendboxgeek.com/content/images/2026/11/Screenshot-From-2026-10-31-07-49-46.png)

Now let's set up Fail2Ban. Because modern Ubuntu does not write `/var/log/auth.log` by default anymore, Fail2Ban needs `backend = systemd` to read SSH login failures from the systemd journal.

Drop a local jail config into `/etc/fail2ban/jail.d/sshd.local` and restart Fail2Ban:

sudo tee /etc/fail2ban/jail.d/sshd.local > /dev/null << 'EOF'
[sshd]
enabled = true
port = 22
backend = systemd
maxretry = 3
bantime = 1h
findtime = 10m
EOF
sudo systemctl restart fail2ban

Give the daemon two seconds to initialize its socket, then verify the jail is watching `ssh.service`:

sudo systemctl status fail2ban --no-pager && sudo fail2ban-client status sshd

**Expected Output:**

Status for the jail: sshd
|- Filter
|  |- Currently failed: 0
|  |- Total failed:     0
|  `- Journal matches:  _SYSTEMD_UNIT=ssh.service + _COMM=sshd
`- Actions
   |- Currently banned: 0
   |- Total banned:     0
   `- Banned IP list:

## Install Official Docker Engine and Compose v5

If you type `docker` on a fresh Ubuntu install, the terminal tells you to run `sudo snap install docker`. Do not do that. The Snap package messes up folder permissions when you mount local drives. Add Docker's official APT repo instead so you get the standard Docker Engine (29.9.x) and Compose v5.6.x plugin:

sudo install -m 0755 -d /etc/apt/keyrings && sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && sudo chmod a+r /etc/apt/keyrings/docker.asc && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && sudo apt update

Now install Docker and check the Compose version:

sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && sudo docker compose version

**Expected Output:**

Docker Compose version v5.6.1

Always use `sudo docker compose` with a space. The old hyphenated `docker-compose` v1 command is long dead.

## Set Up Your Folder Layout

The easiest way to keep a home server maintainable is putting all container configurations in `/opt/stacks` and all bulk media files in `/srv/media`. A lot of beginners scatter `docker-compose.yml` files all over their home directory and lose track of where their databases live.

Create the folders and set ownership to your regular Linux user (`1000:1000`, which is `trend` on my box):

sudo mkdir -p /opt/stacks/{jellyfin,audiobookshelf,beszel} /srv/media/{movies,tv,audiobooks,photos} && sudo chown -R $USER:$USER /opt/stacks /srv/media && id && ls -ld /opt/stacks/* /srv/media/*

**Expected Output:**

uid=1000(trend) gid=1000(trend) groups=1000(trend),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),100(users),101(lxd)
drwxr-xr-x 2 trend trend 4096 Oct 31 02:23 /opt/stacks/audiobookshelf
drwxr-xr-x 2 trend trend 4096 Oct 31 02:23 /opt/stacks/beszel
drwxr-xr-x 2 trend trend 4096 Oct 31 02:23 /opt/stacks/jellyfin
drwxr-xr-x 2 trend trend 4096 Oct 31 02:23 /srv/media/audiobooks
drwxr-xr-x 2 trend trend 4096 Oct 31 02:23 /srv/media/movies
drwxr-xr-x 2 trend trend 4096 Oct 31 02:23 /srv/media/photos
drwxr-xr-x 2 trend trend 4096 Oct 31 02:23 /srv/media/tv

## Deploy Jellyfin, Audiobookshelf, and Beszel

Don't try to install 25 containers on your first day. Start with three that you will actually use right away.

**Jellyfin (:8096):** Streams your local movie and TV show folders to your TV, phone, or browser.

**Audiobookshelf (:13378):** Hosts your audiobooks and podcasts and remembers where you paused across all your devices.

**Beszel (:8090):** A simple, low-RAM monitoring dashboard that shows your server's CPU, memory, disk space, and Docker container usage.

Let's write `/opt/stacks/compose.yaml` and start them up:

cat << 'EOF' > /opt/stacks/compose.yaml
services:
  jellyfin:
    image: jellyfin/jellyfin:latest
    container_name: jellyfin
    user: 1000:1000
    network_mode: "host"
    volumes:
      - /opt/stacks/jellyfin/config:/config
      - /opt/stacks/jellyfin/cache:/cache
      - type: bind
        source: /srv/media/movies
        target: /media/movies
      - type: bind
        source: /srv/media/tv
        target: /media/tv
    restart: unless-stopped

  audiobookshelf:
    image: ghcr.io/advplyr/audiobookshelf:latest
    container_name: audiobookshelf
    user: 1000:1000
    ports:
      - "13378:80"
    volumes:
      - /opt/stacks/audiobookshelf/config:/config
      - /opt/stacks/audiobookshelf/metadata:/metadata
      - type: bind
        source: /srv/media/audiobooks
        target: /audiobooks
    restart: unless-stopped

  beszel:
    image: henrygd/beszel:latest
    container_name: beszel
    ports:
      - "8090:8090"
    volumes:
      - /opt/stacks/beszel/data:/beszel_data
    restart: unless-stopped
EOF
cd /opt/stacks && sudo docker compose up -d && sudo docker compose ps

**Expected Output:**

![Created /opt/stack/compose.yaml.](https://trendboxgeek.com/content/images/2026/11/Screenshot-From-2026-10-31-07-57-42.png)

If you look at the screenshot above, jellyfin is stuck on Restarting (`139`). Because we did not create the config and cache subfolders ahead of time, Docker created them as `root:root`, so our regular user (`1000:1000`) could not write to `/config/log`. Give ownership of `/opt/stacks` back to user `1000:1000` and restart the stack:

sudo chown -R 1000:1000 /opt/stacks && sudo docker compose restart && sleep 3 && sudo docker compose ps

**Expected Output:**

NAME             IMAGE                                  STATUS
audiobookshelf   ghcr.io/advplyr/audiobookshelf:latest  Up 3 seconds
beszel           henrygd/beszel:latest                  Up 13 seconds
jellyfin         jellyfin/jellyfin:latest               Up 14 seconds (healthy)

**Note:** If your mini PC has an Intel iGPU with `/dev/dri/renderD128`, simply add `devices: - /dev/dri/renderD128:/dev/dri/renderD128` and `group_add:` with your `render` group ID to the `jellyfin` block.

Verify that all three web interfaces return HTTP `200 OK`:

hostname -I && curl -s -o /dev/null -w "Jellyfin (8096): %{http_code}\n" http://localhost:8096/web/index.html && curl -s -o /dev/null -w "Audiobookshelf (13378): %{http_code}\n" http://localhost:13378/ && curl -s -o /dev/null -w "Beszel (8090): %{http_code}\n" http://localhost:8090/

**Expected Output:**

192.168.100.225 172.17.0.1 172.18.0.1
Jellyfin (8096): 200
Audiobookshelf (13378): 200
Beszel (8090): 200

Now open your browser and log into all three.

- **Jellyfin:** `http://192.168.100.225:8096`

**Expected Output:**

![Home page of Jellyfin.](https://trendboxgeek.com/content/images/2026/11/Screenshot-From-2026-10-31-08-46-16.png)

- **Audiobookshelf:** `http://192.168.100.225:13378`

**Expected Output:**

![Audiobookshelf's home page.](https://trendboxgeek.com/content/images/2026/11/Screenshot-From-2026-10-31-08-46-06.png)

- **Beszel:** `http://192.168.100.225:8090`

**Expected Output:**

![Beszel's Home page.](https://trendboxgeek.com/content/images/2026/11/Screenshot-From-2026-10-31-08-46-00.png)

## Hook Up Beszel Agent to Monitor the Server

When you open Beszel on port 8090 and create your admin account, the dashboard says No systems found. That's because the beszel container is only the web hub; it needs beszel-agent running on the host to read CPU, memory, disk, and Docker container stats.

Click **\+ Add System** in the top right of Beszel:

1. Set **Name** to your server name (like `trend` or `boxgeek`).
2. Set **Host / IP** to your server's plain IP address (`192.168.100.225`). **Watch out here:** do not type `/24` at the end of the IP address! If you put `192.168.100.225/24`, the hub won't be able to connect and the status dot will stay red.
3. Copy the **Token** string shown in the popup and click **Add System**.

You do not even need to copy the long SSH key from the browser popup. Since Beszel saves its key inside `/opt/stacks/beszel/data/id_ed25519`, we can read it with `ssh-keygen -y` and add the beszel-agent container straight to the bottom of `/opt/stacks/compose.yaml`:

BESZEL_KEY=$(sudo ssh-keygen -y -f /opt/stacks/beszel/data/id_ed25519) && cat << EOF >> /opt/stacks/compose.yaml

  beszel-agent:
    image: henrygd/beszel-agent:latest
    container_name: beszel-agent
    network_mode: "host"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      LISTEN: 45876
      KEY: "${BESZEL_KEY}"
      TOKEN: "4113a-ec70584-242c2-af88e0f9"
      HUB_URL: "http://192.168.100.225:8090"
    restart: unless-stopped
EOF
cd /opt/stacks && sudo docker compose up -d && sudo docker compose ps

**Note:** Make sure to swap the `TOKEN` and `HUB_URL` above with your own token and server IP.

As soon as `beszel-agent` starts, flip back to your Beszel browser tab. The dot next to your server turns green immediately, showing live CPU usage (\~1.8% idle with all containers running), RAM usage, disk usage, load average, and per-container graphs when you click into the host.

## Keeping It Updated and Accessing It Outside Home

Since all your container settings and databases are inside `/opt/stacks`, backing up the server before an update is easy. Just make a tar backup of `/opt/stacks` or use Restic to send a copy to an external USB drive.

When you want to pull new container versions once a month, run:

cd /opt/stacks
sudo docker compose pull
sudo docker compose up -d --remove-orphans
sudo docker image prune -f

One last tip: if you want to use Audiobookshelf or Jellyfin when you are away from home, do not open ports `8096` or `13378` on your router. Put **WireGuard**, **NetBird**, or **Tailscale** on the server and your phone so you can connect privately without putting your login pages on the public internet.