Install 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

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *