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

Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of Tutsmake.com. My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including 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. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

Leave a Reply

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