How to Install a Plex Media Server on Ubuntu 20.04 / Linux Mint 20

How to Install a Plex Media Server on Ubuntu 20.04 / Linux Mint 20

Plex is a media server that helps you organize videos, music, and photos and allows you to stream them to your device anytime and from anywhere.

Plex supports Linux, FreeBSD, macOS, Windows, and various NAS systems.

This guide will show you how to set up Plex Media Server on Ubuntu 20.04 / Linux Mint 20.

Install Plex Media Server

Plex Media Server installation is very simple, and straight forward. Plex Inc. offers deb packages from official repositories for Linux operating systems.

Add a Plex Repository

Import the GPG Plex repository key using the curl command.

sudo apt update

sudo apt install -y curl

curl | sudo apt-key add -

Add a Plex repository to your system.

echo "deb public main" | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Install Plex Media Server

Now, update the apt repository index and then install the latest version of Plex Media Server.

sudo apt update

sudo apt install -y plexmediaserver

The Plex Media Server package places the configuration repository in the /etc/apt/sources.list.d directory for rece] to receive updates. Because we have placed plexmediaserver.list in the repository directory, the installer can ask the question below to replace the file or save the existing file. Type Y to replace and then press Enter.

Configuration file '/etc/apt/sources.list.d/plexmediaserver.list'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** plexmediaserver.list (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/apt/sources.list.d/plexmediaserver.list ...

Start the Plex Media Server

Now, the Media Plex Server must be active and running, you check the status using the command below. If the service is stopped, use the sudo systemctl start plexmediaserver command to start it.

sudo systemctl status plexmediaserver


plexmediaserver.service - Plex Media Server
     Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2020-07-03 04:02:43 EDT; 50s ago
    Process: 2098 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" |>
   Main PID: 2100 (Plex Media Serv)
      Tasks: 111 (limit: 9488)
     Memory: 247.1M
     CGroup: /system.slice/plexmediaserver.service
             ├─2100 /usr/lib/plexmediaserver/Plex Media Server
             ├─2144 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-79e214ead>
             ├─2187 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Pr>
             ├─2217 Plex Plug-in [] /usr/lib/plexmediaserver/Resources/Plug-ins-79e214e>
             ├─2311 Plex Plug-in [com.plexapp.agents.thetvdb] /usr/lib/plexmediaserver/Resources/Plug-ins-7>
             ├─2631 Plex Plug-in [com.plexapp.agents.themoviedb] /usr/lib/plexmediaserver/Resources/Plug-in>
             ├─2705 Plex Plug-in [] /usr/lib/plexmediaserver/Resources/Plug-ins>
             ├─2706 Plex Plug-in [] /usr/lib/plexmediaserver/Resources/Plug-ins-79e214e>
             └─2802 Plex Plug-in [] /usr/lib/plexmediaserver/Resources/Plug-ins-79e2>

Jul 03 04:02:43 ubuntu2004 systemd[1]: Starting Plex Media Server...
Jul 03 04:02:43 ubuntu2004 systemd[1]: Started Plex Media Server.

Configure the Plex Media Server

Initial Configuration

Open your browser and access the Media Plex Server settings page by opening the URL below.

You will see the screen below. To use the Plex Media Server, you must create a Plex account or log in with an existing account or log in to a Google / Facebook / Apple account.


Create a Plex Account or Sign In to Plex account

After you register for a new / signed in account, you will be directed to the page below, where it shows How Plex Works. Click GOT IT.


How Plex Works

You might want to subscribe to Plex Pass which gives you many features such as Offline video, Watching and recording TV broadcasts, Upload Camera, Parental control, etc. Click the close button if you don’t want to subscribe to Plex Pass.


Plex Pass

On the next screen set the Server Plex name and click Next. Leave the box checked to Allow me to access my media outside the home.


Plex Media Server Name

Add Media Library

First, we will create a folder to place movies and tv shows. Here, for this demo, I will create a folder / movie and add it to the Plex media server as a library.

sudo mkdir /movies

sudo chown plex.plex /movies/


Add Library to Plex Media Server

Select the appropriate library type for your media folder and then name your library. Click NEXT.


Select Library Type

On the next screen, click BROWSE FOR MEDIA FOLDER.


Browse For Media Folder

Select the media folder manually or type the folder path then click ADD.

Choose the Media Folder

Finally, click the ADD LIBRARY.

Add Media Library

You will see additional libraries that we just added. Click NEXT.


Media Libraries

Click DONE to complete the Plex Media Setup.


Complete Plex Media Server Set up

Using Plex Media Server

After completing the Media Plex Server settings, you will see the media page shown below.


Click MORE on the page above to access the Media server.

To register your movie collection, you need to upload a movie to / movie. Then, click the three dots (⋮) next to your media library and then click Scan Library File.


Scan Library Files

Wait for a minute or two, movies you have uploaded should be listed in the Movies library.


Update Plex Media Server

Activate the Plex repository on your system by running the command below.

sudo sed -i 's/\#\ deb/deb/g' /etc/apt/sources.list.d/plexmediaserver.list

When a new version of Media Plex Server is released, you can update it with the following command.

sudo apt update

sudo apt --only-upgrade install plexmediaserver


That is all. You have successfully installed Plex Media Server on Ubuntu 20.04 / Linux Mint 20. The Plex player application is available for Android, iOS, Fire TV, Chromecast, Roku, and many more devices to play music, photos, videos from Plex Media Server.

Related posts

How to Install and Configure Redis on Ubuntu 20.04


How to Install TeamViewer on Ubuntu 20.04


How to install Grafana Enterprise Edition on Ubuntu Server 20.04


How to Install Mono on Ubuntu 20.04


How to Install the NoSQL Apache CouchDB Database on CentOS 8


How to make an on-the-fly flash drive with a bootable Linux distribution


How to Set Up Automatic Kernel Updates on Linux


How to Install TensorFlow on CentOS


How to Install Sublime Text 3 on Ubuntu 20.04