Plex Media Server | Install on Ubuntu 22.04 LTS

Posted September 7, 2022 by Josh ‐ 2 min read

Plex was started as a hobby project but with time, it developed into a professional streaming server software to manage various types of media files.


What’s up, guys!!! In this tutorial, we’ll walk you through installing Plex Media Server on Ubuntu 20.04 LTS. Plex is a streaming media server that lets you organize your video, music, and photo collections and stream them to all of your devices at any time and from anywhere.

PLEX Link:


Update Ubuntu & Install Dependencies

Begin by running the following commands as a non-root user to update your package listings and install Plex Server dependencies:

sudo apt update && sudo apt upgrade -y
sudo apt install apt-transport-https curl wget -y

Install Plex Server

Inport GPG Key:

sudo wget -O- | gpg --dearmor | sudo tee /usr/share/keyrings/plex.gpg

Import Repository:

echo deb [signed-by=/usr/share/keyrings/plex.gpg] public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Refresh Repository

sudo apt update


sudo apt install plexmediaserver -y

Verify the status of Plex Server services using the systemctl command:

systemctl status plexmediaserver.service

Configure Firewall

Check Firewall Status:

sudo ufw status

Enable Port 32400 for Plex Server Service outside access:

sudo ufw allow 32400

Enable Port 22 for OpenSSH:

sudo ufw allow OpenSSH

Enable Firewall:

sudo ufw enable

Type “y” as the response

Testing Plex Server

Now you can access the Plex Media Server by accessing the localhost or IP address in your web browser.



http://<ip address>:8888/web

Follow the Plex Turtorial to finalize the configuration.