Posts
How I turned my old Windows 7 laptop into a home media server.
Every step I took to turn an old Windows 7 laptop into a Debian 13 (Trixie) home media server with Jellyfin and Seerr, with the commands, the tests, and why I did each thing.
I had an old laptop that last ran Windows 7, still booted, and had a perfectly good screen. It was headed for a drawer, or worse, e-waste. Instead, I turned it into a home media server running Debian 13 (Trixie), with Jellyfin to play the media and Seerr to request it, plus the usual downloader and automation tools behind them.
This is everything I did, in order, and why I did it. I tested each piece before adding the next one, so when something broke I knew which step broke it.
How to read the status labels. Some of this is recorded from my actual setup: the hardware check, SSH, Docker, the Jellyfin GPU test, Tailscale, and Funnel. Those steps say Status: confirmed in my setup. The other steps are the commands and configuration I use or plan to use, written from official docs, and I haven’t captured output for them, so they say Status: documented, not independently re-verified. Wherever I list what a test should show, that’s what to look for, not output I’m claiming to have saved. Personal details (addresses, usernames, hostnames, tokens, passwords) are placeholders in
ALL_CAPS, and my real ones are deliberately left out.
Contents
- The plan and the hardware
- 1. Check the CPU and back up Windows 7
- 2. Make the Debian 13 install USB
- 3. Install Debian 13 with no desktop
- 4. Update, reserve an address, and set up SSH
- 5. Make the laptop behave like a server
- 6. Plan the storage layout
- 7. Install Docker
- 8. Jellyfin
- 9. qBittorrent behind a VPN
- 10. Prowlarr, Sonarr, and Radarr
- 11. Seerr
- 12. Tailscale and Funnel
- 13. Backups and maintenance
- Recap checklist
The plan and the hardware
The laptop is x86-64 with a 500 GB SSD and a Sandy Bridge-era Intel GPU. The CPU, GPU, and SSD details come from the hardware check in step 5. Everything else (RAM, exact CPU model) I’ve left out because I haven’t recorded it.
The stack I ended up with:
- Debian 13 (Trixie), installed without a desktop, as the base.
- Docker and Docker Compose to run everything else.
- Jellyfin to stream the library.
- Seerr as the request manager, so other people can ask for things.
- qBittorrent behind Gluetun (a VPN client), plus Prowlarr, Sonarr, and Radarr for automation.
- Tailscale for private remote access, and Funnel for a small public path to Seerr and Jellyfin.
Why I did this. An old laptop is a surprisingly good server: it’s already paid for, it sips power compared to a desktop, and it has a built-in battery as a (very limited) buffer against power blips. Windows 7 no longer gets security updates, so I didn’t want to keep running it, especially on anything reachable from the internet. Debian is boring and stable, which is what I want from something that’s supposed to just stay on.
1. Check the CPU and back up Windows 7
Status: documented, not independently re-verified.
Debian 13 dropped 32-bit (i386) installs, so the first thing to settle is whether the CPU is 64-bit. On Windows 7 I open Start, right-click Computer, Properties and read System type. A 64-bit result settles it. A 32-bit result doesn’t, because a 64-bit CPU can run a 32-bit Windows, so in that case I’d look up the exact CPU model on the manufacturer’s site. The amd64 installer in the next step is also a test: on a CPU that can’t do 64-bit, it refuses to start.
Then I back up anything I care about before touching the disk. I copy user folders (Documents, Pictures, Music, Desktop) to an external drive, and open a few of the copied files on a different computer to prove the backup is readable.
Why I did this. The Debian install in step 3 erases the whole disk, with no undo, so a backup has to exist before that. Checking the CPU first costs nothing and saves me from downloading the wrong thing. I also verify the copy because a backup I’ve never opened is just a hope.
2. Make the Debian 13 install USB
Status: documented, not independently re-verified.
On another computer I download the amd64 netinst ISO from https://www.debian.org/distrib/netinst and verify it against the SHA512SUMS file on the download page:
sha512sum debian-13*-amd64-netinst.iso
On Windows, the PowerShell equivalent is:
Get-FileHash -Algorithm SHA512 .\debian-13*-amd64-netinst.iso
Then I write it to a USB stick with Rufus (DD image mode), balenaEtcher, or dd:
sudo dd if=debian-13-amd64-netinst.iso of=/dev/sdX bs=4M status=progress conv=fsync
Here /dev/sdX is the USB stick, and I check that device name twice, because dd will happily erase the wrong disk. Recent Rufus releases don’t run on Windows 7, so if I made the stick on the old laptop I’d use Rufus 3.22 instead.
Why I did this. The netinst image is small and downloads the rest during the install, which is fine with the laptop on Ethernet. Checking the hash catches a corrupt or tampered download before I wipe a disk with it. I make the stick on a different machine so the laptop’s old Windows doesn’t get in the way.
Test it. If the stick boots to the Debian installer menu in the next step, it’s good.
3. Install Debian 13 with no desktop
Status: documented, not independently re-verified (I did install Debian 13 on this laptop, but I didn’t record each installer screen).
I plug in Ethernet and power, insert the stick, and use the boot-menu key (usually F12, F9, Esc, or F10; F2 or Del opens BIOS/UEFI setup). If it won’t boot from the stick, I turn Secure Boot off, or try the other of the UEFI/Legacy entries for the same stick.
In the installer I choose Install (the text one) and answer the questions. The choices that matter:
- Root password: left blank, so Debian disables root and gives my user
sudo. - Partitioning: Guided, use entire disk, All files in one partition.
- Software selection: untick the desktop environment and GNOME, tick SSH server and standard system utilities.
- GRUB: install to the internal disk.
Why I did this.
- Why Debian 13 minimal, with no desktop: a server nobody sits in front of doesn’t need a graphical session eating RAM that Jellyfin and the downloader can use. A minimal install also has a smaller attack surface and less to update.
- Why a blank root password: it leaves one privileged path, my own user via
sudo, instead of a second root login to protect. - Why one partition: downloads and the organized library have to be on the same filesystem for hardlinks to work (step 6). A single partition guarantees that.
- Why SSH server in the installer: it’s the quickest way to get to a headless setup, where I can unplug the monitor and do everything remotely.
Test it. After the reboot, I log in and run:
cat /etc/os-release
uname -m
/etc/os-release should show VERSION_CODENAME=trixie, and uname -m should print x86_64. If the network isn’t found, the usual causes are missing Wi-Fi firmware or a bad cable, and Ethernet avoids the first.
4. Update, reserve an address, and set up SSH
Update everything
Status: documented, not independently re-verified.
sudo apt update
sudo apt full-upgrade
Why I did this. The netinst image can be a bit behind. Updating first means I’m building the server on current packages.
Reserve a fixed address
Status: documented, not independently re-verified.
I look up the address and MAC address, then create a DHCP reservation in my router so the laptop always gets the same address (SERVER_ADDRESS below).
hostname -I
ip -br link
Why I did this. A server whose address changes is miserable: SSH, bookmarks, and every app pointing at it break. I chose a router-side reservation over a static address configured on the laptop, because there’s no network config file to get wrong, and the router remains the single place that knows what’s where.
Check SSH and connect to it
Status: confirmed in my setup for the setup and identity-check sequence below. I don’t have saved output for each individual command.
sudo apt install openssh-server
sudo systemctl enable --now ssh
sudo systemctl status ssh
hostname -I
whoami
enable --now makes the service start at boot and starts it immediately. hostname -I and whoami tell me which address and account to use from my other computer:
ssh YOUR_USER@SERVER_ADDRESS
Why I did this. I wanted to administer the laptop remotely instead of keeping a monitor and keyboard attached. Installing openssh-server explicitly makes sure it’s there even if I skipped the installer checkbox.
Test it. The connection should ask for a password and then give me a shell on the server. On Windows 10/11, ssh -V confirms the built-in client exists.
Switch to SSH keys
Status: documented, not independently re-verified.
On my main computer:
ssh-keygen -t ed25519
ssh-copy-id YOUR_USER@SERVER_ADDRESS
ssh-copy-id isn’t on Windows, so I use:
type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh YOUR_USER@SERVER_ADDRESS "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
I test the key from a new terminal first. Only once that works do I disable password logins:
sudo tee /etc/ssh/sshd_config.d/10-no-passwords.conf >/dev/null <<'EOF'
PasswordAuthentication no
EOF
sudo sshd -t
sudo systemctl reload ssh
sshd -t checks the config and prints nothing if it’s valid. I keep my existing session open and confirm a second one can still log in.
Why I did this. Keys can’t be guessed the way passwords can. I test the key before turning passwords off, and keep a session open, so a typo can’t lock me out. If it did, the laptop’s own keyboard is still there as a fallback.
Turn on a basic firewall
Status: documented, not independently re-verified.
sudo apt install ufw
sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw status
ufw status should say active with SSH allowed.
Why I did this. It’s a cheap default-deny for the host itself. One thing to know: Docker publishes container ports in a way that bypasses ufw rules, so this protects the host, not the containers. My safeguard for the containers is that I don’t forward any ports on my router.
5. Make the laptop behave like a server
Inventory the hardware
Status: confirmed in my setup.
Before configuring anything, I checked what I was working with. The echo lines just label the output groups:
echo "=== OS ==="
cat /etc/os-release
echo "=== CPU ==="
lscpu | grep -E 'Model name|Architecture|CPU\(s\)'
echo "=== GPU ==="
lspci | grep -Ei 'vga|3d|display'
echo "=== RAM ==="
free -h
echo "=== DISKS ==="
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS,MODEL
echo "=== NETWORK ==="
ip -br addr
This confirmed Debian 13, x86-64, a 500 GB SSD, and a Sandy Bridge-era Intel GPU. I kept the raw output private because it contains local network details.
Why I did this. The GPU line decides what Jellyfin can do (step 8), and the disk and memory lines tell me how much stack the machine can carry. Knowing the real hardware beats guessing.
Stop it sleeping when the lid closes
Status: documented, not independently re-verified. The problem was real: after a reboot, the laptop sat at the login screen and went to sleep with the lid closed. This is the fix I proposed, not one I’ve confirmed.
sudo mkdir -p /etc/systemd/logind.conf.d
sudo tee /etc/systemd/logind.conf.d/99-homelab-lid.conf >/dev/null <<'EOF'
[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
IdleAction=ignore
EOF
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
sudo reboot
To undo it, I’d run sudo systemctl unmask on those same four targets.
Why I did this. A laptop assumes a person is sitting at it. A server has to keep running with the lid shut and nobody logged in, so I told systemd-logind to ignore the lid and idle, and masked the sleep targets so nothing else can suspend it.
Test it. After the reboot, I close the lid, wait a couple of minutes, and check from another computer with ping SERVER_ADDRESS or a fresh SSH login. If it answers with the lid closed, the fix works. Some laptops also have a BIOS lid setting worth checking.
Check the disk and temperatures
Status: documented, not independently re-verified.
sudo apt install smartmontools lm-sensors
lsblk -o NAME,SIZE,MODEL
sudo smartctl -H /dev/sda
sudo sensors-detect --auto
sensors
I use whichever device lsblk shows (/dev/sda for SATA, /dev/nvme0n1 for NVMe). smartctl -H should report PASSED.
Why I did this. An old drive can already be failing, and I’d rather find out before I put a library on it. Sensors matter because an old laptop with a dusty fan, left closed in a drawer, can overheat. If the disk says FAILED, I’d stop there.
6. Plan the storage layout
Status: confirmed in my setup for the layout and ownership. The check commands at the end are ones I proposed; I didn’t capture their output.
sudo mkdir -p /opt/media-stack/config/{jellyfin,sonarr,radarr,prowlarr,seerr,qbittorrent,gluetun}
sudo mkdir -p /srv/data/torrents/{movies,tv}
sudo mkdir -p /srv/data/media/{movies,tv}
sudo chown -R YOUR_USER:YOUR_USER /opt/media-stack /srv/data
chmod -R 775 /opt/media-stack /srv/data
App configuration lives under /opt/media-stack, and both downloads and media live under /srv/data. The containers run as UID/GID 1000:1000, which is the first user on a Debian install, and id confirms that.
Why I did this. I kept config apart from media so I can back up the small, irreplaceable part (settings and databases) without touching the large, replaceable part. Downloads and the library sit on the same filesystem so Sonarr and Radarr can import with a hardlink instead of copying: it’s instant, and it doesn’t use double the disk. This is the choice that’s most painful to change later, which is why I made it before installing anything.
Test it.
id
ls -ld /opt/media-stack /srv/data/torrents /srv/data/media
df -h /srv/data
I should see my user as the owner and enough free space on /srv/data.
7. Install Docker
Status: confirmed in my setup. Compose reported version v5.6.1 when I did this.
I use Docker’s official Debian repository:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Why I did this. Docker’s own repository gives me current versions and the Compose plugin, instead of whatever older package Debian ships. The Suites: and Architectures: lines fill in trixie and amd64 automatically, so the same block works on any Debian release. Running each service as a container keeps them isolated and makes the whole stack one file I can back up and rebuild.
Test it.
sudo docker run hello-world
docker compose version
sudo systemctl status docker
The hello-world container printed Docker’s success message, and Compose reported its version. The systemctl status docker check was a proposed one; I have no saved output for it.
Let my user run Docker without sudo
Status: confirmed in my setup.
sudo usermod -aG docker YOUR_USER
exit
ssh YOUR_USER@SERVER_ADDRESS
id
docker ps
I confirmed that docker ps returned without a permission error after reconnecting; I don’t have the id output.
Why I did this. It saves typing sudo on every command. I know the trade-off: docker group membership is effectively root on that machine. For a box I administer myself, on my own network, I accepted it. Group changes only apply to new sessions, which is why I reconnect.
8. Jellyfin
Status: confirmed in my setup for the compose service, the GPU device check, and the playback test. The group numbers are specific to my machine.
Why Jellyfin
I picked Jellyfin because it’s free and open source, with no account or subscription, and it’s easy to run in a container. It fits the goal of a self-contained server I fully control.
Find the GPU groups
Jellyfin in a container needs permission to use the GPU through the host’s video and render groups:
getent group video render
ls -l /dev/dri
On my machine those were 44 for video and 992 for render, and /dev/dri held card0 and renderD128.
Why I did this. Those numbers differ between machines, so I check the real IDs instead of copying someone else’s. If /dev/dri doesn’t exist, the GPU driver isn’t loaded and transcoding falls back to the CPU.
The compose file
cd /opt/media-stack
nano compose.yaml
name: media-stack
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: "1000:1000"
group_add:
- "44" # my video GID
- "992" # my render GID
devices:
- /dev/dri:/dev/dri
volumes:
- ./config/jellyfin:/config
- ./cache/jellyfin:/cache
- /srv/data:/data
ports:
- 8096:8096
restart: unless-stopped
Why I did this. I run it as 1000:1000 so file ownership matches my user. I use the official image. restart: unless-stopped brings it back after a reboot. I mount /srv/data as /data in every container so they all see the same path layout, which is what makes imports and hardlinks work later.
docker compose config
docker compose up -d
docker compose ps
docker compose config validates the file before I start anything, because YAML is picky about indentation.
Test it.
curl -s http://localhost:8096/health
docker exec jellyfin ls -l /dev/dri
docker exec jellyfin id
/health should print Healthy. I confirmed Jellyfin was healthy, with card0 and renderD128 visible inside the container and UID/GID 1000:1000 with the expected extra groups. Then I opened http://SERVER_ADDRESS:8096 in a browser, completed the setup wizard, and added libraries pointing at /data/media/movies and /data/media/tv.
Turn on hardware acceleration
In Dashboard, Playback, Transcoding, I set the acceleration to VAAPI, picked /dev/dri/renderD128, and enabled hardware decoding for H.264 only.
Why I did this. Software transcoding on an old CPU is painful, so using the GPU where it can help is worth the few settings. I only enabled the codec I expect it to handle, because a Sandy Bridge-class GPU doesn’t do HEVC or 10-bit video.
Test it. I played an H.264 video and lowered the quality in the player to force a transcode. I confirmed the quality dropped and the transcode appeared to work. That is a narrow test on one codec, not a claim that it handles everything. To see the hardware path directly, I’d look for vaapi in:
docker exec jellyfin ps aux | grep -E '[f]fmpeg'
docker compose logs jellyfin --tail=100
and watch the GPU itself with sudo apt install intel-gpu-tools and sudo intel_gpu_top during a transcode. I proposed those but didn’t capture their output.
9. qBittorrent behind a VPN
Status: documented, not independently re-verified. My final stack includes qBittorrent behind Gluetun with NordVPN, but I haven’t recorded the exact config, so these values are a starting point. The Gluetun docs are the authority for your VPN provider.
I run the downloader inside Gluetun’s network, so if the VPN drops, qBittorrent loses its connection instead of leaking my real IP. Secrets go in a .env next to compose.yaml:
cd /opt/media-stack
nano .env
chmod 600 .env
TZ=Region/City
NORDVPN_SERVICE_USER=your-service-username
NORDVPN_SERVICE_PASSWORD=your-service-password
VPN_COUNTRY=YOUR_COUNTRY
Then I add these services under services::
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=nordvpn
- VPN_TYPE=openvpn
- OPENVPN_USER=${NORDVPN_SERVICE_USER}
- OPENVPN_PASSWORD=${NORDVPN_SERVICE_PASSWORD}
- SERVER_COUNTRIES=${VPN_COUNTRY}
- TZ=${TZ}
volumes:
- ./config/gluetun:/gluetun
ports:
- 8080:8080 # qBittorrent Web UI
restart: unless-stopped
qbittorrent:
image: lscr.io/linuxserver/qbittorrent
container_name: qbittorrent
network_mode: "service:gluetun"
depends_on:
gluetun:
condition: service_healthy
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- WEBUI_PORT=8080
volumes:
- ./config/qbittorrent:/config
- /srv/data:/data
restart: unless-stopped
docker compose config
docker compose up -d
docker compose ps
Why I did this. Only the downloader goes through the VPN, because that’s the one piece that needs it. Everything else stays on the normal connection, so Jellyfin isn’t slowed down or broken by a VPN. qBittorrent has no ports: of its own, because its network lives inside Gluetun, so the Web UI port is published on Gluetun. The .env file keeps credentials out of the compose file, and chmod 600 keeps other users on the machine from reading them. I didn’t add any router port forwarding, and the qBittorrent Web UI stays private.
Test it. I check the VPN before opening qBittorrent. The IP seen from inside Gluetun’s network should differ from the host’s real IP:
docker compose logs gluetun --tail=30
docker run --rm --network=container:gluetun alpine:3.20 sh -c "apk add -q wget && wget -qO- https://ipinfo.io/ip"
curl -s https://ipinfo.io/ip
If the two IPs match, the VPN isn’t doing its job and I stop. Then I get the temporary Web UI password from the log, log in at http://SERVER_ADDRESS:8080 as admin, set my own password under Tools, Options, Web UI, and set the default save path to /data/torrents with categories movies and tv:
docker compose logs qbittorrent | grep -i password
ls -lh /srv/data/torrents
If Gluetun stays unhealthy, docker compose logs gluetun usually shows an authentication error (wrong credentials). If the Web UI won’t load, adding FIREWALL_INPUT_PORTS=8080 to Gluetun’s environment: is the next thing to try.
10. Prowlarr, Sonarr, and Radarr
Status: documented, not independently re-verified.
These are the automation layer: Prowlarr manages indexers, Sonarr handles TV, and Radarr handles movies. Under services::
prowlarr:
image: lscr.io/linuxserver/prowlarr
container_name: prowlarr
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
volumes:
- ./config/prowlarr:/config
ports:
- 9696:9696
restart: unless-stopped
sonarr:
image: lscr.io/linuxserver/sonarr
container_name: sonarr
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
volumes:
- ./config/sonarr:/config
- /srv/data:/data
ports:
- 8989:8989
restart: unless-stopped
radarr:
image: lscr.io/linuxserver/radarr
container_name: radarr
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
volumes:
- ./config/radarr:/config
- /srv/data:/data
ports:
- 7878:7878
restart: unless-stopped
docker compose up -d
docker compose ps
Why I did this. Sonarr and Radarr are what turn “I want this show” into a download, an import, and a tidy library entry without manual work. Prowlarr keeps indexers in one place and syncs them to both, instead of configuring each separately. Sonarr and Radarr share the same /data mount as qBittorrent so a finished download can be hardlinked into the library.
Test it. Each app has a ping endpoint:
curl -s http://localhost:9696/ping
curl -s http://localhost:8989/ping
curl -s http://localhost:7878/ping
Each should return a small JSON response with an OK status. Then I open http://SERVER_ADDRESS:9696, http://SERVER_ADDRESS:8989, and http://SERVER_ADDRESS:7878 and set an admin login on first visit.
Wiring them together
This part happens in the web UIs. The containers reach each other by name, so the server’s address never appears inside the stack:
- In Sonarr, under Settings, Media Management, add the root folder
/data/media/tv, with hardlinks enabled. - In Sonarr, under Settings, Download Clients, add qBittorrent with host
gluetun, port8080, and categorytv, then use the Test button. - In Radarr, add the root folder
/data/media/moviesand the same qBittorrent client with categorymovies. - In Prowlarr, under Settings, Apps, add Sonarr (
http://sonarr:8989) and Radarr (http://radarr:7878) with their API keys. Prowlarr’s own URL ishttp://prowlarr:9696. - Add indexers in Prowlarr. Which ones is a personal choice that I’m not listing here.
Why I did this. The host is gluetun, not qbittorrent, because qBittorrent shares Gluetun’s network, which trips up a lot of people.
Test the pipeline. I add one title I have legitimate access to and let it search, download, and import. Then I check that the import used a hardlink, meaning the same inode and a link count of 2:
stat -c '%i %h %n' /srv/data/torrents/tv/SOME_FILE.mkv /srv/data/media/tv/SOME_SHOW/SOME_FILE.mkv
If the inodes differ, it copied instead, and the usual cause is mismatched /data mounts between containers.
11. Seerr
Status: documented, not independently re-verified.
Seerr is the request manager: a front end where I (or anyone else I let in) can browse and ask for a movie or show, which then flows through Sonarr or Radarr to qBittorrent, and shows up in Jellyfin. I checked Seerr’s own docs for the current image name, because these projects move quickly and this is the line most likely to go stale:
seerr:
image: ghcr.io/seerr-team/seerr:latest
container_name: seerr
init: true
user: "1000:1000"
environment:
- TZ=${TZ}
volumes:
- ./config/seerr:/app/config
ports:
- 5055:5055
restart: unless-stopped
docker compose up -d
docker compose ps
Why I did this. Without a request manager, the only ways to add something are logging into Sonarr or Radarr myself, or someone asking me. Seerr gives other people a friendly page that signs in with their Jellyfin account, so they don’t need access to the admin tools. It’s optional, so if I were the only user I’d skip it.
Test it.
curl -s http://localhost:5055/api/v1/status
That should return JSON with a version number. Then I open http://SERVER_ADDRESS:5055, sign in with my Jellyfin account, point it at http://jellyfin:8096, and add Sonarr (http://sonarr:8989) and Radarr (http://radarr:7878) with their API keys. A test request should appear in Sonarr or Radarr, then go to qBittorrent, then land in Jellyfin.
12. Tailscale and Funnel
Status: confirmed in my setup. Tailscale and both Funnel routes worked. I’ve left out my real Tailscale address, account, and Funnel hostname.
I install Tailscale on the Debian host, not in Docker, and join my tailnet:
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
tailscale status
tailscale ip -4
tailscale up prints a login URL to approve the machine. tailscale status and tailscale ip -4 then showed the Debian node and its private 100.x.y.z address (YOUR_TAILSCALE_IP).
Why I did this. I wanted to reach the server away from home without opening ports on my router. Tailscale is a private network between my own devices, so SSH and the admin pages (Sonarr, Radarr, Prowlarr, qBittorrent) can stay private. I put it on the host rather than in a container so it’s available even if Docker is down, which makes it my way back in.
Test it. From a phone or laptop on Tailscale but off my home Wi-Fi, I can open http://YOUR_TAILSCALE_IP:8096 and get Jellyfin. No router change involved.
Funnel for the two public services
I also wanted friends to use Seerr and Jellyfin without installing Tailscale, so I used Funnel, which publishes a service to the internet through Tailscale. HTTPS and Funnel have to be enabled in the Tailscale admin console first.
sudo tailscale funnel --bg --https=443 http://127.0.0.1:5055
sudo tailscale funnel --bg --https=8443 http://127.0.0.1:8096
tailscale funnel status
tailscale funnel status confirmed both routes:
| Public HTTPS port | Local service |
|---|---|
| 443 | Seerr at 127.0.0.1:5055 |
| 8443 | Jellyfin at 127.0.0.1:8096 |
Why I did this. Funnel is public, so I limited it to exactly the two things I want others to reach, and only those. SSH, Sonarr, Radarr, Prowlarr, and qBittorrent stay private on the tailnet. It’s a tradeoff: Funnel is convenient, but it puts login pages on the public internet, which is why strong passwords matter here.
Test it. From a device that isn’t on my network or tailnet (a phone on cellular works), I open the Funnel hostname and check that the Seerr and Jellyfin login pages load.
Make sure it survives a reboot
Status: documented, not independently re-verified. The laptop did reboot, but the exact command isn’t recorded, and I have no output for these checks.
systemctl is-enabled docker tailscaled
systemctl is-active docker tailscaled
docker inspect -f '{{.Name}}: {{.HostConfig.RestartPolicy.Name}}' jellyfin seerr sonarr radarr prowlarr gluetun qbittorrent
sudo reboot
After it’s back up:
tailscale status
tailscale funnel status
docker compose -f /opt/media-stack/compose.yaml ps
Why I did this. A server isn’t a server until it recovers from a reboot with nobody touching the keyboard. This is the test that exposed the lid-sleep problem from step 5.
13. Backups and maintenance
Status: documented, not independently re-verified.
The media is replaceable, but the config isn’t: Jellyfin users and watch history, the Sonarr and Radarr setup, the Prowlarr indexers. It all lives under /opt/media-stack:
cd /opt/media-stack
docker compose stop
sudo tar -czf ~/media-stack-config-$(date +%F).tar.gz -C /opt media-stack
docker compose start
Why I did this. Stopping the containers first means the databases aren’t mid-write. The archive then needs to be copied off the laptop, because a backup on the same disk isn’t a backup. A quick check that it’s readable:
tar -tzf ~/media-stack-config-*.tar.gz | head
Updates
sudo apt update
sudo apt full-upgrade
cd /opt/media-stack
docker compose pull
docker compose up -d
docker image prune -f
For automatic security patches I could add sudo apt install unattended-upgrades. I do container updates deliberately rather than on a timer, and after a backup, because an update that changes an app’s database is exactly when I want one.
A routine check
df -h /srv/data
sudo smartctl -H /dev/sda
sensors
docker compose ps
Free space, disk health, temperature, and whether everything is still running.
Recap checklist
- Confirmed the CPU is 64-bit
- Backed up Windows 7 data and opened a few files elsewhere
- Made the Debian 13
amd64netinst USB and verified the hash - Installed Debian 13 with no desktop, with the SSH server, on one partition
-
cat /etc/os-releaseshowstrixie - Router DHCP reservation for a stable address
- SSH works with keys, with password logins disabled after testing
-
ufwenabled with SSH allowed - Lid close and sleep disabled, tested with the lid closed
-
smartctl -HsaysPASSED, andsensorslooks sane -
/opt/media-stackand/srv/datacreated on one filesystem - Docker installed, with
hello-worldanddocker compose versionworking - Jellyfin:
/healthsaysHealthy, a file plays, and/dev/driis visible in the container - Gluetun: the VPN IP differs from the real IP
- qBittorrent: password changed, and a test download lands in
/srv/data/torrents - Prowlarr, Sonarr, and Radarr:
/pingis OK and the apps are connected - A test import used a hardlink (same inode)
- Seerr: a test request goes through end to end
- Tailscale: reachable from outside the house with no router port forwards
- Rebooted once, and everything came back by itself
- First config backup copied off the laptop
That’s the whole build. A laptop that was headed for a drawer now runs the media server for my house, on hardware I already had. If anything here is wrong or out of date, let me know and I’ll fix it. o7