How to Install Jellyfin Media Server on Ubuntu 22.04

Jellyfin is a free and open-source media server that enables users to manage and stream their media collections across various devices. Installing Jellyfin on Ubuntu 22.04 LTS allows you to create a personal media server tailored to your preferences.

Prerequisites

Before proceeding with the installation, ensure you have:

  • An Ubuntu 22.04 LTS system with administrative (sudo) privileges.
  • A stable internet connection to download necessary packages.

Step 1: Update the System

Begin by updating your package lists and upgrading existing packages to their latest versions:

sudo apt update && sudo apt upgrade -y

Step 2: Install Required Dependencies

Install the apt-transport-https and ca-certificates packages to allow APT to use repositories accessed via the HTTPS protocol:

sudo apt install apt-transport-https ca-certificates -y

Step 3: Add the Jellyfin Repository

Jellyfin provides its own APT repository. Add it to your system by executing:

echo "deb [arch=$(dpkg --print-architecture)] https://repo.jellyfin.org/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list

Step 4: Import the GPG Key

To ensure the authenticity of the packages, import Jellyfin's GPG key:

wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add -

Step 5: Install Jellyfin

After adding the repository and key, update your package list and install Jellyfin:

sudo apt update
sudo apt install jellyfin -y

Step 6: Start and Enable the Jellyfin Service

Ensure that Jellyfin starts automatically and is running:

sudo systemctl enable jellyfin
sudo systemctl start jellyfin

Verify the service status:

systemctl status jellyfin

Step 7: Configure Firewall (If Applicable)

If you have a firewall enabled, allow Jellyfin's default port (8096):

sudo ufw allow 8096/tcp

Step 8: Access the Jellyfin Web Interface

Open your web browser and navigate to http://your_server_ip:8096. Replace your_server_ip with your server's actual IP address.

Step 9: Complete the Setup Wizard

Follow the on-screen instructions to:

  • Select your preferred language.
  • Create an administrator account.
  • Add media libraries by specifying the directories containing your media files.
  • Configure metadata settings and preferred download languages.

Step 10: Start Using Jellyfin

After completing the setup, you can start enjoying your media content through Jellyfin's intuitive interface.

For more detailed information and advanced configurations, refer to the official Jellyfin documentation.