How to Install Jellyfin on an Old Laptop (Complete Beginner's Guide)
Turn a dusty laptop into a free home media server. A step-by-step Jellyfin install with Docker, plus the laptop-specific tips nobody tells you about.
On this page
- Why an old laptop makes a great first home server
- What you need
- Step 1: Install Ubuntu Server
- Step 2: Stop the laptop from sleeping
- Step 3: Install Docker
- Step 4: Create the Jellyfin setup
- Step 5: The setup wizard
- Step 6: Add your media
- Optional: hardware transcoding (if your laptop has Intel graphics)
- Watching outside your home (the safe way)
- Troubleshooting the two most common problems
- Where to go from here
Install Jellyfin on an old laptop with Docker
From a fresh Ubuntu Server install to a working media server you can open in your browser.
Estimated time: PT1H30M
Install Ubuntu Server on the laptop
Flash Ubuntu Server LTS to a USB stick, boot the laptop, and complete the installer. Enable the OpenSSH option so you can manage it remotely.
Disable lid-close suspend
Edit /etc/systemd/logind.conf and set HandleLidSwitch=ignore so the server keeps running with the lid closed.
Install Docker and the Compose plugin
Add Docker's official repository and install docker-ce plus docker-compose-plugin, then add your user to the docker group.
Create the Jellyfin Compose file
Create a jellyfin folder in your home directory with config, cache and media subfolders, and add a docker-compose.yml using the official jellyfin/jellyfin image.
Start Jellyfin and run the setup wizard
Run docker compose up -d, then open http://your-server-ip:8096 in a browser and follow the first-time wizard.
Add your media library
Copy movies and shows to the media folder and add them as libraries in the Jellyfin dashboard.
There is a laptop in your drawer right now that can replace a paid streaming setup, cost you nothing, and run quieter than the fridge. I’m talking about the 2015 machine with a worn keyboard and a battery that holds a 40-minute charge — the one you keep meaning to recycle.
A laptop is actually one of the best first home servers you can get. It brings its own UPS (that battery still works for graceful shutdowns), it sips power compared to a desktop, and it is completely free. Install Jellyfin on it and you get your own media server: your movies and shows, streamed to any device in your house, with no subscription and no “this title leaves the service on Friday” nonsense.
This guide walks you through the whole thing, start to finish, assuming zero Linux experience. You will install Ubuntu Server, set up Docker, and have Jellyfin running on your home network in about an hour — most of which is waiting for installs to finish.
Why an old laptop makes a great first home server
Desktop towers idle at 40–80 watts. A laptop doing the same job idles at 8–15 watts, and that difference shows up on your power bill every single month — plug those two numbers into the power cost calculator and you’ll see why a 10 W laptop pays for itself compared to a noisy 60 W tower. The built-in battery means brief power cuts don’t corrupt your database, and the screen and keyboard are handy during setup (after that, you’ll use it headless over SSH).
Even a modest 6th-gen Intel Core i3/i5 laptop with 8 GB of RAM handles direct play to multiple TVs or phones without breaking 15% CPU, while keeping temperatures around 45–55 °C as long as the vents aren’t blocked on a carpet.
What you need
- A laptop from roughly 2012 or newer, with at least 4 GB of RAM and a working Ethernet port
- A USB stick (8 GB or larger) — this will be wiped
- An Ethernet cable to your router (Wi-Fi works, but a server should be wired)
- Your media: movies and shows in folders you can copy over later (estimate drive space first with the media storage calculator)
- About 90 minutes, mostly unattended
Step 1: Install Ubuntu Server
Ubuntu Server is a Linux distribution with no desktop, which is exactly what you want — every bit of RAM goes to your apps instead of to a graphical interface.
- Download Ubuntu Server LTS (24.04 or newer) from ubuntu.com/download/server.
- Flash it to your USB stick with Rufus (Windows) or balenaEtcher.
- Boot the laptop from the USB stick (usually
F12,F2orEscright after powering on to open the BIOS/UEFI boot menu and pick the USB drive). - Walk through the installer. When you reach the SSH setup screen, tick “Install OpenSSH server” — this is what lets you control the laptop from your main computer later.
- Pick a username and password you’ll remember. Write them down.
- When it finishes, reboot and remove the USB stick.
The laptop will boot to a black screen with a login prompt. Log in with the username and password you created. First things first:
sudo apt update && sudo apt upgrade -ysudo apt install -y curlStep 2: Stop the laptop from sleeping
This is the step that trips up every laptop-turned-server. Close the lid, and Linux obediently suspends — which means your media server goes offline every time you tidy your desk.
Fix it once, and it never bothers you again:
sudo nano /etc/systemd/logind.confFind the line #HandleLidSwitch=suspend, remove the #, and change the value:
HandleLidSwitch=ignoreHandleLidSwitchExternalPower=ignoreSave with Ctrl+O, exit with Ctrl+X, then apply the change:
sudo systemctl restart systemd-logindWhile you're in there
Disable sleep-on-idle too, or the machine may still doze off when nobody touches the keyboard. Runningsudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target handles all four states in one line.Verify the lid switch rule took effect with grep -E '^HandleLidSwitch' /etc/systemd/logind.conf before closing the laptop.
Step 3: Install Docker
Docker is how you’ll run Jellyfin. Instead of installing Jellyfin “on” the system — where updates and configs can get messy — Docker runs it in a clean, self-contained box you can update with one command.
Install it from Docker’s official repository:
# Add Docker's official GPG key and repositorysudo install -m 0755 -d /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgsudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \ https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" \ | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install Dockersudo apt updatesudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginThen let your user run Docker commands without sudo:
sudo usermod -aG docker $USERnewgrp dockerVerify everything works:
docker run --rm hello-worldIf the output prints Hello from Docker! followed by the four-step container verification summary, Docker is ready.
Step 4: Create the Jellyfin setup
Now the fun part. Create a folder structure and a Compose file, which is just a recipe that tells Docker everything Jellyfin needs:
mkdir -p ~/jellyfin/config ~/jellyfin/cache ~/jellyfin/media/movies ~/jellyfin/media/tvcd ~/jellyfinnano docker-compose.ymlPaste this into the file:
services: jellyfin: image: jellyfin/jellyfin:latest container_name: jellyfin user: 1000:1000 # your first Linux user's UID:GID — check with: id network_mode: host volumes: - ./config:/config - ./cache:/cache - ./media:/media:ro restart: unless-stoppedSave and exit, then start it:
docker compose up -dThe first run pulls the image (a few hundred megabytes), which can take a couple of minutes on an old network card. Check that it’s running with docker compose logs -f jellyfin — you want to see Jellyfin reporting that it’s listening on port 8096. Press Ctrl+C to stop watching the logs (this does not stop the server).
Note
Whynetwork_mode: host? It makes Jellyfin visible on your network for things like DLNA and device discovery without extra configuration. On a machine that only runs this one service, it’s the simplest choice. If you’d rather map ports manually, remove that line and use ports: - "8096:8096" instead.Step 5: The setup wizard
On any computer in your house, open a browser and go to:
http://LAPTOP-IP:8096(Find the laptop’s IP by running hostname -I on the laptop itself.)
The wizard walks through four quick screens: language, admin username and password, media libraries pointing at /media/movies and /media/tv, and preferred metadata language. Once you finish, the scanner starts immediately — an empty library is normal until you add files.
Step 6: Add your media
You can copy files over the network from another computer. On Windows, scp comes with modern versions of OpenSSH, or you can use WinSCP if you prefer drag-and-drop:
# From another computer — copy a movies folder into the laptopscp -r ~/Videos/SomeMovie you@LAPTOP-IP:~/jellyfin/media/movies/For larger libraries (100 GB+), plugging in an external USB drive or running rsync -ah --progress over gigabit Ethernet (~112 MB/s real-world throughput; check timing with our transfer time calculator) is much faster than Wi-Fi, which often drops to 20–40 MB/s.
Once files land in the folders, trigger a library scan in Jellyfin (Dashboard → Libraries → Scan All Libraries) and posters, descriptions and ratings will appear.
Warning
If media appears but won’t play, it’s almost always a permissions problem. Files must be readable by the user running Docker (UID 1000 in the Compose file above). Fix withsudo chown -R 1000:1000 ~/jellyfin/media.Optional: hardware transcoding (if your laptop has Intel graphics)
If your files are in formats your player can’t handle directly — or you want to stream outside your home on slower mobile data — Jellyfin has to convert (transcode) them on the fly, and that’s CPU-hungry. Intel laptops from 2013 onward have Quick Sync, a dedicated media block on the CPU that does this with minimal power draw.
In Jellyfin, go to Dashboard → Playback → Transcoding, enable Intel Quick Sync (QSV) or VAAPI, and make sure the container can see the graphics chip by adding this to your Compose file:
devices: - /dev/dri:/dev/driIf you get a permission error opening /dev/dri/renderD128 inside the container, check the host group ID (stat -c '%g' /dev/dri/renderD128) and add it under group_add: in your docker-compose.yml, then run docker compose up -d again. Even a 2016 Intel i5 laptop handles 2–3 simultaneous 1080p H.264 transcodes smoothly once QSV is active.
Watching outside your home (the safe way)
Do not port-forward the Jellyfin port to the internet — exposed media servers are a favorite target for scanners. The clean solution is Tailscale, which creates a private tunnel between your devices. Follow our Tailscale remote access guide before you open anything remotely.
Troubleshooting the two most common problems
- The page won’t load. Run
hostname -Ion the laptop to confirm the IP, and make sure you’re on the same network (a phone on cellular data is not). Check if UFW is blocking port8096(sudo ufw allow 8096/tcp). - Playback stutters. 4K HEVC files will strain a very old CPU if software-transcoded. Either enable Quick Sync (above) or keep a 1080p copy for remote clients so Jellyfin direct-plays cleanly.
Where to go from here
That old laptop is now a real server. Some natural next projects:
- Back it up properly — start with our 3-2-1 backup guide so configs and family photos survive a disk failure
- Add a photo library with Immich and ditch Google Photos
- Replace Dropbox with Nextcloud
- Block ads on every device in the house with Pi-hole
Compared to Plex, Jellyfin has zero paywalls on hardware transcoding, zero forced cloud accounts, and zero ads on your home screen — which makes it the easiest recommendation on a free, zero-budget old-laptop build.
Frequently Asked Questions
Is an old laptop good enough for Jellyfin?
Yes — for direct play (streaming files your player can handle natively) almost any laptop from the last 10 years works fine. Transcoding is the heavy part, and laptops with an Intel CPU from 2013 or later can handle 1–3 simultaneous 1080p streams cleanly using Quick Sync hardware transcoding.
How much RAM does Jellyfin need?
4 GB is plenty for Jellyfin itself plus Docker on a small Linux install. 8 GB gives you comfortable headroom if you plan to run other services like Immich or Nextcloud on the same machine.
Can I close the laptop lid while it runs as a server?
Not by default — Linux suspends when the lid closes. You need to disable that behavior with a one-line change to logind.conf, which this guide covers in step 2. Keeping the lid closed also protects the screen and keyboard from dust.
Does Jellyfin need an internet connection?
No. Streaming inside your home works completely offline. An internet connection is only needed the first time to download artwork and metadata, and to update the app.