Plex is a powerful media server that allows you to stream your movies, TV shows, music, and photos to various devices. It provides a user-friendly interface and supports a wide range of platforms. In this tutorial, we will walk you through the process of installing Plex on Ubuntu.


Before you begin, make sure you have the following:

  • Ubuntu installed on your system
  • A stable internet connection
  • An account on the Plex website (optional, but recommended for additional features)

Step 1: Update System Packages

First, let’s update the system packages to ensure we have the latest versions:

sudo apt update
sudo apt upgrade -y

Step 2: Add Plex Repository

To install Plex, we need to add the Plex repository to our system:

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

Step 3: Install Plex

Now, let’s install Plex using the following commands :

sudo apt update
sudo apt install plexmediaserver -y

Step 4: Configure Plex

After the installation is complete, we need to configure Plex:

  1. Open a web browser and go to http://localhost:32400/web
  2. Sign in with your Plex account or create a new one
  3. Follow the on-screen instructions to set up your media library

Step 5: Access Plex

Once Plex is configured, you can access it from any device on your local network. Open a web browser and enter the following URL:


Replace with the IP address of your Ubuntu system.


Q: Can I install Plex on a different Linux distribution?

A: Yes, Plex is available for various Linux distributions. However, the installation process may differ slightly. Make sure to refer to the official Plex installation guide for instructions specific to your distribution.

Q: Can I access Plex remotely?

A: Yes, Plex allows you to access your media server remotely. You can set up remote access by following the instructions provided in the Plex settings. Keep in mind that you may need to configure port forwarding on your router for remote access to work properly.

Q: Can I install Plex on a headless Ubuntu server?

A: Yes, you can install Plex on a headless Ubuntu server. After the installation, you can access the Plex web interface from any device on your network by entering the server’s IP address followed by the port number (default is 32400).


Congratulations! You have successfully installed Plex on Ubuntu. Now you can organize and stream your media collection with ease. Enjoy!

Note: If you encounter any issues during the installation process, refer to the official Plex installation guide for troubleshooting steps.