Skip to content

What is it?

Plex is a media server.

Details
Project home Docs Github Docker

URL

  1. To access Plex, visit https://plex._yourdomain.com_

  2. Login with your Plex account

Setup Wizard

  1. First time you log in, you will be presented with a welcome screen. Click "GOT IT!" to continue.

  2. Next screen will show you your server, with a randomly generated name. Give it a friendly name and click "NEXT".

  3. On the next screen, click "NEXT" (we will add Libraries later).

  4. Click "DONE".

Settings

  1. Click the Settings icon (top right) → "Server" (top) → "Library" (left). Click "SHOW ADVANCED" in the upper right.

  2. Set the following:

    • "Empty trash automatically after every scan": enabled

      • THIS IS A CHANGE FROM WHEN Plex Autoscan WAS THE DEFAULT

      • Autoscan is now the default scan app, and it does not empty trash

    • "Allow media deletion": enabled

    • "Generate video preview thumbnails": never

    • "Generate intro video markers": never

    • "Generate chapter thumbnails": never

    • "Analyze audio tracks for loudness": never

    • "Analyze audio tracks for sonic features": never

      The reasoning behind disabling these things is mostly related to Google Drive API usage, data transfer, and disk space. Accessing large portions of a given video file to generate thumbnails may generate large numbers of Google Drive API calls, and large amounts of data transfer. Either of these things may result in your account suffering one of the various types of 24-hour bans Google hands out, which may prevent your server from playing media at all. Also, storing these images will greatly inflate the size of /opt/plex, which can affect the speed of backups, your ability to download, and anything else related to disk space usage. These are generally considered Bad Things, so the recommendation is to avoid the possibility by turning these options off.

  3. Click "SAVE CHANGES".

  1. Click the Settings icon (top right) → "Server" (top) → "Network" (left).

  2. Set the following:

    • "Secure Connections": Preferred.

    • "Enable local network discovery (GDM)": disabled.

    • "Remote streams allowed per user": your preference.

    • "Custom server access URLs" will be prefilled; do not edit this field as it will be overwritten.

  3. Click "SAVE CHANGES".

  1. Click the Settings icon (top right) → "Server" (top) → "Transcoder" (left).

  2. Set the following:

    • "Transcoder temporary directory": /transcode

    • "Transcoder default throttle buffer": 150

    • "Use hardware acceleration when available": enabled

    • "Maximum simultaneous video transcode": unlimited

  3. Click "SAVE CHANGES".

  1. Click the Settings icon (top right) → "Server" (top) → "DLNA" (left).

  2. Set the following:

    • "Enable the DLNA server": disabled

    • "DLNA server timeline reporting": disabled

  3. Click "SAVE CHANGES".

  1. Click the Settings icon (top right) → "Server" (top) → "Scheduled Tasks" (left).

  2. Set the following:

    • "Update all libraries during maintenance": disabled

    • "Upgrade media analysis during maintenance": disabled

    • "Perform extensive media analysis during maintenance": disabled

  3. Click "SAVE CHANGES".

  1. Click the Settings icon (top right) → "Server" (top) → "Remote Access" (left).

  2. Click the grey button labelled "Disable Remote Access"

    • You will see a scary warning. You are sure, so click the red "Disable" button.

Add Media Libraries

In this section, we will add two libraries: one for Movies and one for TV.

Note: If you would like to have custom Plex libraries (more than just a Movies and TV one), see Customizing Plex Libraries.

Libraries

  1. In the main Plex screen (Home icon on the top left), click "+" next to "LIBRARIES".

  2. In the "Add Library" window, select "Movies" and click "NEXT".

  3. Click "BROWSE FOR MEDIA FOLDER".

  4. Navigate to /mnt/unionfs/Media/Movies, and then click the "ADD" button.

  5. You will now see /mnt/unionfs/Media/Movies in the text box (don't click "ADD LIBRARY" yet).

  6. Click "Advanced" on the left.

  7. Set the following:

    • "Enable Cinema Trailers": disabled (optional)

    • "Enable video preview thumbnails": disabled

    • "Find trailers and extras automatically (Plex Pass required)": disabled (optional)

  8. Click "ADD LIBRARY".

  1. In the main Plex screen (Home icon on the top left), click "+" next to "LIBRARIES".

  2. In the "Add Library" window, select "TV Shows" and click "NEXT".

  3. Click "BROWSE FOR MEDIA FOLDER".

  4. Navigate to /mnt/unionfs/Media/TV, and then click the "ADD" button.

  5. You will now see /mnt/unionfs/Media/TV in the text box (don't click "ADD LIBRARY" yet).

  6. Click "Advanced" on the left.

  7. Set the following:

    • "Enable video preview thumbnails": disabled

    • "Find trailers and extras automatically (Plex Pass required)": disabled (optional)

  8. Click "ADD LIBRARY".

Scan Media libraries

As mentioned in the Introduction page, Autoscan will automatically scan the media files into Plex as they are downloaded, but this will require the Plex database to not be completely empty. So for every new library that is added, a one-time, manual scan is required.

To do so:

  1. Click the 3 dots next to a Plex library.

  2. Select "Scan Library Files".

  1. Repeat steps 1-2 for each library.

Webtools

If you want to install Webtools for Plex, set:

plex_plugin_webtools: true

in the inventory and run [or rerun] the plex tag:

sb install plex

To set up Webtools and install 3rd party add-ons, go to https://plex-webtools._yourdomain.com_ and log in with your Plex account.

Next

Are you setting Saltbox up for the first time? Continue to Autoscan.