BACK TO LINUX ADMIN TRACK
LINUX SYSADMIN•2020-10-03•5 MIN READ

Install and Configure Plex Media Server Ubuntu 20.04 LTS

Hi, Friends welcome to TechNHIT. In this article, You will learn how to Install and Configure Plex Media Server on Ubuntu 20.04

Key Architecture Takeaways

  • ›
    Point 1: Production blueprint for Install and Configure Plex Media Server Ubuntu 20.04 LTS on Linux infrastructure.
  • ›
    Point 2: Covers root privilege management, daemon supervision via systemd, and secure file operations.
  • ›
    Point 3: Applies to LTS releases (Ubuntu 24.04/22.04 LTS, Debian 12 Bookworm).
Notice

Enterprise Compatibility Update (2026 / LTS)

While these fundamentals apply directly to existing deployments, modern installations on Ubuntu 22.04 and 24.04 LTS use systemd-resolved, nftables for packet filtering, and modern OpenSSH 9+ with Ed25519 cryptography.


Hi, Friends welcome to TechNHIT. In this article, You will learn how to Install and Configure Plex Media Server on Ubuntu 20.04

Plex is a client-server media player system. Plex Media Server desktop application can able to run on Windows, macOS, and Linux. The server desktop application organizes your video, audio, and photo collections. Using Plex Media players you can access and stream your content collections. There are official clients available for mobile devices, smart TVs, and web apps.

Plex gives you one place to find and access all the media that matters to you, From personal media on your own server, to podcasts, web shows, and news, to streaming music, you can enjoy it all in one app, on any device.

*So, in order to install the Plex Server prerequisite you needed, and the environment I used here.*

- One Linux Box / VM / Container having Ubuntu 20.04LTS - (You can use Raspberry Pi as your home media server, It's very cost-effective. just you need a pi and external hard disk where you can store your media.)

Let's go and logon to the system, and follow the steps.

Step-1) Downloading the Plex Media Server.

So, let's open the terminal do update your package list using the apt update command.

bash
sudo apt update

After updating the package list open up a web browser and type https://plex.tv then scroll down below in get started section click on the get plex link. It will take you to the download page.

Img1Img1

You have to click on the plex media server. And then you choose your platform as I am going to install the plex on my ubuntu server so I select Linux and then you have to choose a distribution. Just copy the link.

Img2Img2

Get back to your terminal and type the following command.

bash
wget https://downloads.plex.tv/plex-media-server-new/1.20.1.3252-a78fef9a9/debian/plexmediaserver_1.20.1.3252-a78fef9a9_amd64.deb

Img3Img3

Step-2) Installing the Plex Media Server.

Now install the package using dpkg command.

bash
Sudo dpkg -I plexmediaserver_1.20.1.3252-xxxxxxx

Img3Img3

Here you can see the plex media server is unpacking and installing into your system.

After completing the installation, you can see the service status. Whether plex is running or not using

bash
systemctl status plexmediaserver.service

Img3Img3

it's running and active.

Step-3) Enabling Plex Repository.

By enabling the official Plex repo, you can update Plex on Ubuntu with apt package manager. The Plex deb package ships with a source list file. To see a list of files installed from a package, run dpkg with -L flag.

bash
sudo dpkg -L plex media server

Now open the following source list file and uncomment the line to get updates from Plex.

bash
sudo nano /etc/apt/sources.list.d/plexmediaserver.list

Img3Img3

Also, you need to add the plex public key.

bash
wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -

Now you can able to update your plex package list type command:

bash
sudo apt update.

Here you can see plex repo has been added to your source list.

Img3Img3

Now you can view the plex server web access port by using netstat command.

bash
sudo netstat -lnpt | grep Plex

Img3Img3

Here you can see Plex server listening port 32400.

Step-4) Finally Configuring the Server through Web-based Management setup.

Now open up your browser and type localhost followed by 32400 port forward-slash web.

Img3Img3

It will take you to the Plex web interface, which redirects you to https://app.plex.tv because you need to sign in with a plex.tv account.

Img3Img3

You can choose any options listed here to login, or you may create a new account by clicking sign up.

<blockquote>

Note that if your Plex is installed on a remote Ubuntu 20.04 server, you need to set up a SSH tunnel by executing the following command on your local computer. Replace <REMOTE IP Address> with your IP address of the remote Ubuntu server.

bash
ssh <REMOTE IP ADDRESS> -L 8888:localhost:32400

Then you can access Plex web interface via the following URL.

bash
http://localhost:8888/web

</blockquote>

After sign in it will take back you to your local server. For finalizing setup. Here you can see the mechanisms of the Plex server and how it works.

PlexPlex

Here you can see the server name by default it will your hostname. you may modify as per your suitable name.

PlexPlex

Allow me to access my media outside my home. Let it by default to access your media outside the home directory.

Now click on the Next button. And add your library directory.

PlexPlex

PlexPlex

PlexPlex

Browse for your media folder, you can see the directory list here. I have copied some movies inside my plex home directory. And I am going to add this. And finally, click on the add library.

PlexPlex

Now you are on the home screen. Click on more link to view your own server library. And here it is. I can access my server content. Plex automatically decorates your movie's thumbnail by its name. it's very cool.

Plex Media ServerPlex Media Server

Click on the movie to start your show and enjoy it!!!! It's really very cool..

Hope this article helpful to you. Leave comments if you have any questions. Thank you.

TN
TechNHIT Engineering Team
Autonomous Infrastructure & Linux Kernel Lab
WATCH COMPANION
Install and Configure Plex Media Server Ubuntu 20.04 LTS | TechNHIT Linux Admin | TechNHIT