You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

Plex is a server for media streaming which enables to store all media content in one place and to use a client application to access them, for example another computer or a mobile device. Plex server organizes the uploaded content in a proper manner making them easy to be accessed by the client.

Plex can run on different operating systems including Windows, MacOS and Linux. In this guide, we are going to look at how to install Plex media server on Ubuntu 20.04/ Debian 10 system.

We are going to download the latest Plex media server for Ubuntu 20.04/ Debian 10 from Plex website.

Step 1: Download Plex Media Server Deb Package

Check the Downloads page for latest releases before you run the wget download command.

wget https://downloads.plex.tv/plex-media-server-new/1.20.4.3517-ab5e1197c/debian/plexmediaserver_1.20.4.3517-ab5e1197c_amd64.deb

Step 2: Installing Plex Media server on Ubuntu 20.04/ Debian 10

Once downloaded, change to the downloaded Plex media directory and install Plex by running the following commands:

$ sudo apt install ./plexmediaserver_1.20.4.3517-ab5e1197c_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'plexmediaserver' instead of './plexmediaserver_1.20.4.3517-ab5e1197c_amd64.deb'
The following NEW packages will be installed:
  plexmediaserver
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/81.1 MB of archives.
After this operation, 243 MB of additional disk space will be used.
Get:1 /root/plexmediaserver_1.20.4.3517-ab5e1197c_amd64.deb plexmediaserver amd64 1.20.4.3517-ab5e1197c [81.1 MB]
Selecting previously unselected package plexmediaserver.
(Reading database ... 34241 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.20.4.3517-ab5e1197c_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.20.4.3517-ab5e1197c) ...
Setting up plexmediaserver (1.20.4.3517-ab5e1197c) ...
PlexMediaServer install: PlexMediaServer-1.20.4.3517-ab5e1197c - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   New
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         video
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /tmp
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Transcoding HW:      Not found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
PlexMediaServer install: PlexMediaServer-1.20.4.3517-ab5e1197c - Installation successful.  Errors: 0, Warnings: 0
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for mime-support (3.62) ...

Step 3: Check Plex Media Server Status

After installation Plex Media server runs automatically. Check status as shown below:

$ sudo systemctl status plexmediaserver.service
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-11-13 10:45:39 CET; 23s ago
  Process: 1150 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_
 Main PID: 1152 (Plex Media Serv)
    Tasks: 111 (limit: 4581)
   Memory: 270.8M
   CGroup: /system.slice/plexmediaserver.service
           ├─1152 /usr/lib/plexmediaserver/Plex Media Server
           ├─1183 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/Python/bo
           ├─1230 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.2
           ├─1257 Plex Plug-in [org.musicbrainz.agents.music] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2
           ├─1310 Plex Plug-in [tv.plex.agents.music] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/Python/
           ├─1318 Plex Plug-in [tv.plex.agents.movie] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/Python/
           ├─1452 Plex Plug-in [com.plexapp.agents.themoviedb] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/
           ├─1524 Plex Plug-in [com.plexapp.agents.thetvdb] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/P
           └─1593 Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/Pyth

Nov 13 10:45:39 debian systemd[1]: Starting Plex Media Server...
Nov 13 10:45:39 debian systemd[1]: Started Plex Media Server.

Now enable Plex server to start automatically on system boot by running the below command:

sudo systemctl enable plexmediaserver.service

Confirm the service is enabled.

$ systemctl is-enabled plexmediaserver.service
enabled

If you are running an active firewall, ensure to open the port 32400 through the firewall as shown below:

sudo ufw allow 32400

Step 4: Configure Plex Media Server on Ubuntu 20.04 | Debian 10

Acces Plex Media server from your browser on port 32400 to configure it. On your browser, type http://<plex-media-server-ip>:32400/web. You should see a screen as shown where you are being prompted to sign in to plex.

Having signed in, click Got it at the bottom of the next page.

In the next page give your plex a name and also ensure that the box allow me to access my media outside my home is checked. Click Next

In the next page, add libraries. Click on ADD LIBRARY.

This will take you to a page where you choose libraries to add. Once you pick click Next. You can go back to add more libraries.

Go ahead to add folders to your library. Click on BROWSE FOR MEDIA FOLDER and once added click on ADD button at the bottom then on the next screen click on ADD LIBRARY. You can as many libraries as you can.

After adding your chosen libraries, click Next. You will see a screen telling you that all has been set up and directing you to get plex apps. Click DONE

In the next page, you will see all sources marked. Unmark any that you do not need and click FINISH SETUP at the bottom end. You will be taken to a screen as shown.

That’s it. You have successfully installed Plex Media Server on Ubuntu 20.04/ Debian 10. Enjoy! More interesting guides below for you

You can support us by downloading this article as PDF from the Link below. Download the guide as PDF