Install and Configure Plex Media Server Ubuntu 20.04 LTS
Hi, Friends welcome to TechNHIT. In this article, You will learn how to Install and Configure Plex Media Server on Ubuntu 20.04
Plex is a client-server media player system. Plex Media Server desktop application can able to run on Windows, macOS, and Linux. The server desktop application organizes your video, audio, and photo collections. Using Plex Media players you can access and stream your content collections. There are official clients available for mobile devices, smart TVs, and web apps.
Plex gives you one place to find and access all the media that matters to you, From personal media on your own server, to podcasts, web shows, and news, to streaming music, you can enjoy it all in one app, on any device.
So, in order to install the Plex Server prerequisite you needed, and the environment I used here.
- One Linux Box / VM / Container having Ubuntu 20.04LTS
- (You can use Raspberry Pi as your home media server, It’s very cost-effective. just you need a pi and external hard disk where you can store your media.)
Let’s go and logon to the system, and follow the steps.
Step-1) Downloading the Plex Media Server.
So, let’s open the terminal do update your package list using the apt update command.
sudo apt update
After updating the package list open up a web browser and type https://plex.tv then scroll down below in get started section click on the get plex link. It will take you to the download page.
You have to click on the plex media server. And then you choose your platform as I am going to install the plex on my ubuntu server so I select Linux and then you have to choose a distribution. Just copy the link.
Get back to your terminal and type the following command.
Step-2) Installing the Plex Media Server.
Now install the package using dpkg command.
Sudo dpkg -I plexmediaserver_126.96.36.19952-xxxxxxx
Here you can see the plex media server is unpacking and installing into your system.
After completing the installation, you can see the service status. Whether plex is running or not using
systemctl status plexmediaserver.service
it’s running and active.
Step-3) Enabling Plex Repository.
By enabling the official Plex repo, you can update Plex on Ubuntu with apt package manager. The Plex deb package ships with a source list file. To see a list of files installed from a package, run dpkg with -L flag.
sudo dpkg -L plex media server
Now open the following source list file and uncomment the line to get updates from Plex.
sudo nano /etc/apt/sources.list.d/plexmediaserver.list
Also, you need to add the plex public key.
wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -
Now you can able to update your plex package list type command:
sudo apt update.
Here you can see plex repo has been added to your source list.
Now you can view the plex server web access port by using netstat command.
sudo netstat -lnpt | grep Plex
Here you can see Plex server listening port 32400.
Step-4) Finally Configuring the Server through Web-based Management setup.
Now open up your browser and type localhost followed by 32400 port forward-slash web.
It will take you to the Plex web interface, which redirects you to https://app.plex.tv because you need to sign in with a plex.tv account.
You can choose any options listed here to login, or you may create a new account by clicking sign up.
Note that if your Plex is installed on a remote Ubuntu 20.04 server, you need to set up a SSH tunnel by executing the following command on your local computer. Replace <REMOTE IP Address> with your IP address of the remote Ubuntu server.ssh <REMOTE IP ADDRESS> -L 8888:localhost:32400
Then you can access Plex web interface via the following URL.http://localhost:8888/web
After sign in it will take back you to your local server. For finalizing setup. Here you can see the mechanisms of the Plex server and how it works.
Here you can see the server name by default it will your hostname. you may modify as per your suitable name.
Allow me to access my media outside my home. Let it by default to access your media outside the home directory.
Now click on the Next button. And add your library directory.
Browse for your media folder, you can see the directory list here. I have copied some movies inside my plex home directory. And I am going to add this. And finally, click on the add library.
Now you are on the home screen. Click on more link to view your own server library. And here it is. I can access my server content. Plex automatically decorates your movie’s thumbnail by its name. it’s very cool.
Click on the movie to start your show and enjoy it!!!! It’s really very cool..
Hope this article helpful to you. Leave comments if you have any questions. Thank you.