How to Install Plex on Ubuntu 22.04

Plex is an American streaming media service and a client–server media player platform, made by Plex, Inc. The Plex Media Server organizes video, audio, and photos from a user’s collections and from online services, and streams it to the players.

In this tutorial, i am going to show you how to install and use plex on linux ubuntu 22.04.

How to Install Plex on Ubuntu 22.04

Follow the below given steps to install and use plex on linux ubuntu 22.04:

  • Step 1 – Update System Packages
  • Step 2 – Install curl wget
  • Step 3 – Install Plex Repository and Add GPG Key
  • Step 4 – Install Plex
  • Step 5 – Check Plex Status
  • Step 6 – Enable and Start Plex
  • Step 7 – Enable Firewall
  • Step 8 – Use Plex

Step 1 – Update System Packages

Run the following command on command line to update system package:

sudo apt update && sudo apt upgrade

Step 2 – Install curl wget

Run the following command on command line to instal curl and wget dependencies:

sudo apt install apt-transport-https curl wget -y

Step 3 – Install Plex Repository and Add GPG Key

Run the following command on command line to install plex 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

Run the following “wget” command for importing the GPG key to our Ubuntu 22.04 system:

sudo wget -O- https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /usr/share/keyrings/plex.gpg

Step 4 – Install Plex

Install plex by running the following command on command line:

sudo apt install plexmediaserver -y

Step 5 – Check Plex Status

Once the plex installation is completed, check the status of plex by running the following command:

sudo systemctl status plexmediaserver

Step 6 – Enable and Start Plex

Execute the following command on terminal to enable and start plex server:

sudo systemctl start plexmediaserver
sudo systemctl enable plexmediaserver

Step 7 – Enable Firewall

Once the enable and start plex, then need to execute the following command on terminal to enable firewall port 32400:

sudo ufw allow 32400

Step 8 – Use Plex

Finally, open browser and type http://localhost:32400/web.

Conclusion

In this tutorial, I have shown to you how to install and use plex on linux ubuntu 22.04.

More Tutorials

Leave a Comment