5 Easy Ways to Install Plex Media Server on Ubuntu

Plex Media Server is a dedicated server that centralizes all a user’s digital media by organizing it into a structured library. Plex partners with content distributors to provide TV shows, live channels, and ad-supported movies. On Debian-based Linux distributions like Ubuntu, Plex, other than the media server, comes with Plex Photos and Plexamp. For Ubuntu, there are five ways to install Plex Media Server, which this guide will cover.

Method 1: Through the Plex Media Server .deb File

A .deb file is a standardized package format for Debian-based Linux distributions that comes with precompiled software along with its metadata, enabling structured, dependency-aware, and manageable installation. So, in case of Plex media server, download its .deb file from its official site after selecting the operating system and distribution:

Downloading Plex Media server .deb file on Ubuntu from its official site

Alternatively, use the following command below to download Plex .deb file using the terminal:

wget -O plexmediaserver.deb "https://downloads.plex.tv/plex-media-server-new/1.42.1.10060-4e8b05daf/debian/plexmediaserver_1.42.1.10060-4e8b05daf_amd64.deb"

Downloading Plex Media server .deb file on Ubuntu via terminal

Now use Ubuntu’s default package installer to install Plex via the .deb file:

sudo apt install ./plexmediaserver.deb

Installing Plex Media Server via .deb file using apt package installer on Ubuntu

After the installation, just for verification, check if the service for the Plex Media server is added in the System by executing the following command:

sudo systemctl status plexmediaserver

Checking Plex media server status on Ubuntu to verify its installation

Method 2: Through Plex Media Repository

By default, Plex cannot be installed via apt as it does not contain its repository, so in this scenario, to manually add the Plex repository, first get the validation key by executing:

curl https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /usr/share/keyrings/plexserver.gpg > /dev/null

Adding Plex media Server repository GPG key in Ubuntu

Now, add the Plex Media Server repository in Ubuntu by executing:

echo deb [arch=amd64 signed-by=/usr/share/keyrings/plexserver.gpg] https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Adding Plex media Server repository in Ubuntu

To successfully integrate the Plex repository in apt refresh its packages list by running the update command:

sudo apt update

Updating apt package list of Ubuntu to integrate Plex Media Server

Now, install Plex Media Sever using the apt package installer:

sudo apt install plexmediaserver -y

Installing Plex Media Server via its repository using apt package installer on Ubuntu

Method 3: Through Flatpak App Installer

Plex comes with several apps, which include Plex desktop, Plex photos, Plexamp and Plex dash so to install the desktop version on Ubuntu, there are third-party app installers prescribed by Plex. To install Plex via the Flathub repository using the Flatpak app installer, execute:

flatpak install flathub tv.plex.PlexDesktop

Installing Plex Media Server using Flatpak package installer on Ubuntu

Since it is the desktop version so to launch Plex, use either the application menu or execute the below command:

flatpak run tv.plex.PlexDesktop

Launching Plex Media Server on Ubuntu installed via Flatpak

Method 4: Through Snap Package Installer

Another way to install Plex media server on Ubuntu is via the snap app installer, which is a universal Linux package management system that delivers containerized applications with all dependencies bundled:

sudo snap install plexmediaserver

Installing Plex Media Server using Snap package installer on Ubuntu

To verify the Plex media server, I have listed the snap installed apps in Ubuntu; this way, I can check the version and publisher of the application:

sudo snap list

Listing Snap installed apps on Ubuntu to verify Plex Media installation

Method 5: Through the Ubuntu App Center

The Ubuntu App Centre is primarily a GUI version of the Snap store, so in short, if one wants to install apps using the Ubuntu GUI, then this is one of the methods. To install the Plex Media server, search for Plex in the search bar, and there will be three options. From there, select either the desktop version or the media server:

Searching for Plex Media Server on Ubuntu via its Ubuntu App Center

Now click on Install to proceed with Plex installation:

Installing Plex Media Server on Ubuntu via its Ubuntu App Center

To launch the Plex Media server, open up the browser and use the following address:

http://localhost:32400/web

Launching Plex Media server on Ubuntu from Browser

Note: Other Plex apps like Plex desktop can be installed via both Snap and Flatpak, whereas Plexamp can be installed only through Flatpak.

How to Configure Plex Media Server on Ubuntu

Launching Plex for the very first time requires a bunch of configuration steps, which are easy to follow. Before launching the Plex media server, it is better to check whether its service is running or not, and for that, execute:

sudo systemctl status plexmediaserver

Checking Plex media server status on Ubuntu to verify its installation

Just in case the Plex media service is inactive, which is quite rare, first enable it and then start it using the commands below:

sudo systemctl enable plexmediaserver
sudo systemctl start plexmediaserver

Step 1: Creating Plex Media Account

To start the Plex Media Server, use the system IP address along with port 32400, which is allowed by default in the firewall. Next, either manually create an account by email or use the already logged-in Apple or Google account:

http://<system-ip-address>:32400/web

 

Creating Plex Media server account on Ubuntu

Next, a page for Plex media will open, containing a briefing on how this media application works and its features, so click on Get It to proceed:

Page containing a briefing on how this media application works and its features on Ubuntu

Now, in the first tab, write the desired name for the account and click on Next to Proceed:

Setting up Plex Media server account name on Ubuntu

Step 2: Adding Libraries in Plex on Ubuntu

In the next tab, add the libraries for your media by clicking on the Add Library, in short add the directory where all the content is placed:

Adding Libraries in Plex Media Server in Ubuntu

In the Add Library option, select the type of content here. Multiple libraries can be added based on the content type:

Selecting library content type for Plex Media server on Ubuntu

Now, select the directory where the content exists and then click on Add to proceed:

Selecting library directory for Plex Media server on Ubuntu

If the selected directory has multiple sub-directories, then they can also be chosen. Once the selection is completed, click on Add Library:

Adding Libraries in Plex Media Server in Ubuntu

Once the library is added to the Plex Media Server, click on Next to proceed:

Adding Libraries in Plex Media Server in Ubuntu

Step 3: Adding Plex Apps

Plex Media Server also comes with multiple apps like Plexamp, Plex Photos, and Plex Dash, which can also be added. To install its other apps, click on Get Plex Apps, select the operating system, download, and once completed, click on Done:

Adding Plex Apps in Ubuntu

Now everything is set up on the left side, and there is a menu from which Plex TV can be navigated:

Plex Media Server in Ubuntu

Conclusion

Plex Media Server comes with three different apps, which include Plex desktop, Plexamp, Plex Photos, and Plex Dash. This guide discussed five ways to install the Plex Media server on Ubuntu, which include using the Plex .deb file, the Plex repository, and app installers like Snap and Flatpak.

Index
Scroll to Top