Comments on How to Install Plex Media Server on CentOS 7
In this tutorial, we will show you step-by-step how to install and configure Plex media server on your CentOS 7 server. Plex is a client-server media software suite. It has two main components, plex media server, and plex player.
5 Comment(s)
Comments
Hi I appreaciate the nice work on this tutorial. I do have a few comments.
1. Adding the repo without importing the key
Instead of forcing Yes to all questions you should include:
rpm --import https://downloads.plex.tv/plex-keys/PlexSign.key
Note: GPG is there to authentificate the repository, so import the key only when you trust the network. Not randomly by adding -y option.
2. Adding the repo as enabled by default
It is a common practice not to enable 3rd party repos by default. They are used for specific packages and without priorities or protection can be used to spoof system repositories. CentOS Wiki on Yum
In this case it is easy to use --enablerepo option and leave enabled=0 (As Plex.tv does automatically upon installaton of RPM).
echo "*** Installing Plex Media Server"yum --enablerepo=PlexRepo install plexmediaserverecho "*** Updating Plex Media Server"yum --enablerepo=PlexRepo update plexmediaserver
3. Editing Services manually and all together (Web, DLNA, Local Network Discovery, Remote Control)
Here is a list of commands on how to add them through the interface: https://pastebin.com/821LCUrN
Also it is irresponsible to open all ports Plex uses in case people are not running the server on local network behind a different firewall. This is why I separate them according to the source: Plex.tv page
Run to have Web and remote access:
firewall-cmd --add-service=plexmediaserver --permanent
Run to have LAN and direct play:
firewall-cmd --add-service=plexmediaserver-dlna --permanent
firewall-cmd --add-service=plexmediaserver-discovery --permanent
Run to enable remote control with Plex Companion:
firewall-cmd --add-service=plexmediaserver-control --permanent
This is a very detailed docs. I read up from the Plex site that you don't need to have to have an account with Plex. However, accessing the Plex Media Server from the local network always redirect to the Plex website and required to setup an account. That makes me not wanting to use Plex. Is there a way to use Plex locally without having to setup account?
This is a very helpfull tutorial, but there is an important thing missing.
If I just put http:/123.456.789.10:32400 I cannot clain this server for your account.
You need use:
ssh -L 32400:localhost:32400 [email protected]Thanks!
Good description!
It didn't work for me, I used following commands to get the firewall up and running. With firewall-offline-cmd
To add a new and empty service, use the --new-service option:
firewall-offline-cmd --new-service=myserviceConfigure the service:
firewall-offline-cmd --service=myservice --set-description=description firewall-offline-cmd --service=myservice --set-short=description firewall-offline-cmd --service=myservice --add-port=portid[-portid]/protocol firewall-offline-cmd --service=myservice --add-protocol=protocol firewall-offline-cmd --service=myservice --add-source-port=portid[-portid]/protocol firewall-offline-cmd --service=myservice --add-module=module firewall-offline-cmd --service=myservice --set-destination=ipv:address[/mask]Alternatively you can add a new service using an existing file:
firewall-offline-cmd --new-service-from-file=myservice.xmlThis adds a new service using all settings from the file including the service name.
firewall-offline-cmd --new-service-from-file=myservice.xml --name=mynewserviceThis adds a new service using the service settings from the file. But the new service will have the name mynewservice.