Building a Home Server from a Refurbished Mini PC
Why I ditched the Raspberry Pi and moved to a secondhand office PC instead.
I used to run this exact setup — file sharing, TNFS for the retro machines, this website — on a Raspberry Pi 4 with a USB SSD. On paper it's the obvious choice: tiny, cheap, almost no power draw. In practice it was just too slow. Compiling anything took forever, Apache felt sluggish under load, and the USB-attached storage was never quite as snappy as I wanted. So the Pi got retired and I went looking for something with real CPU and memory behind it, without the noise, heat or power bill of an old tower PC.
The answer turned out to be the refurbished office PC market. I picked up a HP ProDesk 400 G4 Mini, with an Intel Core i5-8500T, 8GB DDR4 and a 256GB SSD, from computershop.eu. It's a business-grade mini PC originally built to sit under someone's desk running Office and a browser — which, conveniently, is almost exactly the profile you want for a home server too.
What to actually look for
Secondhand office PCs are everywhere, and most of them will do the job. A few things to pay attention to:
Look for a "T" suffix CPU. Business desktops often came in a low-power variant — Intel marks these with a T at the end of the model number (like the i5-8500T in mine). These chips are tuned for low power draw and low heat instead of raw clock speed, which is exactly what you want for something that's going to idle 24/7 in a cupboard. You lose a bit of peak performance compared to the standard version of the same chip, but for a file server or small website, you will never notice.
A small form factor / mini PC case. These are usually silent — often fanless or near-silent under light load — and small enough to tuck away out of sight. No tower, no drama.
An SSD, not a spinning hard disk. Refurbished office machines sometimes still have the original mechanical disk. Swap it or make sure the listing already includes an SSD. It's quieter, faster, uses less power, and — unlike spinning disks — doesn't mind being left running continuously.
8GB of RAM is plenty. Unless you're planning to run something memory-hungry, a file server, a small web stack and a TNFS server barely register. Don't pay extra for 16 or 32GB you'll never use.
What you don't need: a discrete graphics card, an optical drive, a beefy power supply, or a Windows license — most refurbishers will happily sell the machine bare or let you skip the OS. You're going to wipe it anyway.
Wiping Windows and installing Ubuntu
The first thing I did was get rid of Windows entirely. Write the Ubuntu Server image to a USB stick, boot from it, and let the installer take over the whole disk — no dual boot, no leftover partitions. Ubuntu Server skips the desktop environment entirely, which is exactly what you want: less overhead, less attack surface, and one less thing to update.
During setup, enable OpenSSH when the installer offers it. That's the only
"interface" this machine needs from here on — once it's running, I never touch
a keyboard or monitor again. Everything happens over ssh.
After the install, the only maintenance is keeping the system itself current:
sudo apt update && sudo apt upgrade
The software stack
Once Ubuntu was up, I installed exactly what I needed and nothing more:
- Apache, PHP and MySQL — a classic LAMP stack, which is what actually serves this website you're reading right now.
- Samba — the file server I always blank on the name of. It's what lets every Windows and Linux machine on the network browse and write to shared folders without any fuss.
- TNFS — a lightweight network filesystem server that lets the Atari ST and other retro machines mount network drives over the local network.
None of these need bleeding-edge versions, so I'm deliberately not listing
version numbers here — whatever your package manager offers today will work
fine, and by the time you read this they'll be outdated anyway. Install them
through the standard Ubuntu package manager and they'll keep themselves
reasonably current with regular apt upgrade runs.
The one gotcha: it kept falling asleep
With no monitor plugged in, the machine kept dropping into a low-power state on its own, which killed the network connection along with it — not ideal for something that's supposed to be available around the clock. The cause turned out to be the integrated graphics: without a display connected, the GPU assumes nothing is watching and lets the system idle down.
The fix is a cheap DisplayPort dummy plug — a small adapter that just tricks the graphics output into thinking a monitor is always connected. Once plugged in, the sleep issue disappeared completely. If your mini PC is misbehaving the same way, that one small part is probably all you need.
Where it lives now
The server sits, unglamorously, in the meter cupboard — no screen, no keyboard, just a power cable and a network cable. I log in over SSH whenever I need to check on it or make a change, and otherwise it just runs. It's currently serving files over Samba, handing out drives to the Atari ST over TNFS, and — appropriately enough — hosting the very page you're reading.