Thursday, August 28, 2025
HomeGuest BlogsInstall Plex Server on Ubuntu 22.04 Command Line

Install Plex Server on Ubuntu 22.04 Command Line

Install plex on linux ubuntu 22.04; Through this tutorial, we will learn how to install and use plex on linux ubuntu 22.04.

The Plex Media Server organizes video, audio, and photos from a user’s collections and from online services, and streams it to the players.

How to Install Plex Server on Ubuntu 22.04 Terminal

Steps to install and use plex server on linux ubuntu 22.04 using command line or terminal:

  • 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

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

sudo apt update && sudo apt upgrade

Step 2 – Install curl wget

Then execute 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

Now, use 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

Then execute 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 executing 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 using the following command:

sudo systemctl status plexmediaserver

Step 6 – Enable and Start Plex

Now, enable and start plex server by using the following commands on command line:

sudo systemctl start plexmediaserver
sudo systemctl enable plexmediaserver

Step 7 – Enable Firewall

Once the enable and start plex, we need to enable firewall by opening port 32400 of firewall using the following command:

sudo ufw allow 32400

Step 8 – Use Plex

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

Conclusion

Through this tutorial, we have learned how to install and use plex on linux ubuntu 22.04.

Recommended Linux Ubuntu Tutorials

RELATED ARTICLES

Most Popular

Dominic
32244 POSTS0 COMMENTS
Milvus
80 POSTS0 COMMENTS
Nango Kala
6615 POSTS0 COMMENTS
Nicole Veronica
11787 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11833 POSTS0 COMMENTS
Shaida Kate Naidoo
6728 POSTS0 COMMENTS
Ted Musemwa
7009 POSTS0 COMMENTS
Thapelo Manthata
6684 POSTS0 COMMENTS
Umr Jansen
6697 POSTS0 COMMENTS