


sudo setfacl -R -m u:plex:rx /media/linuxbabe/ĭo this only if you’ve the media on your hard-drive I don’t recommend if you’ve some sensitive data.Īfter adding the media directories click on the Next button. sudo setfacl -m u:plex:rx /media/linuxbabe/įor single directory permission, run the command like this sudo setfacl -m u:plex:rx /media/linuxbabe/directory-nameĪs it is tempting to add the recursive flag (-R) that will provide read & execute permissions on each file & directories and their sub-directories. Run the command to give permissions to the Plex. Make sure you’ve the read & execute permissions otherwise it will not work. Now, provide the name for your Plex and check the Allow me to access box.Ĭhoose your library type, and navigate to media folder to add media directories.

You can also type the below address if the above can not redirect you. Configure Plex WizardĪfter doing these changes, you will be directed to do the initial setup. After it you can access the web interface by IP:32400. It will only require for first time setup. Here you’ve to provide your Plex TV account to sign in.įor security reason, if the Plex is already installed on the remote system, set up SSH by executing the below command ssh 10.20.39.45 -L 8888:localhost:32400Īfter it run the below command to access the Plex Web Interface It will redirect to the on the remote system by using SSH tunnel. You’ll be directed to the Welcome page of Plex as an initial setup. So, type 127.0.0.1:32400 in your browser and hit enter. Now, if you navigate to you’ll see the green padlock.Here you can see that Plex is listening to 0.0.0.0:32400 & 127.0.0.1:32401 I had to restart the plexmediaserver service for the changes to take effect. Navigate to Settings > Network and fill the appropriate fields as shown above. Navigate to and see the following screenshot. Our certificate is located in /var/lib/plexmediaserver/certificate.pfx and we need to change the ownership to plex user: sudo chown plex:plex /var/lib/plexmediaserver/certificate.pfx It will ask for a password twice, which will be used in Plex settings. certfile /etc/letsencrypt/live//chain.pem inkey /etc/letsencrypt/live//privkey.pem \ sudo openssl pkcs12 -export -out /var/lib/plexmediaserver/certificate.pfx \ Once the certificate has been created by certbot, we need to convert it to PKCS#12 format, since it is required by Plex Media Server.

Select 1: Spin up a temporary webserver (standalone) and press enter.įollow the instructions on your screen until it asks for your domain name: Now, let’s run certbot to issue a certificate for our server: sudo certbot certonly Sudo add-apt-repository ppa:certbot/certbot Installing certbot sudo apt-get install software-properties-common
