Install and setup Plex Media Server on Ubuntu 22.04 LTS – Linux Shout

Learn the simple commands to install Plex Media Server on  Ubuntu 22.04 LTS Jammy JellyFish for creating your streaming server.

Plex was started as a hobby project but with time, it developed into a professional streaming server software to manage various types of media files. Users can install and use it to access their videos, music, and images remotely using the internet or locally over a local network; even you can share them with friends while on the move.

The basic version of the Plex Media Server can be used free of charge, but it only has a limited range of functions. You can get additional functions by purchasing Plex Pass at $4.99/month. As is usual with paid subscriptions, the price decreases as the term increases. The annual subscription costs $39.99 annually whereas if you are already a user of Plex and want a lifetime commitment then it offers a lifelong subscription for a one-time fee of $119.99.

What do you need to get started?

Ubuntu 22.04 LTS Jammy JellyFIsh Server
A non-root sudo user at least
Active internet connection

1. Update APT cache

First, we should perform the system update on the Linux system before using its package manager. This will rebuild the system cache and also install any update, if available. Along with that, install “CURL” as well.

sudo apt update

Along with that install some tools we required before performing any further configuration.

sudo apt install apt-transport-https curl

2. Add Plex Media Server repository on Ubuntu 22.04

The user can download directly the binary of the Plex server to install it on Ubuntu 22.04, however, the best way is to use its official repository. Here are the steps to add the repo:

Add GPG Key:

curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -

Next, use the given command to add the repo:

echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Run system update

sudo apt update

3. Command to Install Plex for Ubuntu 22.04 Server

Once we have everything set, it becomes very easy to install the Plex Media server just by using the APT Package Manager. Here is the command:

sudo apt install plexmediaserver

When it asks to update the Plex Media configuration file, then press Y and hit the Enter key.

Command to Install Plex for Ubuntu 22.04 Server

4. Check Plex Service Status

To confirm that the Plex media server is running the background fine. Run the status command.

sudo systemctl status plexmediaserver

If it is not active then use the given command to start and enable it.

sudo systemctl enable --now plexmediaserver

5. Access Plex Media Settings Web Page

Now, let’s access the web interface of the Plex Media Server to configure it further. For that simply open any web browser that can access the IP address of the Ubuntu 22.04 server where you have installed the Plex. The format is given below:

Plex server Port number is 32400

http://server-ip-address:32400/web

Note: Replace the server-IP address with your original server Ip-address.

Also, if you are using the Firewall, then open port 32400 in that:

sudo ufw allow 32400

——————————————————————————-

For remote Ubuntu 22.04 Server

If your Ubuntu is running on some remote server, then to access the Plex configuration page for further setup, open an SSH Tunnel to remove the server on your local PC to access the Plex web setup.

ssh remote-server-ip -L 8888:localhost:32400

Then on your local machine, you can use:

http://localhost:8888/web

——————————————————————————–

6. Register your Media Server

Once you have the Plex Web, the user has to register the server in the Plex account he or she owns by logging in. If you don’t have an account with Plex, then use any given method to register one.

Access Plex Media Settings Web Page

You will see a glimpse of Infographics showing how the Plex Works. Well, simply click on the GOT IT! button to move forward. 

Plex Works details

7. Plex Pass on Ubuntu 22.04

This is an optional thing, if you want some advanced feature then subscribe to Plex pass plans, otherwise close it; because we can do this later.

Plex Pass on Ubuntu 22.04

8. Server Setup

To identify your Media server easily over the network and in case you have multiple Plex servers under a single account, give some user-friendly name to it. Here we are adding –h2smedia. You can give whatever you want. Further, those of you who are planning to access the Plex outside their home network, don’t forget to select the box given for “Allow me to access my media outside my home”, if not selected by default.

Media Server Setup H2smedia Ubuntu

9. Add Media Library

To add your media files for accessing them through Plex, click on the “Add Library” button.

Add Media Library

Select the category of Media files that you want to add such as Music, Photos, and Videos. Here we are selecting Music.

Select Music Category Plrx on Debian server

 Click on the “Browser for Media Folder” button and then navigate to the folder where you have your Audio files.  Select that and then click on the “Add Library” button. Add folders to your Library Note: In case even after adding the media files, the same is not showing on the Plex Web Client to play, then give the rights of the folder where you have your content to the Plex dedicated user.

sudo chown -R plex:plex /media/your-content-folder/

Replace /media/your-content-folder/ with the your actual folder.  

10. Plex Media Web Client

Once you have added the media files, you will have that on the Plex Web-based client either on your browser or devices. Apart from that, we can also watch Live TV, Movies & Shows, Web shows, and other content offered by the Plex itself. Most Popular TV showx and movies LIVE TV Plex  

11. Nginx as reverse Proxy for Plex Media Server  

Nginx is a web server and also can act as a reverse proxy to secure and give better performance to your web applications, here it is Plex Media server. Moreover, its installation is super easy because the packages we need are already available in the Ubuntu 22.04 repository. Hence just run the given command:

sudo apt install nginx

Start and enable the Nginx service

To make sure the Nginx could start automatically if crashed or on system reboot, use the given command that not only start its service but also mark it enable to start with system boot.

sudo systemctl enable --now nginx

To confirm the service status:

systemctl status nginx

Create Nginx Configuration file for Plex

Once the Nginx is up and running, let’s create a configuration file that will tell the Nginx what is Ip-address and the port number where the Plex is running, and what port Nginx must use to show it on the browser; so that the user can access it easily.

sudo nano /etc/nginx/conf.d/plexmediaserver.conf

Now, copy-paste the below-given lines. In this change the server_name value to either fully qualified domain or if you want to only access the Plex via the Ip-address then instead of giving domain name just use IP-address. For example server_name demo.how2shout.com change to whatever domain name you want to use. However, make sure that A record in your DNS is already pointed towards your server-IP-address where you have installed the Plex. In another scenario, if you want to use the reverse proxy with only IP then instead of a domain name, remove the # and replace server-ip with your IP address.

server {
listen 80;
server_name demo.how2shout.com;
#server_name server-ip; location / {
proxy_pass http://127.0.0.1:32400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #upgrade to WebSocket protocol when requested
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
} 

Save the file by pressing Ctrl+O, Hit the Enter key, and then to exit use: Ctrl +X. To check the configuration file we have created is error-free run:

nginx -t

After that reload the Nginx service.

sudo systemctl reload nginx

Now, open the browser and start accessing your Plex media server via Domain name or Ip-address on the default HTTP 80 port.

12. How to update Plex Media Server – Ubuntu 22.04

Well, as we have used the official repository of Plex to install it on Ubuntu 22.04, we don’t need to do anything additional to update it. Running the simple system update and upgrade command will do its work.

sudo apt update 
sudo apt upgrade

13. Uninstall or Remove Plex 

Those who are not interested anymore in this free media server then can completely remove it using the given commands:

sudo systemctl stop plexmediaserver
sudo apt remove plexmediaserver*

To remove its repo:

sudo rm /etc/apt/sources.list.d/plexmediaserver.list

To remove the Nginx server:

sudo systemctl stop nginx
sudo apt remove nginx*

In this way, we can install and use Plex Media Server on Ubuntu 22.04 Jammy JellyFish. To know more information about it, you can refer to the official Plex Knowledge page.  

Other Articles:

NGINX vs. Apache: Comparision of web servers to host your website
3 Ways to Install VLC Media Player on Debian 11 Bullseye Linux    
Use Snap command to install Plex Server on Ubuntu 
Install Plex Media Server on Debian 11 Bullseye

Source of this news: https://www.how2shout.com/linux/install-and-setup-plex-media-server-on-ubuntu-22-04-lts/

Related posts:

Rights group says website attacked during commemoration of killings - Philstar.com
MANILA, Philippines — Local human rights watchdog Karapatan on Thursday decried renewed cyberattacks against its website at karapatan.org. In a statement, the rights group said this ca...
Two Charged in SIM Swapping, Vishing Scams – Krebs on Security - Krebs on Security
Two young men from the eastern United States have been hit with identity theft and conspiracy charges for allegedly stealing bitcoin and social media accounts by tricking employees at wireless phone ...
Glenmark Life Sciences IPO Fell 45. 08 Times With Day 3 - BloombergQuint
The Rs 1, 514-crore initial public offering of all Glenmark Life Sciences Ltd. ’s witnessed strong buyer interest on the third on top of that final day of firms. The issue most likely was sub...
Five reasons to use residential proxies for web scraping - Tech Digest
Residential proxies are one of the most creative and efficient tools you can have for your company’s digital toolbox. People who require scraping the web for the business need residential proxies the...
Data Center Proxies vs Residential Proxies: Which Is Best? - Chiang Rai Times
Proxies open a world of possibilities for your entrepreneurship goals. Through them, censored and restricted content comes within your reach in a click. With such benefits and more for your business,...
SECURE DIGITAL Times news digest: Android ML inference stack, MICROSOFT to acquire BoxBoat Technolog...
Operating system announced its updateable, fully-integrated ML inference stack towards developers to get built-in on-device inference essentials, optimal entire performance on all devices using co...
How to fix the 0x800f0831 Windows 11 update error - WindowsReport.com
by Vladimir Popescu Being an artist his entire life while also playing handball at a professional level, Vladimir has also developed a passion for all things computer-related. With an inna...
46 Best wifi router for multiple devices in 2021: According to Experts. - Game Polar
You could get any random wifi router for multiple devices, but if you’re looking for expert advice on choosing the best one for your needs then you’ve arrived at the right place. It doesn’t matter wh...
DCOM permissions error in go log 10016 - Win 10 Support - BleepingComputer
There's a variety of help out there to fix such a error, but when I started initially to do them I couldnt find the correct CSLID key in Regedit. It has one similar to keep in mind this, no lette...
ATG Danmon designs and integrates newsroom facilities for Alaraby TV - BroadcastProME.com
ATG Danmon upgraded the production control gallery and master control room, providing cabling, racks and interfaces where necessary. ATG Danmon has announced the completion of a large-scale upgrade t...
SUPPORT TALK WITH MIKE: Use CloudFlare to speed up your business own site - Washington Times Herald
There are three key components that are important when obtaining a host for your business net page: speed, security and scalability. A fast website can encourage search engine ranking, improve t...
Dallas Invents: 145 Patents Granted for Week of March 30 » Dallas Innovates - dallasinnovates.com
Dallas Invents is a weekly look at U.S. patents granted with a connection to the Dallas-Fort Worth-Arlington metro area. Listings include patents granted to local assignees and/or those with a N...
More In-Person Scouting Looks, Headlined by Frankie Montas' Sim Game - Fangraphs
Gary A. Vasquez-USA TODAY Sports Frankie Montas was a late scratch from his Saturday start and instead, on Sunday, threw in an early-morning sim game on Oakland’s backfields. Opposing scouts in atten...
Form S-1/A Freshworks Inc. - StreetInsider.com
As filed with the Securities and Exchange Commission on September 20, 2021Registration No. 333-259118UNITED STATESSECURITIES AND EXCHANGE COMMISSIONWashington, D.C. 20549AMENDMENT NO. 3TOFORM S-1REGI...
Apple will proxy Safe Browsing requests to hide iOS users' IP from Google - The Hacker News
Apple's upcoming iOS 14.5 update will come with a new feature that will redirect all fraudulent website checks through its own proxy servers as a workaround to preserve user privacy and prevent leaki...
Fieldbus Gateway Market Size 2021 Analysis by Top Key Players | Moxa,Antaira Technologies,ProSoft Te...
New Jersey, United States,- The Report on the global market for Fieldbus Gateway includes an in-depth analysis that covers the main regional trends, market dynamics and provides the market size at ...
Best Proxies for the United Kingdom - About Manchester
Internet may seem like a great place to find and browse content, but there is no guarantee that while you are doing it, nobody is watching you. Hackers can place malware anywhere on the internet and...
Best and Cheap VPS Cloud Server Hosting in Germany, Berlin, Frankfurt, Munich Provider Linux | Windo...
Searching for German VPS? Buy VPS Server Hosing Plans with Kassel, Deutschland, Berlin, Munich, Dusseldorf, Bremen, Cologne, Hamburg, Leipzig, Nuremberg, Stuttgart based IP offering Linux, Windows,...

IP Rotating Proxy Onsale

SPECIAL LIMITED TIME OFFER

00
Months
00
Days
00
Hours
00
Minutes
00
Seconds
First month free with coupon code FREE30