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.

Installation

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: plex.tv

Commands

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- https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /usr/share/keyrings/plex.gpg

Import Repository:

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

Refresh Repository

sudo apt update

Install:

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://localhost:8888/web

or

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

Follow the Plex Turtorial to finalize the configuration.