Skip to content

How to Set Up Jellyfin on a Linux Server – Your Own Media Server for Movies, TV Shows, and Music

Set up Jellyfin on your Linux server: in minutes as a One-Click App or manually with Docker Compose. Stream movies, TV shows, and music from your own server to all your devices.

26 November 20265 min read1 Views0 helpful

Introduction

Jellyfin is a free, self-hosted media server. Store your movies, TV shows, and music on your server, and Jellyfin will organize them into libraries, automatically download covers, descriptions, and cast details, and stream everything to your browser, smartphone, or TV. Jellyfin is completely open source, costs nothing, and doesn't require an account with a provider.

In this guide, we'll show you two ways to get started: the easy way using your VPS's One-Click Apps and the manual installation using Docker Compose.

The easy way: Jellyfin as a One-Click App

The fastest way to get your own media server is through your VPS's One-Click Apps. ZapX configures the domain and HTTPS for you, so you don't need the console to install it.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps to learn how.
  • At least 1 GB of RAM for Jellyfin; 2 GB is recommended.
  • Enough storage space for your media files. Movies and TV shows can quickly take up several hundred gigabytes.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search for Jellyfin in the App catalog and click Install app.
  3. Leave Use a custom subdomain or zap.cloud enabled and choose an address. With a domain, Jellyfin is available over HTTPS; without one, it's only available over HTTP.
  4. No other details are needed. Click Queue installation. The app will be online in one or two minutes.
Warning

Set up Jellyfin immediately after installation Jellyfin doesn't create an admin account in advance. The first person to visit the address will go through the setup wizard and create the admin account. So, open the app at its address as soon as it's installed and complete the setup.

First visit: Setup wizard

The Jellyfin setup wizard starts the first time you visit:

  1. Server name and language: Give your server a name and choose the interface language. If you don't enter a name, Jellyfin will display a random string.
  2. Admin account: Set a username and password for your admin account. You can add other users for family or friends later from the dashboard.
  3. Media libraries: Click “Add Media Library” and choose a content type, such as “Movies” or “Shows.” Click the plus sign next to “Folders” and select the appropriate folder: /data/movies for movies or /data/tvshows for TV shows. You can also add libraries later.
  4. Metadata: Choose the language and country Jellyfin should use to find titles and descriptions.
  5. Remote access: Leave “Allow remote connections to this server” enabled. Otherwise, Jellyfin will block all external connections.

Finally, click “Finish” and sign in with your admin account.

Upload movies and TV shows

The One-Click App includes two media folders: one for movies and one for TV shows. On your VPS, they're stored in Docker volumes with names ending in _jellyfin-movies and _jellyfin-tvshows. Run this command in the console to see the exact names:

Code
docker volume ls | grep jellyfin

Using SFTP as root, upload your files to the _data subfolder of the appropriate volume. For movies, for example, upload them to /var/lib/docker/volumes/<Name of the volume>/_data. See Connect using SFTP for instructions on connecting.

Put each movie in its own folder named with its title and release year, for example, Big Buck Bunny (2008)/Big Buck Bunny (2008).mp4. This helps Jellyfin find the right information and cover art. Without the year or with an abbreviated title, Jellyfin may quickly add the wrong movie to your library. Then click “Scan All Libraries” in the dashboard so Jellyfin can scan the new files.

Info

Transcoding videos without a graphics card If a device can't play a video directly, Jellyfin transcodes it during playback. On a VPS, the CPU handles this; no graphics card is available. This puts a heavy load on the server. Files that your devices can play directly use the least resources. See Codec support for Jellyfin clients.

Connect apps

Jellyfin is available as an app for Android, iOS, smart TVs, and streaming devices. Enter your One-Click App's address as the server address in the app, for example, https://jellyfin.example.com, and sign in with your account.

App updates and settings

To check whether an update is available for your installation, open the app settings (gear icon), go to App update, and select Check for updates. If a new version is available, install it by selecting Apply update. Your settings, users, and media files will be preserved because they're stored in separate volumes.

Change the app's address under App actions. You can also stop, reinstall, or uninstall the app there.

Manual installation

The rest of this guide covers manual installation from the console using Docker Compose. This is useful, for example, if you want to integrate Jellyfin into an existing server environment or store your media in a custom folder. The instructions are based on the official Jellyfin container guide.

Requirements

  • A Linux server running Debian or Ubuntu that you can access over SSH.
  • Docker with the Compose plugin. See our guide Set Up Docker for instructions on installing Docker.

Start Jellyfin

Create a directory with subfolders for configuration, cache, and media, then create a compose.yaml file in it:

Code
mkdir -p jellyfin/config jellyfin/cache jellyfin/media
cd jellyfin
nano compose.yaml

Add the following content, based on the example in the official guide:

Code
services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    ports:
      - 8096:8096/tcp
    volumes:
      - ./config:/config
      - ./cache:/cache
      - type: bind
        source: ./media
        target: /media
    restart: 'unless-stopped'

Save the file and start Jellyfin:

Code
docker compose up -d

Jellyfin will then be available on port 8096. Open http://<IP address of your server>:8096 in your browser and go through the setup wizard as described above under First visit: Setup wizard. Select /media as the media folder. Store your files in the media subfolder.

Info

Firewall and HTTPS If a firewall is active on your server, port 8096 (TCP) must be accessible. See Manage the firewall on Linux. For ongoing use, you should run Jellyfin with a domain over HTTPS behind a reverse proxy. See Set Up a Reverse Proxy with nginx. You can then bind the port locally only, using 127.0.0.1:8096:8096/tcp instead of 8096:8096/tcp.

Update Jellyfin

Go to the directory and download the new version:

Code
cd jellyfin
docker compose pull
docker compose up -d

Conclusion and additional resources

Congratulations! Jellyfin is now running on your server and streaming your media. Find more information here:

Do you have questions that aren't answered here? Our support team is happy to help every day! 🙂

Free tools

Related tools for servers and developers

View all

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.