Jellyfin is an open source streaming media server that can run on multiple platforms. It can be said to be a fully open source alternative to the well-known streaming media server Plex Server (Plex has many features that require a fee). This article simply records the process of installing Jellyfin in Ubuntu Server 18.04.

Add Jeffyfin’s official source

First, join the official source of Jeffyfin. Execute the following commands in sequence:

  1. Install HTTPS support for apt tool
1
sudo apt-get install apt-transport-https -y
  1. Download and install the certificate of Jeffyfin official source
1
wget -O - https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo apt-key add -

The system displays as follows:

1
2
3
4
5
6
7
8
9
10
11
12
--2020-03-05 08:01:04--  https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key
Resolving repo.jellyfin.org (repo.jellyfin.org)... 68.183.204.194, 2604:a880:cad:d0::cf3:f001
Connecting to repo.jellyfin.org (repo.jellyfin.org)|68.183.204.194|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2456 (2.4K) [application/octet-stream]
Saving to: ‘STDOUT’

- 100%[==============================================================================================>] 2.40K --.-KB/s in 0s

2020-03-05 08:01:07 (307 MB/s) - written to stdout [2456/2456]

OK
  1. Join the official source
1
echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/ubuntu $( lsb_release -c -s ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list

System will show:

1
deb [arch=amd64] https://repo.jellyfin.org/ubuntu bionic main

Then execute to update

1
sudo apt-get update

Install and start

Execute the following command to install:

1
sudo apt install jellyfin -y

This process will download Jellyfin and related media encoding libraries, etc. If the network is slow, it will still take a long time.

After installation, set it to boot up:

1
sudo systemctl enable jellyfin.service

System will show:

1
2
Synchronizing state of jellyfin.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable jellyfin

Now, startup Jellyfin:

1
sudo systemctl start jellyfin.service

Then you can open a browser from another machine (same as the LAN, my server IP address is: 192.168.1.90), visit Jellyfin’s management interface, and perform initial settings

1
http://192.168.1.90:8096/