Oh shit we've finally got to Part 3! ... For those who are wondering 'WTF?', jump over to Part 1 to explain more around what is going on.
Otherwise I can assume you've already gone through the previous two parts and ready for the final leg of this setup!
Plex Media Server
Now we're getting to the good stuff, Plex! Like all the other pieces to this setup we'll be installing Plex in Docker. Here is the configuration to edit and run:
docker create --name=Plex -e PUID=1000 -e PGID=1000 -e TZ=Europe/London -e VERSION=docker -v /path/to/library:/config -v path/to/tvseries:/data/tvshows -v /path/to/movies:/data/movies -v /path for transcoding:/transcode --net=host --restart unless-stopped linuxserver/plex
-v /home/swakes/docker/plex:/config -v /mnt/Media/Television:/data/tvshows -v /mnt/Media/Movies:/data/movies -v /home/swakes/docker/transc:/transcode \
Ace! Same procedure as before so pop back to Portainer to ensure that Plex is up and running!
Now you can navigate to http://ServerIP:32400/web to access Plex and finalise the install.
Niiiiice! We've now have Plex installed, there are a few final steps to get Plex fully configured and streaming. Unfortunately I don't have time to go through and document Plex Media Server in its entirety but I'll give you some key tips to get you started.
Hopefully Plex should already be searching through folders and adding content to its libraries. If not, or for future reference, hover over either Films\TV\Music and click on the three 'dots' to bring up the additional options. Click on Scan Library Files to scan and add new content. Have a dig through Settings as you are able change this to be scheduled, automatic etc.
“Metadata Agents” (or just “agents”) are the server component that’s responsible for taking the information from the scanner and then acting on it to help bring in the rich metadata (plot summary, cast info, cover art, music album reviews, etc.) that brings your media libraries to life. In most cases, this metadata is retrieved from online resources (such as The Movie Database, The TVDB, Last.fm, etc.).
It's worth setting this up correctly as you'll find that some of your content may not have the proper formatted title, images and other details. For more information on setting this up, check out the official Plex support post here (to write this out would be another post in itself).
Sharing Plex with other users such as family and friends is relatively straight forward. To add a user, go to Settings and under Family & Friends click on Sharing.
Here you will be able to invite/add users to your Plex media server. Simply click on INVITE FRIEND and enter their email address or Plex username. The last step is to grant permissions to your chosen media libraries before click DONE. Just as a side note, from experience it can take around 3-5 minutes after accepting the invite for the media server to appear on the users device.
If you have used a Google account to sign up for Plex, you may find that when trying to login on certain devices, the once white Google login button is now greyed out.
Have no fear! This is due to recent browser updates blocking various 'third party cookies', one of them being Google Accounts cookie. Depending on your browser, navigate to your Security/Privacy settings and allow the accounts.google.com cookie.
At some point during the install or viewing, you'll get pestered around 'Plex Pass'. A Plex Pass subscription will enable 'premium' features such as enhanced music library, mobile syncing, watch and record DVB along with a few other bits. In my opinion it's worth getting.
The other thing to mention is that anyone using the mobile app will either need a Plex Plus subscription or pay a one off fee of £3.99. Again worth doing otherwise it will pester you every few minutes of playback. In short, if you are setting up/hosting a Plex Media Server it is worth getting the subscription. For anyone simply viewing your content, simply pay the one off fee if using the mobile app (all other platforms are free - Xbox, FireStick etc).
One of the best features with Plex Pass is DVB. If you've got a supported DVB Tuner Card/Adapter or go down the Raspberry Pi HAT route (have a goose here), you can essentially stream and record Freeview through Plex. It has an awesome TV programme guide and even pulls all the metadata such as posters, ratings and other information.
Well, we've gone over a fair bit but there are still plenty more settings and tweaks to do in Plex. Hopefully all of the above will get you setup and ready but for now I would recommend going through each setting under, you've guessed it, Settings and reviewing each one. I'll be writing up more posts around Plex (tips, tricks etc) in the near future so keep an eye out! Anything you're unsure about, Google will know.
Cool beans. We've nearly completed our setup and you'll be glad to hear there are only two elements left to install.
Now we have our new shiny Plex server running and sharing out to family and friends, it's always handy to keep a tab on your streaming activity. This is where Tautilla comes in. Its Docker time again...
docker create \ --name=tautulli \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Europe/London \ -p 8181:8181 \ -v path to data:/config \ -v path to plex logs:/logs \ --restart unless-stopped \ linuxserver/tautulli
-v /home/swakes/docker/taut:/config \ -v /home/swakes/docker/taut:/logs \
Run the commands above and as usual check Portainer or
docker ps -a to confirm everything is in order. Once ready, navigate to http://YourIP:8181 to access Tautulli and complete the install.
To complete the install, click Next and then sign into your Plex account. Click Next again then enter your Plex Media Server IP and Port then press Verify before proceeding. You can skip through the next three steps (Activity Logging, Notifications and Database Import) to complete the setup by clicking Next.
All sorted! Now you have Tautulli installed and monitoring your Plex activity! To be honest there isn't really much to configure in Tautulli but have a goose through Settings to see if there's anything you want to amend. Just a side note before we get onto Ombi, don't bother paying/downloading/using the mobile App ... It's wank.
Ombi. The last step and piece to our media server setup. This solution will allow you and your Plex users to request TV, movies or music to download and add to Plex. Anything you already have, will be shown 'Available' and even a direct link to the content on Plex. When setup, this should be the only portal you need to access to request media (no logging into Sonarr then Radarr then Lidarr ...) as it's all in one place.
docker create \ --name=ombi \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Europe/London \ -p 3579:3579 \ -v /path/to/appdata/config:/config \ --restart unless-stopped \ linuxserver/ombi
-v /home/swakes/docker:/config \
That Ombi is running, navigate to http://YourIP:3579 to complete the setup. Go through the setup wizard selecting Plex then logging in using your Plex account details.
You and any other user you add into Ombi will use their Plex credentials to log in. Once we're in, the first step is to ensure that users can actually sign in. Go to Settings > Configuration and then under Authentication make sure the Enable Plex OAuth is enabled and click Submit.
Good stuff. Now let's configure the most important part, Plex. Under Settings > Media Server select Plex and then enter your credentials to pull down your server settings. If this doesn't work, fill out the rest of the fields including Plex Auth Token and Machine Identifier.
When you've entered all the deets, hit that Test Connectivity button to confirm and then click Load Libraries to select your designated media folders (/mnt/media/TV /Films).
Lovely. Plex is now configured in Ombi and all we now need is to add in Sonarr, Radarr and Lidarr to complete this setup of ours. Let's start with Sonarr.
Navigate to Settings > TV and then click on Sonarr. Similar to before, enter the IP, Port and Sonarr API Key before clicking on Test Connectivity to confirm. If all good, click Get Quality Profiles and choose your preferred "Download quality profile". Then click Get Root Folders and choose your preferred media folder for TV shows. Finally click Submit.
As the standard time saving measure goes, I'll leave you to setup Radarr and Lidarr as it is simply repeating the steps above, changing the Port and API Key.
One last thing to mention before I leave you to play, in order to allow your Plex users access, you need to import them into Ombi. Navigate to Settings > Configuration and click on User Importer. It's important to note the default settings on the right hand side. Check that you are comfortable before proceeding as it can be a pain in the arse to 'bulk undo' later. To import your Plex users, click on Run Importer and wait for a confirmation popup to appear (best to wait 30 seconds) then click Submit.
Hopefully if that has worked you can now see all the users under User Management on the top bar. In here you can tweak each users permissions allowing maximum requests, auto approval etc.
As usual it's always best to look around and get yourself familiar with Ombi and also check in Settings to see other handy features or configurations you may want to enable, disable or change.
Thank Fuck For That!
And there you have it! 5500+ words later, now you have your very own automated media server capable of all media magic! There's nothing really left to do apart from delving around settings, menus etc and more importantly, start requesting/adding your TV shows, movies and/or music into Ombi. Those requests will then begin to filter down through Sonarr/Radarr, Transmission and eventually end up in your Plex library!
To test the final product, navigate to Requests in Ombi and search for a film or TV show that you know is available (otherwise you'll be waiting for a release!). If you haven't set yourself to 'Auto-Approval', approve your request in Ombi and then wait for a confirmation window to appear. Waiting a few minutes between each step:
- Navigate to Sonarr/Radarr to check the media has been requested from Ombi
- Confirm Sonarr/Radarr has searching and found content via Jackett and forwarded to Transmission
- Ensure that the correct torrent has been added and downloading successfully!
Depending on how you've setup Plex, once the torrent has downloaded, Plex should detect the changes and update its libraries automatically. Otherwise force a Scan Library to add the new content.
Once you've done one or two tests and happy that shit is working nicely you shouldn't need to checkup on Sonarr, Transmission etc. To be notified on any and all requests, streams, download status etc you can setup notifications via PushOver. Check out Part 1 (at the bottom under Optional) to get this setup.
I'm hoping this has all been written up correctly and coherently enough, however if you are struggling at any step, here are a few tips to help you out:
- In my experience, 80% of issues boil down to some sort of permission issue. Check you have the right permissions for the right user/file/folder.
- Still can't figure out an issue/error? Check Portainer and/or other relevant system logs.
- Again from experience, a good old off and on again sometimes does the trick.
- I'm not the first person to write up a 'Media Server' walk through, check out this mega guide for any handy extras or tips.
- If all else fails then Google usually has the answer ('docker sonarr no root folders').
- On the other hand, if I've missed out a step or fucked up somewhere in this guide, please let me know! Drop a comment below
On that note I will leave you to play with your new server and wish you best for your future endeavours! Remember to check back for more guides and updates in the near future. For now, farewell!