← Kevin M Thazhathoot

Turning an old laptop into a home media server

I wanted a home library of great-quality movies and shows: proper Blu-ray remuxes with full bitrate and lossless audio, playing on the TV whenever we want. The hardware was a Dell Inspiron 7572 sitting in a drawer: an i5-8250U, 16 GB of RAM, a 128 GB SSD and a 1 TB hard drive.

It started on Windows. I wiped the SSD and moved to Ubuntu before building any of this. I also didn't know what the *arr stack was. I described what I wanted to Claude, it suggested the stack, and we built the Docker Compose file together. Today it runs 16 containers. Someone at home picks a movie on their phone, and a little later it plays on the TV.


What the *arr stack is

The *arr stack is a set of open-source apps that automate a media library. Most of their names end in "arr" (Radarr, Sonarr, Prowlarr, Bazarr), which is where the name comes from. Each app does one job and talks to the others over a simple API:

Once it's set up, you never touch files or folders. You ask for a title and it appears in Jellyfin with artwork, metadata and subtitles.


How a request moves

  1. Seerr is the front door. You search for a movie or show and click request.
  2. It hands movies to Radarr and shows to Sonarr. They decide which release is good enough.
  3. Prowlarr keeps the list of sources and syncs it to both. FlareSolverr helps with sources behind a bot check.
  4. qBittorrent downloads to the hard drive.
  5. Radarr and Sonarr move the finished file into a clean folder, Jellyfin picks it up, and Bazarr fetches subtitles.

"Good enough" comes from Recyclarr. Every Monday at 5 AM it syncs the community TRaSH quality profiles into Radarr and Sonarr, so I edit one YAML file instead of clicking through settings. I skip one popular rule on purpose: it blocks 1080p x265 files, which removes most Indian-language releases.


Everything around it

The Homepage dashboard showing every service and its status
The Homepage dashboard.

Everything from my phone

With Tailscale, I can reach every one of these apps from my phone, at home or anywhere else: request a movie, check the dashboard, or SSH in to restart something.


Making a laptop behave like a server

A laptop wants to save battery, sleep when the lid closes, and spin down disks. A server wants none of that. The trick was to turn off the power saving that causes trouble and keep the parts that actually save power.


Trimming Ubuntu

A desktop install runs a lot that a headless server never needs. I turned off printing (cups), the mobile modem manager, location services and the file indexer, and hid the autostart items for calendar alarms, the update notifier, NVIDIA settings and the backup monitor. The qBittorrent desktop app went too, since only the Docker one is used. Each one is a line in my notes with the command to turn it back on.


Going wired

The laptop started on Wi-Fi, and Wi-Fi turned out to be the weakest part. The card (a Qualcomm QCA6174) has a flaky PCIe link: the logs were full of "PCIe Bus Error" lines, and with deep power saving on, it froze the whole laptop twice in one day.

So I switched to a wired connection. A USB 3 gigabit Ethernet adapter went into the laptop's 5 Gbps port, and it links at 1000 Mbps. Then I turned the Wi-Fi card off for good.

The test that mattered: a 4K remux played on the TV at about 77 Mbps, straight from Jellyfin, with no transcoding.


Trying Steam

I also experimented with Steam Headless, which runs Steam in a container so games can be streamed to other screens in the house. It works, but it's laggy, and AAA titles are out of reach for this hardware. It stays off by default, and a button on a small OliveTin page swaps it with the desktop when I want to try something light.


What broke

I wiped the hard drive. I ran mkfs.ext4 on the 1 TB drive expecting to recover the old data later. mkfs sends TRIM to the whole drive first, and this drive returns zeros after TRIM. The data was gone. The README now says in bold to never run mkfs or parted on that disk. And the empty /mnt/data folder on the SSD is locked with chattr +i, so if the hard drive ever fails to mount, apps fail loudly instead of quietly filling the small SSD.

Half the requests to TMDB failed. Seerr and Jellyfin get posters and metadata from api.themoviedb.org. About half of those connections got reset, while every other site worked. The filter was matching the hostname inside the first TLS packet (the ClientHello). If that packet goes out in two pieces, it never matches, so I wrote a 40-line Python proxy that does exactly that:

hello = await client_r.read(65536)
up_w.write(hello[:5])
await up_w.drain()
await asyncio.sleep(0.01)
up_w.write(hello[5:])

It runs as its own container, and only Seerr and Jellyfin use it. A free VPN did not help, because its exit was in India too.

The laptop froze. That was the Wi-Fi card above. Turning off PCIe power saving stopped it, and going wired made it irrelevant.


By the numbers

Uptime33 days since the last reboot
Containers16 running
Load average0.02 at idle
CPUUnder 2% most of the month, peaks around 5%
Temperature45-55 °C, fan around 3,300 RPM
Requests22 completed through Seerr
Memory3.1 GB used of 15 GB. Jellyfin, the largest, uses about 300 MB
Media604 GB on a 1 TB drive
Network1000 Mbps link, 4K remux direct-played at about 77 Mbps
BackupsAbout 550 MB a week, last 4 kept
Battery79% health, held between 50% and 80%
Beszel showing CPU, memory and temperature graphs
30 days of system stats in Beszel.

It's still a laptop

None of this locks the machine into being a server. Ubuntu's desktop is still there, so at any time I can open the lid, log in and use it as a normal laptop while the containers keep running in the background.

The next idea on the list is photos: Immich, an open-source, self-hosted alternative to Google Photos, could back up our phones to the same machine over Tailscale.

An old laptop turns out to be a good server: quiet, low on power, with a battery as a built-in UPS. The containers are the easy part. The work is in the small fixes that let it run for a month without me touching it.