How to Install Jellyfin Media Server on Ubuntu 22.04 LTS

Learn how to install and configure a Jellyfin media server on Ubuntu 22.04 LTS Jammy JellyFish to share your music with friends or listen to them using a local network or the Internet.

When it comes to creating your own Medis server, the first name would be Kodi or Plex, however, it’s not just there. Jellyfin is another popular open source project that allows us to quickly build a modern media server with an interactive web UI to manage videos, images, and music from any device.

We can browse media content using Jellyfin on various devices such as computers, apps on your Roku, Android, iOS (including AirPlay), Android TV or Fire TV device, or through your existing Chromecast or Kodi. While when it comes to installing the Jellyfin server platform, it is not limited to Linux only, we can configure it on machines running Microsoft Windows, macOS or in a Docker container.

Steps to Install Jellyfin Media Server on Ubuntu 22.04 LTS Linux

Here we will not only show the steps to install Jellyyfin Media Server on Ubuntu 22.04, but also how to configure it to access media content.

1: Add a GPG key

Before adding the Jellyfin repository, add its public GPG key used to sign Jellyfin packages and will confirm that we are installing them on our system from the authentic source.

To get packages through a secure protocol, first enable its support using the command below:

sudo apt install apt-transport-https ca-certificates gnupg2 curl git -y

Add a key:

curl -fsSL https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/jellyfin.gpg

2: Add a Jellyfin repository

Now, let’s add the Jellyfin repository depending on which Debian or Ubuntu based Linux system you are pursuing. This is a single command, so you need to copy and paste it all.

echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list

3: Run System Update

Rebuild the system repository cache, so that it can recognize the added repository and its corresponding packages to install on our system to configure the Jellyfin media server.

sudo apt update

4: Install Jellyfin on Ubuntu 22.04

Finally, run the command below to automatically install Jellyfin on your Debian or Ubuntu based Linux OS you are using,

sudo apt install jellyfin

5: Activate and start the Jellyfin server

After the installation is complete, let’s start the Jellyfin Media server service on Ubuntu 22.04 and enable it, so that it can start automatically with system startup.

sudo systemctl enable jellyfin

sudo systemctl start jellyfin

You can also check if everything is working properly or not using:

sudo systemctl status jellyfin --no-pager -l

Activate and start Jellyfin Server Ubuntu 22.04

6. Allow Media Server Through Firewall

The default port used by the Jellyfin media server is 8096 and if you are using a firewall such as UFW or those using cloud hosting to run Ubuntu 22.04, open it in their firewall.

If you are using an active UFW firewall, use the command shown:

sudo ufw allow 8096

7: Configure Jellyfin Media Server

As everything is in place, our open source media server is up and running, so it’s time to access Jellyfin’s web interface using the browser. If you are using a command line server to set it up, use another available local machine to access the remote server where you installed the Jellyfin.

In the browser, type the IP adress of the server on which Jellyfin was installed with the port number 8096. Whereas if you are using the Jellyfin installed server in the GUI with browser access, we can use localhost or 127.0.0.1.

Example:

127.0.0.1:8096

0r

ip-address:8096

To note: Replace the IP address with your server address.

You will get the welcome screen to further configure Jellyfin.

Configure Jellyfin Media Server

8: Set username and password

Click on the Next button to start Jellyfin media server setup. The following screen will appear to configure the username and password for the administrator who will have full access to add/remove content and other settings.

Set username and password for JellyFin server

9: Add a library

Click on the + button, first select the category type, for media files such as music, videos and pictures, then type the path of the folder where you need to save the media you want to play on Jellyfin. For example, I selected the Music category and then entered the path to the folder where I saved my music files.

You can add multiple folders to your library here or after whenever you want.

Min music and video library

If you want to use a smartphone and other devices to remotely connect Jellyfin via the Internet, enable the option “Allow remote connections to this Jellyfin server”. However, to access the server residing behind a local router and using a local IP address, to access it through the Internet, the user must forward their Jellyfin port manually.

Configure Min Remote Access

10: Connecting to the Jellyfin server

Enter username and password to login, then you will get Jellyfin interface in your browser to access music, videos and other media files.

Connecting to min open source media server

Minimum music library

If you want to add more library or media folders in Jellyfin, go to Dashboardselect the libraries, then “Add a media library”.

Add music to Jillyfin min

Options to restart and shut down the server are also present under Dashboard.

Dashboard Jillyfin min

11. How to update/upgrade

As we used the official JellyFin repository to install it, we can use the system update and upgrade command to get the latest updates available.

sudo apt update && sudo apt upgrade

12. Uninstall Jellyfin Media Server

Those who are not interested in this open source media server and want to completely remove it from their Ubuntu 22.04 can opt for the given commands.

sudo autoremove install jellyfin --purge

To also delete the repository.

sudo rm /etc/apt/sources.list.d/jellyfin.list

JellyFin Customers

This open source media server supports multiple client applications to stream music and videos from the server. Thus, for the same, we can download Jellyfin Client according to our devices such as Firestick, Android TV, iPhone, Kodi, Roku, and more…


Source link

Steven L. Nielsen