Log inSign up

Run your own Jellyfin server on a VPS

Add the official Jellyfin APT repository, install the jellyfin package and open the web wizard on port 8096 to create the admin account and libraries. Put Nginx with a Let's Encrypt certificate in front so clients connect over HTTPS on port 443. Because our servers have no GPU, encode your files in formats your players handle natively so Jellyfin streams them by direct play instead of transcoding.

Topic: Media and streaming · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

Which server size and layout suit Jellyfin?

Disk space decides the plan more than anything else, because every film and episode lives on the local SSD or NVMe disk of the server. Jellyfin itself needs little: 2 GB of memory is comfortable for a small household library, and 4 GB leaves room for metadata scans, image extraction and several viewers at once.

Plan around direct play. Our plans have shared vCPUs and no graphics card, so real-time video transcoding runs on the processor alone. One 1080p H.264 transcode can keep two vCPUs busy, and 4K HEVC to H.264 is rarely smooth on any VPS. Files that already match what the clients decode (H.264 or HEVC video, AAC or AC3 audio, MP4 or MKV containers for most apps) stream with almost no CPU load.

Watch outgoing transfer too: a 10 Mbit/s stream moves about 4.5 GB per hour, and every plan lists its monthly transfer on the prices page. Only add media you own or have the rights to stream.

How do you add the Jellyfin repository and install it?

The project publishes signed packages for Ubuntu and Debian, so install through APT rather than a loose download. Start from an updated system with a sudo user, as covered in your first SSH session.

sudo apt update
sudo apt install -y curl gnupg ca-certificates
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key \
  | sudo gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpg
. /etc/os-release
cat <<EOF | sudo tee /etc/apt/sources.list.d/jellyfin.sources
Types: deb
URIs: https://repo.jellyfin.org/${ID}
Suites: ${VERSION_CODENAME}
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/jellyfin.gpg
EOF
sudo apt update
apt policy jellyfin
sudo apt install -y jellyfin

The ${ID} variable expands to ubuntu or debian and the codename to noble, jammy, bookworm or trixie, so the same block works on all four releases. The metapackage pulls in the server, the web client and jellyfin-ffmpeg, a patched FFmpeg build the server uses for probing and any transcoding.

How do you confirm the service is up?

Jellyfin starts right after installation as the jellyfin system user. Check the unit, the version and the listening port before you touch the firewall.

systemctl status jellyfin --no-pager
dpkg -l jellyfin-server | tail -n 1
sudo ss -tlnp | grep 8096
curl -s http://127.0.0.1:8096/System/Info/Public

The last request returns a short JSON document with the server name and version. Configuration lives in /etc/jellyfin, the database and metadata in /var/lib/jellyfin, cache files in /var/cache/jellyfin and logs in /var/log/jellyfin.

Where should the media files go?

Create one folder per library type and give the service user read access. Keeping movies and shows apart lets Jellyfin pick the right metadata scrapers.

sudo mkdir -p /srv/media/movies /srv/media/shows /srv/media/music
sudo chown -R deploy:jellyfin /srv/media
sudo chmod -R 2775 /srv/media

The setgid bit keeps new files in the jellyfin group. Upload from your computer with rsync -avP ./Films/ deploy@198.51.100.24:/srv/media/movies/; the rsync guide covers resuming large transfers. Name files the way scrapers expect, for example Movie Title (2019)/Movie Title (2019).mkv and Show Name/Season 01/Show Name S01E01.mkv.

How do you publish Jellyfin over HTTPS with Nginx?

Point media.example.net at the server (see DNS records), then let Nginx terminate TLS and pass traffic to port 8096, including WebSocket upgrades used for remote control and sync play.

sudo apt install -y nginx certbot python3-certbot-nginx
sudo tee /etc/nginx/sites-available/jellyfin >/dev/null <<'EOF'
server {
    listen 80;
    listen [::]:80;
    server_name media.example.net;
    client_max_body_size 20M;
    location / {
        proxy_pass http://127.0.0.1:8096;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_buffering off;
    }
}
EOF
sudo ln -s /etc/nginx/sites-available/jellyfin /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d media.example.net

Certbot adds the 443 listener and a renewal timer; details are in the Certbot guide. In the Jellyfin dashboard under Networking, add 127.0.0.1 to Known proxies so client addresses appear correctly in logs.

Which firewall rules does Jellyfin need?

With Nginx in front, only SSH, HTTP and HTTPS need to be reachable from outside. Keep 8096 closed so nobody bypasses TLS.

sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status verbose

Jellyfin also listens for local network discovery on UDP 7359, which has no use on a remote server, so leave it blocked. Our firewall tutorial shows the same policy with nftables.

How do you finish the setup wizard and add libraries?

Open https://media.example.net and the wizard asks for language, an admin user name and a strong password, then your libraries. Add /srv/media/movies as a Movies library and /srv/media/shows as Shows. Leave remote access enabled (the proxy is how you reach it) and skip the automatic port mapping option, which only matters for home routers.

After the first scan, create a separate non-admin account for each viewer under Dashboard, Users, and limit which libraries each one can see.

How do you keep CPU use low without a GPU?

Steer every client toward direct play. In Dashboard, Playback, Transcoding, leave hardware acceleration set to None (there is no device to use) and lower the thread count if a single transcode starves other services.

  • Prepare files once with FFmpeg on your own computer: H.264 video plus AAC stereo in MP4 plays directly on nearly every browser, phone and TV app.
  • Set each user's maximum streaming bitrate above your file bitrates so the server does not downscale on its own.
  • Prefer text subtitles (SRT) over image formats such as PGS, which force burn-in and therefore a transcode.
  • Disable the scheduled trickplay image extraction if scans hog the processor; it is optional.

The playback info overlay in the web client shows "Direct playing" when it works.

How are upgrades and backups handled?

Updates arrive through APT with the rest of the system: sudo apt update && sudo apt upgrade restarts the service when the package changes. Read the release notes before a feature release, because database migrations run on first start and cannot be undone by downgrading.

Back up /etc/jellyfin and /var/lib/jellyfin after stopping the service; the media folder can be restored from your originals. The optional daily backup add-on described in daily backups captures the whole disk if you prefer a hands-off route.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
S2-4room for a household library on SSD2 vCPU, 4 GB RAM, 80 GB SSD$12.00/mo$72.00 for 6 months
A4-8extra cores for the occasional CPU transcode4 vCPU, 8 GB RAM, 180 GB NVMe$28.80/mo$86.40 for 3 months

Questions about Jellyfin media server

Does Jellyfin need a paid licence or account?

No. Jellyfin is free software under the GPL with no premium tier, and accounts are local to your server.

Why does a video buffer while others play smoothly?

Open the playback info overlay. If it shows transcoding, the codec, audio format or subtitles are not supported by that client, and the shared vCPUs cannot keep up. Re-encode that file to H.264 and AAC or switch to text subtitles.

Can I run Jellyfin in Docker instead?

Yes, the official jellyfin/jellyfin image works with Docker Engine. Mount config, cache and media as volumes and publish 8096 on 127.0.0.1 only, then keep the Nginx proxy in front.

How much transfer will streaming use?

Roughly the file bitrate multiplied by viewing time: 8 Mbit/s for two hours is about 7 GB. Compare that with the monthly transfer of your plan and track it with the usage monitoring tools.

What if my library outgrows the disk?

Disks cannot be resized in place. Deploy a plan with more storage, copy /var/lib/jellyfin, /etc/jellyfin and the media across, then switch DNS, as described in moving to a larger plan.

Which apps can connect to it?

Official clients exist for web browsers, Android, iOS, Android TV, and several smart TV platforms, plus third-party players that speak the Jellyfin API. Point them at your HTTPS address.