How To Install Plex Media Server On Ubuntu 20.04

In this tutorial post, we are going to show you the method for installing Plex Media Server on Ubuntu 20.04 LTS. We will walk through the simple process to install Plex Media Server in Ubuntu.

What is Plex Media Server?

Plex is a streaming media server. You can use Plex Media Server to organise your music, videos, music and so on. You can also stream your media to your computer, laptop, mobile phone, TV or tablet without any issue.

How To Install Plex Media Server on Ubuntu 20.04

We’ll enable the Plex official repository so that we can install the package with apt on Ubuntu based operating systems. Plex is proprietary software, and it is not included in the Ubuntu repositories.

At first, you need to add the Plex APT repository to your Ubuntu system. After adding Plex repository in your Ubuntu, you need to import the repository’s GPG key too:

echo deb public main |sudo apt-key add
sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Once the repository is enabled, You need to update the apt package list.

sudo apt update

After updating and you can install the latest version of Plex Media Server with the following command:

sudo apt install plexmediaserver

You need to wait for a while for the completion of the installation process. After everything is done, you can  check the status by running following command:

sudo systemctl status plexmediaserver

You will see the output similar like below:

plexmediaserver.service - Plex Media Server
    Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
    Active: active (running) since Thu 2021-10-31 13:05:55 UTC; 54min ago

Now, you can create the directories that will store all of the Plex media files:

sudo mkdir -p /opt/plexmedia/{movies,series}

After creating the directory, you need to enable the permission for the default user in Plex.  Default user in the Plex Media Server is plex. Users must have read and execute permissions to the media files and directories.

sudo chown -R plex: /opt/plexmedia

Now, you can start logging into the Plex media server from your browser by typing http://yourserverip:32400/web, and you will be redirected to the plex website.

Leave a Comment