Back to Article List

How to install Jellyfin on a VPS (Ubuntu or Docker)

How to install Jellyfin on a VPS (Ubuntu or Docker)

Updated and tested 26 October 2026

Jellyfin on a VPS is the version of the home media server idea that survives contact with reality: your library streams to any device from a machine with a real internet connection, nothing at home has to stay powered on and there's no Plex-style account layer between you and your own files. The install takes fifteen minutes. This guide does it both ways, native Ubuntu packages and Docker Compose, then covers first-run setup and updates.

Version note before we start: the official script installs the current stable release, which was 12.4 when I ran everything below on a fresh Ubuntu 24.04 server. If you're upgrading an older server instead of installing fresh, back up first; major upgrades migrate the database one way (more on that in our Jellyfin backup and restore guide).

Jellyfin server requirements

Jellyfin itself is light: 2 vCPU and 4 GB of RAM run a small library comfortably when clients direct-play. The real questions are storage and transcoding. Media libraries eat disk fast, so count your collection before picking a plan; a storage VPS makes sense once the library outgrows what NVMe plans offer per dollar. Transcoding is the CPU-hungry part: converting a 4K HEVC file on the fly will pin several cores without a GPU. The cheap workaround is avoiding transcodes entirely, keeping media in H.264/AAC formats that phones and TVs play natively. It works better than people expect.

Route 1: install from the official repository

Jellyfin ships an official install script for Debian and Ubuntu that sets up the repo and installs the packages. Download it, verify the checksum and run it:

curl -s https://repo.jellyfin.org/install-debuntu.sh -O
curl -s https://repo.jellyfin.org/install-debuntu.sh.sha256sum -O
sha256sum -c install-debuntu.sh.sha256sum
sudo bash install-debuntu.sh

The checksum step matters; you're about to run a script as root, so spend the ten seconds confirming it's the script Jellyfin published (the official Linux install docs even suggest reading it first with less). The script shows the OS and release it detected and waits for Enter. After that it adds the apt repository, installs jellyfin, jellyfin-web and the project's own ffmpeg build, then starts the service.

install-debuntu.sh waits for Enter after the OS check, installs jellyfin 12.4+ubu2404 and prints the URL on port 8096

The script stopped once to show the OS it detected and carried on after Enter.

Check it's alive:

systemctl status jellyfin

Active and running means the web UI is waiting at http://YOUR_SERVER_IP:8096. If ufw is on, allow the port first with sudo ufw allow 8096/tcp. Then run the wizard straight away: until the first user exists, anyone who reaches port 8096 can create the admin account.

systemctl status jellyfin shows the service loaded, enabled and active (running) after the install

Active (running) right after the script; the log lines below it were cut.

Updates from here on ride the normal package flow, which is the main argument for this route:

sudo apt update && sudo apt upgrade

Route 2: Docker Compose

The container route keeps Jellyfin's files in two folders you choose and makes major-version rollbacks as easy as changing a tag. Create a docker-compose.yml:

services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    volumes:
      - ./config:/config
      - ./cache:/cache
      - /srv/media:/media:ro
    ports:
      - "8096:8096"
    restart: unless-stopped

Then bring it up:

docker compose up -d

Two deliberate choices in that file. The media mount is read-only (:ro) because Jellyfin never needs to write into your library, and a media server with write access to its own media is one bad plugin away from a bad day. And I publish port 8096 explicitly rather than using host networking; host mode gets recommended for DLNA discovery, but on a VPS there's no living room to discover, so the tighter option wins. Our take on the trade-offs is in the Jellyfin ports guide.

Don't count on ufw to guard that port. Docker's packet filtering and firewalls page says traffic to a published container port is diverted before it goes through the ufw rules, so with this file 8096 is open to the internet even with ufw enabled, setup wizard included. To keep it private, publish it as "127.0.0.1:8096:8096" and put a reverse proxy in front, or filter it in Docker's DOCKER-USER chain.

docker ps lists the jellyfin container published on 0.0.0.0:8096 and the image label reads version 12.4

The compose route on my server: port 8096 published on every address and the image at 12.4.

Updating the container version:

docker compose pull && docker compose up -d

First-run setup

Open http://YOUR_SERVER_IP:8096 and the wizard walks you through language, the first user and libraries. Three decisions worth getting right on day one:

  • The first account is your admin. There's no default login in Jellyfin; this wizard account is it, so give it a real password and store it somewhere. Recovering a lost admin password on a headless VPS is possible but annoying (we wrote up the password recovery methods separately).
  • Point libraries at folders, not at the disk root. One library per type (Movies, Shows, Music) keeps metadata scanners sane. On the Docker route these paths are the container-side ones, /media/movies and so on.
  • Skip remote access hardening for now but come back to it. The wizard's "allow remote connections" toggle just binds the server to public interfaces; it is not authentication hardening. Before you share the address with anyone, read through the remote access setup options, since a bare HTTP media server on a public IP collects login attempts within hours.

After the wizard, feed the library and let the first metadata scan finish before judging performance; the initial image and metadata fetch is the heaviest thing a fresh Jellyfin does.

Verify the install

Three quick checks. The dashboard (top-right user menu » Dashboard) shows your version and active devices.

Jellyfin dashboard Server panel with server, web and build version all 12.4 and a Movies library of 3

The dashboard on my test server after the wizard: server, web and build all on 12.4.

Playing any file from the web UI confirms the mount and the permissions. And journalctl -u jellyfin --since "10 min ago" (or docker logs jellyfin) should be free of permission-denied lines; if it isn't, the jellyfin user can't read the folder you mounted, which is the single most common fresh-install failure. chmod -R a+rX /srv/media is the blunt fix, tightening group ownership is the elegant one.

Make room for every file you'll ever keep

Keep your backups and media libraries on reliable storage with unmetered bandwidth and a cost that stays predictable as your archive grows.
Ciclo de Facturación

VPS.H1

$6.99 Save  14 %
$5.99 Mensual
  • 1 vCPU AMD EPYC
  • 2 GB memoria RAM
  • ✔HDD disco
  • ✔Ilimitado ancho de banda
  • ✔ IPv4 e IPv6 incluidos El soporte IPv6 no está disponible en Francia o Países Bajos.
  • ✔Gestión de firewall
  • ✔Monitoreo gratis
  • ✔KVM virtualización

VPS.H3

$24.99 Save  20 %
$19.99 Mensual
  • 4 vCPU AMD EPYC
  • 8 GB memoria RAM
  • ✔HDD disco
  • ✔Ilimitado ancho de banda
  • ✔ IPv4 e IPv6 incluidos El soporte IPv6 no está disponible en Francia o Países Bajos.
  • ✔Gestión de firewall
  • ✔Monitoreo gratis
  • ✔KVM virtualización

VPS.H4

$36.49 Save  18 %
$29.99 Mensual
  • 6 vCPU AMD EPYC
  • 12 GB memoria RAM
  • ✔HDD disco
  • ✔Ilimitado ancho de banda
  • ✔ IPv4 e IPv6 incluidos El soporte IPv6 no está disponible en Francia o Países Bajos.
  • ✔Gestión de firewall
  • ✔Monitoreo gratis
  • ✔KVM virtualización

*VAT excluded.

INCLUDED WITH EVERY PLAN

✓ No setup fees ✓1 Gbps network
✓ Free server monitoring ✓ Firewall management ✓24/7 support ✓ KVM virtualization

Ubuntu package vs Docker: which install to pick

I run Jellyfin in Docker and I'd pick it again: version pinning, clean uninstalls and the config folder sits wherever I want it for backups. The native package route earns its place when the VPS does nothing else and you want systemd, apt and logs behaving like every other service you administer. Both are first-class citizens upstream. There's no third apt route to weigh: Ubuntu 24.04's own archive has no Jellyfin package at all, so the official repository is the only one.

On LumaDock you can also start Jellyfin from a one-click template on the Jellyfin VPS plans.

Questions?

Is a Jellyfin server legal?

Yes, running a Jellyfin server is legal: Jellyfin is free software under the GPL-2.0 licence, and its README promises no premium licences or paid features. What can make a server illegal is the content on it, and copyright law where you and your viewers live decides that.

Ellie Grace Hayes
About the author

Ellie Grace Hayes

I grew up in Minnesota and started working remotely before I decided that travelling was going to become a permanent part of my life. And it kinda did, more or less... I tend to stay somewhere for a month or two, sometimes longer if I like the place (so "digital nomad" is technically accurate, even if most days are much less exciting than the term suggests). Usually I'm at a desk in a rented room trying to work out why a command behaved differently on two supposedly identical machines :)

I came into technical writing through support work & community tutorials. Linux was the first subject I wrote about, but since then I've wandered into containers, hosting, networking plus a lot of self-hosted software. I've played Minecraft since I was a kid and still go through phases where I get completely absorbed in it for a few weeks. I don't have a five-year plan. I've tried - it keeps becoming a six-month plan instead.

Never run out of space again

Keep backups, archives and media on reliable storage with unmetered bandwidth and a cost per gigabyte that stays low as the years add up. Your first VPS comes with a 30-day money-back guarantee.