Skip to content
PhysK edited this page Jan 22, 2020 · 2 revisions

.


Time To Deploy Plex

Table of Contents: Plex

Official Logo

About Plex

Plex lets you stream your media anywhere, on any device.

And, it’s really simple to start using and here is how it works:

  1. Install and run the Plex Media Server on a computer (or compatible NAS device) where all your media is stored and managed in movie, TV show, home video, music, and photo libraries.
  2. Install and open the Plex App on virtually any device—smartphone, tablet, smart TV, streaming device, game console, personal computer, or any browser.
  3. Wherever you are, press play, sit back, and enjoy your media as it streams from the Plex Media Server to your device.

Plex Simple Matrix Chart

Accessing Plex via PlexGuide

Once deployed via Docker, you can access Plex through:

Installing Plex via PTS

STEP 1: Launch PlexGuide

Select the following options once PTS is loaded: PTS Application Suite > Media Servers > Plex

STEP 2: Is Your Server a Remote Server?

This question is very important because there are two ways PlexGuide will install your server. If you have a REMOTE SERVER, you will be able to claim it via a code (and must). If it's a local server within your reach, you will claim it via http://ipv4:32400. If you are conducting a local install (click here to skip downward)

STEP 3: (Remote Only) Do you need to Claim your Server?

  • NO - [Click Here] to Skip this Portion

    • Only if your Server is already working/claimed!
  • YES

    • First time setup
    • Failed prior setup

STEP 4: (Remote Server - First Claim) Claiming the Server

Follow the instructions by going to http://plex.tv/claim

CLICK the copy to clipboard button. Do not copy and paste! The copied item will provide lowercase letters (which the displayed one does not). You have under 5 minutes to claim the server or you must repeat the process!

STEP 5: Select a Plex Version

You can select the latest version of Plex or an older/custom version. If you select an older/custom version, please follow the instructions; copy and paste the tags per the instructions, and the container for you will download.

Older/Custom Versions of Plex

Follow this if only using older/custom versions of Plex. IF NOT, skip down below!

STEP 6: Visit & Configure Your Plex Server

Remote Users Only: Follow the instructions on the picture below! If fail to do so, PLEX will be unable to see your server properly! It will work going to your ip or domain, but your users will always see your server offline or indirectly!

Local Users: Ignore this picture and skip below!

STEP 7: WebTools

From here, you will be able to install WebTools; an unofficial plugin for PLEX that has a variety of tools and enables an unofficial app store for PLEX. Learn more about it here

STEP 8: Plex Addresses

Visit Plex via the following address provided to you! A twist though, insure that you put a /web in front of whatever! If you do not, you will get a garbage XML page. If you

If you can see your PLEX Server, skip section below and [CLICK HERE] or scroll down. Generally, ONLY REMOTE USERS have PROBLEMS!

If your having problems claiming or seeing your server, view the section directly below for other claims methods!

Below is an example of being able to see a YOUR REMOTE PLEX SERVER!


Claiming Your Server

Method 1 - PlexGuide

For the following method, please visit Click Here

Method 2 - Portainer

Claim your Plex Server Through Portainer

  1. Head over to your Portainer service at http://ipv4:9000/
  2. Open the Plex container and press Duplicate/Edit
  3. Browse to the bottom and press Env
  4. Press add environment variable
  5. In a new tab, go here and login using the details of the Plex Account that will own the server: https://plex.tv/claim
  6. Press Copy to Clipboard button. If you don't, the code will not be copied properly! Also, notice the code is valid only for 4 minutes! Head back to Portainer and do the following: In "Name" write "PLEX_CLAIM" and in "Value" you can paste the code you copied earlier. Notice that you need to paste the whole thing, including the "claim-" part!
  7. Press Deploy Container and wait until the container is Healthy. You can press Replace, don't worry...
  8. After the container is healthy, head over to https://app.plex.tv/ and login with the same account as the one for the Plex Token! Then you should see your server under the server list!

Method 3 - Tunneling In

Windows User - Putty

Load putty

  • Type in your remote-ipaddress and port 22 and select SSH
  • On the left side of the menu expand CONNECTION > SSH > Tunnels
  • Source Port: 6969
  • Destination: remote-ipaddress:32400
  • [Click] Add
  • [Click] Open
  • Login and keep the terminal putty open

Linux / Mac Tunnel

To Setup Plex

  • Open up a browser (recommend Chrome) and type - http://localhost:6969/web
  • If do not type exactly what above, you will get a whole bunch of XML garbage and nothing will happen!
  • You will now be able to setup PLEX
  • Double check by opening a new window or tab and type http://ipv4address:32400/web

Method 4 - VNC Method (Outdated - Needs Replacement)

  • Open your browser, log into your Portainer web interface, example - 100.25.25.25:9000 or mydomain.com:9000 and enter the u/p you've already set-up.
  • Click 'Containers' (third down on the left or first tile down on the left below 'Node Info') and make a note of the IP for the Plex docker and check it's showing 'healthy'. This will usually be something like 172.17.0.x
  • From the main PlexGuide menu:
  • Choose option 6 'VNC Remote Server Install' and hit enter, read the warning and click 'OK'.
  • Choose option 1 'VNC Server Container: Create' and hit enter, after a few moments it will display another warning, hit enter.
  • Choose a strong password - this will be echo'd back to you later anyway but C&P it somewhere and hit enter.
  • Open your favourite VNC client eg www.realvnc.com/download/viewer and input your server's IP and port eg 123.456.789.101:20001 or mydomain.com:20001, leave encryption to auto or 'Let VNC Server Choose' and click connect.
  • When asked for your password, paste it in.
  • You should be greeted with a standard Ubuntu desktop with FireFox and Chromium shortcuts, choose one and enter the 172.17.0.x address you noted down from Portainer. It must be in the following format 172.17.0.x:32400/web
  • if you miss the '/web' from the end you will be given an XML Style Sheet error.


Configure Your Plex Server

Follow the steps below! First, you should be able to see your PLEX SERVER. Regardless of being a local or remote user, you will need to ensure that your server is able to share outside of your network. If not, you can skip most of this.

Demo picture below of being able to see your SERVER! A claimed remote server will have an odd name; a local one will have something related to your computer, but you are able to change this when it first sets up!

STEP 1: Check Your Shared Settings

A. For non-remote users (local), just ensure that you get the green check! If not, you may need to check your firewall and router (uPnP needs to be on). Skip to the next step.

B. For remote users, ensure that you check the manual box and place 32400 as the port and hit save. It may appear to work sometimes, sometimes not; but it does work. Use a secondary device before moving on to ensure that your connection is working and go somewhere else and come back to it and you'll notice it green.

After enabling, we came back 30 seconds later and it works fine!

STEP 2: Adding Content To Your Library

Adding TV Shows

  • [Click] Add Library
  • [Click] TV Shows
  • [Type] Add Folders to Your Library: either /unionfs/tv or /encrypt/tv for encrypted version
    • Note: You will never be able to select it if you have a large library; type it and hit ok
  • You can use /mnt/plexdrive if you want, but you will have to wait for the upload
  • [Click] Ok

Adding Movies

  • [Click] Add Library
  • [Click] Films
  • [Type] Add Folders to Your Library: either /unionfs/movies or /encrypt/movies for encrypted version
    • Note: You will never be able to select it if you have a large library; type it and hit ok
  • You can use /mnt/plexdrive if you want, but you will have to wait for items to upload
  • [Click] Ok

STEP 3: Configure Your Server Settings

  • Configure what you need, there is one important area.
  • [Click] Server > Show Advanced > Library
  • [Turn On] Update my library automatically
  • [Keep-Off] Run a partical scan...
  • [Keep-On] Include music libraries...
  • [Keep-On/Off] Update my library periodically (your choice..off if you have update automatically)
  • [Select] Library update interval: Every 1 hour (for huge libraries, every 2 is better)
  • [Keep-On] Empty trash automatically after every scan
  • [Click] Server > Show Advanced > Scheduled Tasks
  • [Turn/Keep On] Backup server every 3 days
  • [Turn/Keep On] Optimize database every week
  • [Turn/Keep On] Remove old bundles every week
  • [Turn/Keep On] Remove old cache files every week
  • [Turn/Keep On] Refresh metadata periodically
  • All the Rest; keep unchecked.


PTS Forum Support: Plex

https://PTS/forums/plex-emby.51/

N|Demo

N|Solid N|Solid

Useful Starter Links

  1. Introduction
  2. G-Suite Signup
  3. Recommended NewsHosts
  4. Change Log

Prior Planning 101

  1. Recommended Pre-Reading
  2. Server - Storage Planning
  3. Usenet or BitTorrent
  4. PTS Editions
  5. PTS Folder Structure
  6. PTS-Repos
  7. Common Issues

Deploy & Config

PTS-Team
  1. SSH Server Access
  2. Install PTS
  3. WatchTower
  4. Remote Path Mappings

Data Transport
  1. PTS Clone
    1. Google OAuth Keys
    2. PTS Move
    3. PTS Blitz
    4. 2nd HD Option

Key Components

  1. Traefik
  2. Port Guard
  3. PTS Shield
  4. PTS Press
  5. Google Cloud - GCE
    1. Automated setup
  6. Hetzner Cloud
  7. PTS Fork
  8. Extra PTS Commands

Blitz App Info

  1. Accessing PTS Apps
  2. App Port Scheme

Tools & Services

Core Apps [Expand]
  1. Emby
  2. Jackett
  3. Jellyfin
  4. LazyLibrarian
  5. Lidarr
  6. Netdata
  7. NZBGet
  8. Ombi
  9. Plex
  10. Portainer
  11. qBittorrent
  12. Radarr
  13. Radarr4k
  14. RadarrHDR
  15. RuTorrent
  16. SABnzbd
  17. Sonarr
  18. Sonarr4k
  19. SonarrHDR
  20. Tautulli
  21. JDownloader2
Community Apps [Expand]
  1. AirSonic
  2. Bazarr
  3. Bitwarden
  4. BookSonic
  5. cAdvisor
  6. Cloud Commander
  7. Deluge
  8. DelugeVPN
  9. Dozzle
  10. Duplicati
  11. Filebrowser
  12. FlexGet
  13. Gazee
  14. Headphones
  15. Heimdall
  16. HomeAssistant
  17. jd2-openvpn
  18. Kitana
  19. Logarr
  20. MakeMKV
  21. MariaDB
  22. McMyadmin
  23. MEDUSA
  24. Mellow
  25. Miniflux
  26. Monitorr
  27. Muximux
  28. Mylar
  29. NextCloud
  30. NowShowing
  31. NZBHydra2
  32. Organizr
  33. plpp
  34. pyLoad
  35. qBittorrent
  36. QBittorrent VPN
  37. radarrsyncarr
  38. Resilio
  39. rflood-openvpn
  40. rutorrent-openvpn
  41. Shoko Anime Server
  42. SpeedTest
  43. SyncLounge
  44. Teamspeak3
  45. The Lounge
  46. Transmission
  47. Trakt.or
  48. Ubooquity
  49. Varken
  50. vnc-xfce
  51. vnstat
  52. ZeroTier

Misc Info & Articles

  1. Change Server Time
  2. Fail2Ban
  3. Custom Containers
  4. Deploying Varken, Influx, Telegraf, Grafana
  5. cloneclean commands
  6. Understanding htop
Scripts
  1. Scripting Area
    1. Auto Upload for Sonarr and Lidarr
    2. Auto Delete Log
    3. Plex Plugin DB Backup
    4. Plex fast BACKUP
    5. Delete All Unmonitored from Radarr
Clone this wiki locally