How to Install Plex Media Server on Ubuntu 18.04
In this instructional exercise we'll walk you through introducing Plex Media Server on Ubuntu 18.04.
Plex is a streaming media worker that allows you to coordinate your video, music, and photograph assortments and stream them to the entirety of your gadgets whenever and from anyplace.
In spite of the fact that this instructional exercise is composed for Ubuntu 18.04 Bionic Beaver similar advances can be utilized for Debian and Ubuntu 16.04 Xenial Xerus.
Prerequisites
You'll should be signed in as a client with sudo admittance to have the option to introduce bundles on your Ubuntu framework.
Install Plex Media Server
The simplest method to introduce and oversee Plex Media Server on Ubuntu 18.04 is by utilizing the Plex official archive. It requires no specialized information and it ought not take you over 20 minutes to introduce and arrange the media worker.
Follow the means underneath to introduce the Plex Media Server on your Ubuntu framework:
Start by bringing in the store's GPG key utilizing the accompanying twist order :
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
Add the Plex APT archive to your framework's product store list by giving:
echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
When the Plex store is empowered, update the well-suited bundle list and introduce the most recent rendition of the Plex Media Server with:
sudo apt install apt-transport-https
sudo apt update
sudo apt install plexmediaserver
To confirm that the Plex administration is running sort:
sudo systemctl status plexmediaserver
The yield should look something like this:
? plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2018-06-25 10:42:28 PDT; 35min ago
Process: 2544 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
Main PID: 2556 (sh)
Tasks: 56 (limit: 2321)
CGroup: /system.slice/plexmediaserver.service
Adjust the Firewall Rules
Since you have Plex introduced and running on your worker you need to ensure your firewall is arranged to permit traffic on Plex Media Server explicit ports.
In the event that you don't have firewall running on your framework you can avoid this part.
The accompanying advances expect that you are utilizing UFW to deal with your firewall:
Open your content manager of decision and make the accompanying UFW application profile:
/etc/ufw/applications.d/plexmediaserver
[plexmediaserver]
title=Plex Media Server (Standard)
description=The Plex Media Server
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp
[plexmediaserver-dlna]
title=Plex Media Server (DLNA)
description=The Plex Media Server (additional DLNA capability only)
ports=1900/udp|32469/tcp
[plexmediaserver-all]
title=Plex Media Server (Standard + DLNA)
description=The Plex Media Server (with additional DLNA capability)
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp|1900/udp|32469/tcp
Save the document and update profiles list:
sudo ufw app update plexmediaserver
Apply the new firewall rules by composing:
sudo ufw allow plexmediaserver-all
At long last check if the new firewall rules are applied effectively with:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN Anywhere
32400/tcp (plexmediaserver-all) ALLOW IN Anywhere
3005/tcp (plexmediaserver-all) ALLOW IN Anywhere
5353/udp (plexmediaserver-all) ALLOW IN Anywhere
8324/tcp (plexmediaserver-all) ALLOW IN Anywhere
32410:32414/udp (plexmediaserver-all) ALLOW IN Anywhere
1900/udp (plexmediaserver-all) ALLOW IN Anywhere
32469/tcp (plexmediaserver-all) ALLOW IN Anywhere
Configure Plex Media Server
Prior to beginning the Plex arrangement wizard how about we make the indexes that will store the Plex media documents:
sudo mkdir -p /opt/plexmedia/{movies,series}
The Plex Media Server runs as the client plex which probably peruse and execute authorizations to the media documents and indexes. To set the right proprietorship run the accompanying order.
sudo chown -R plex: /opt/plexmedia
You can pick any area to store the media documents, simply ensure you set the right authorizations.
Presently we can continue with the worker setup. Open your program, type http://YOUR_SERVER_IP:32400/web and you will be given the accompanying screen:
To utilize the Plex Media Server, you should make a record.
Press the Google, Facebook or Email catch to make a free Plex account. On the off chance that you need to get to premium highlights you can buy a Plex Pass plan.
When you join you will be diverted to the page with data about how Plex fills in as demonstrated as follows:
Snap on the Got it button.
On the following screen enter your Plex worker name, leave the Allow me to get to my media outside my home box checked, and click Next.
The following stage is to add a media library. Snap on the Add Library button.
When the popup window shows, select motion pictures as library type and snap Next.
In the subsequent stage click on the Browse for media envelope and add the way to the catalog that will contain the Movies media records, for our situation/select/plexmedia/films.
Snap on the Add catch and afterward on the Add Library.
You can add the same number of Libraries as you need.
Snap Next, at that point Done and you will be diverted to the Plex web dashboard.
Since you have finished the arrangement wizard, you can begin investigating Plex choices and all the things it can do.
Updating Plex Media Server
At the point when another adaptation is delivered you can refresh the Plex Media Server bundle through your work area standard Software Update apparatus or by running the accompanying orders in your terminal:
sudo apt update
sudo apt upgrade
Conclusion
You have figured out how to introduce Plex Media Server on your Ubuntu 18.04 machine and how to make a Media Library.
You would now be able to introduce the Plex application on your Android, iPhone, Smart TV, Xbox, Roku or some other upheld gadget. You can discover a rundown of upheld Apps and Devices on the Plex Downloads page or you can just introduce the application from the gadget's application store.
You ought to likewise look at the authority Plex Quick-Start guide and Plex Documentation page.
In the event that you have any inquiries, kindly leave a remark underneath.