Tag Archives: Plex

Wiring up the Media Server

Right, so we have setup our media server, so we now need to wire it all together, so the system downloads what it needs, when it needs to.

So let’s get to it. First decisions, where are we going to store our media, remember video takes up significant space. I’m going to be storing it locally, but obviously if you are storing on a network location it needs to be mounted in the Linux partition. Easiest way to do that is probably through the Linux file manager, but with so many options when it comes to storage, for this demonstration we will take the simplest option.

1I recommend splitting how you store the media up now, as will make it simpler going forward, I’ve created a TV and a Movies folder , but if you have kids and music and pictures then you may want to add these areas too. Get it organised now how you want though, as it’s easier now without having to deal with huge amounts of content.

2Now lets set the Plex Libraries up, this is done by going to http://127.0.0.1:32400/web and clicking the + sign on the left next to your media server name. Simply select the right media type and point it at the location the media will live.

3Now we need to configure the server to connect to the Plex service, so click the Config Icon (Spanner/Screwdriver at the top right) and select the Server area, then Make sure the Friendly name is as you want it, and click the Connect section, login with your Plex username (If you don’t have one, set one up), and with that, the basics of Plex server are done.

SabNzbd

Next up is SabNzbd. This is the actual news server download engine, the bit that does the work so to say. Goto http://127.0.0.1:8080 and click on the Config item.

Click on General, and create a username and password and click save, obviously login when it asks you to. Click the Folders item, and lets setup where things go. As a general rule the Downloads/incomplete and Downloads/complete folders are fine, but if you want to place them elsewhere then here’s where to change the locations, we also need to point the Post Processing script folder, so type in /home/username/.sickbeard/autoProcessTV

4Click the Servers option, then we need to setup our News Server (if you haven’t already) I use AstraWeb for my news service, and can highly recommend them, so if you don’t already have a news server account then hop over and get one. The details I’ll be showing here are Astraweb‘s, but obviously replace with yours. See the image to the right for the AstraWeb settings, I use the SSL server for all my connections, just to be safe.

Next we need to create some categories for our downloads, so click the categories option, and we need to create a Movies one and set a path for it, I’m putting it in Downloads/incomplete/Movies click save, then add a new one TV and point it at Downloads/incomplete/TV and in the Script option, select SabToSickbeard.py and click save.

That should pretty much sort out SabNzbd for now, next onto

SickBeard

Bring up http://127.0.0.1:8081 and click Config/General, untick the Launch Browser, and put a username and password in the Web Interface area and click save, tick the enable API box, then generate, and click save.

Next click Search Settings at the top, and change the NZB Method to SABnzbd and in the URL field put http://localhost:8080/ put your username and password in and then get the API Key from the Config/General area of SABNzbd and click test, then Save.

In Search providers you can add any other NZB sites you may be a member of, but for now leave it as it is.

Post processing is where we get the shows organised after they are downloaded, and all the Meta Data setup for them, so in the TV Download Folder we need the full path the the download location, in our case /home/user/Downloads/complete browse for 5it if your not 100% sure, untick the Keep original box if ticked. The naming logic is upto your personal preference, but how it is out of the box will probably suite. And finally in this section, Metadata type needs to be set to MediaBrowser, and make sure you select the data you want downloaded (screenshot of my config attached)

Notifications we will leave alone for now, you can however research this section later if desired.

CouchPotato

Let’s get CouchPotato set up now, so bring up http://127.0.0.1:8082 in your browser and click the cog in the top right then settings.

Click the Searcher option, select the First Search to be usenet, and select NZBClub and BinSearch. I recommend signing up on a Newznab host, I use www.oznzb.com but the others mentioned are just as good, use whichever suits yourself. Click categories sub area and make sure in the ignored section you have NL, nl, GERM, DK, FR, germ, dk, fr, ger, dut, german, dutch, french, truefrench, danish, swedish, spanish, italian, korean, dubbed, swesub, korsub, dksubs, vain, 3D 6as this will stop a lot of the ‘spam’ getting through, add more if you notice a type of movie getting through you don’t want. Click qualities and Create one that suits yourself, I have a quality setup as the picture to the right shows. You can also add R5/Screener etc if you want to.

Click the Downloaders menu option, select Sabnzbd and make sure the host is localhost:8080 The API key is the one from the general page in the SAB config area, and Category is movies, click test and make sure it says everything is all good.

Click Renamer, this is where the completed movies get moved to the right place, and labeled etc. So click all 3 boxes to enable the options, then in the To field click  the folder icon and select the Movies folder where completed films need to go to be seen by Plex (the same folder we set up in the Plex library earlier). Tick the UNRar and cleanup options, then the From icon and select the Movies folder we selected in the SABNzbd category earlier, type en  into the language for subtitles, and select a quality for the trailer (if you want it). Click the Metatdata sub menu, and select XBMC.

Next click the Manage menu option on the Left, and point this to the completed movie folder (the directory Plex is watching), if you want movies automatically added, you can click the Automation option, and get it to add movies based on taste etc from IMDB, Trakt etc.

That should be about it. Time to test something out.

Testing

Click the magnifying glass at the top of the window, and search for a movie.

7

As you can see, I’ve searched for an Open Source movie call Big Buck Bunny, but whatever you want to find is OK. Click the Add button, then click Home at the top, and the movie. Check that it’s been found, and that Sabnzbd is downloading it, next goto the Sick Beard interface, select Add Shows, then search for a show, click the one you want from the search results and select next, then click new and create a TV location, this is the same location that Plex is looking at for it’s TV Content. Click next and set the quality etc. After you click add, it should start downloading the TV.

Enjoy your automated TV and Movies.

Create a self contained Media Server

Been a while since I’ve updated the guides on here, so here go’s, how to install the Required components onto a Linux Mint 17 machine.

First, obviously download the Linux Mint disk, I use the 64bit Mate version, but if you are more a fan of Cinnamon then that’s upto you.

Once the basic install of Mint is complete (Just your standard next/next, through the install). Login to the server, bring up Terminal

sudo apt-get update
sudo apt-get install guake
sudo apt-get upgrade
sudo apt-get dist-upgrade

That will get Mint upto the latest version of everything in it’s base install. After all that’s complete just reboot the machine/VM.

Setup for the Services

First off, we need Samba installed (probably, if you don’t then skip this section, but if you have a Windows machine on the network, it’s worth doing).

sudo apt-get install samba

That will get Samba basics installed. How much we setup depends, for now though we are going to leave it as it is (most of the time it’s already installed)

Plex Server

Pop along to the Plex Download Page and download the Ubuntu 64bit release. This get’s downloaded as a Debian Package (deb) file, and by default will be in the ~/Downloads folder. So to install this we need to use DPKG, so from the Terminal

sudo dpkg -i ~/Downloads/plexmediaserver????.deb

That should install the server on the local machine, to test bring up a browser and goto http://127.0.0.1:32400/web After agreeing to the license you should get a nice empty server display.

Sick Beard

Next up, automating TV Downloads. For this we will be using Sick Beard, so let’s do that.

First let’s make sure you have an up to date version of Python installed. To do this from Terminal

python -V

Make sure it comes back with 2.5 or later (Mint 17.1 should be 2.7.6), next up we need Cheetah installed, this is easy from Terminal type

 sudo apt-get install python-cheetah

That will get Cheetah installed, now we need to get the Sick Beard source down and compile it. So from the Terminal (I’ve used the HTTP git source of the repo, because of possible proxy issues, but if you have issues, use git:// instead of http://)

cd ~
git clone http://github.com/midgetspy/Sick-Beard.git .sickbeard

That will put the application in the .sickbeard folder ‘hidden’ in your home folder, cd into it (cd ~/.sickbeard) to continue setup. Then

cp -a autoProcessTV/autoProcessTV.cfg.sample autoProcessTV/autoProcessTV.cfg

python ~/.sickbeard/SickBeard.py -q

Then goto http://127.0.0.1:8081 from your local browser to make sure it’s up and running.

Next, we need to automate it so we don’t have to do that everytime.

sudo cp ~/.sickbeard/init.ubuntu /etc/init.d/sickbeard
sudo chmod +x /etc/init.d/sickbeard
sudo nano /etc/default/sickbeard

When nano opens up, you need the following 3 lines in it, obviously changing the relevant sections so they are correct for your install (basically the username part in /home/??? and SB_USER)

SB_HOME=/home/user/.sickbeard/
SB_DATA=/home/user/.sickbeard/
SB_USER=user

Then we need to add the correct bit’s to make sure it all starts at boot time.

sudo chmod +x /etc/default/sickbeard
sudo update-rc.d sickbeard defaults

That should be it, just give the box a reboot now, to make sure. After the machine comes back up, got http://127.0.0.1:32400/web and http://127.0.0.1:8081 and make sure both services we have already installed are up and running.

CouchPotato

Next we need to install Couch Potato,  the easiest way to do this is to clone it via Git, that’s easy enough to do.

cd ~
git clone git://github.com/RuudBurger/CouchPotatoServer.git .couchpotato

That will grab the latest code, and pop it into the ‘hidden’ folder .couchpotato

Next we need to set it up to auto start, so

cd ~/.couchpotato/init
sudo cp ~/.couchpotato/init/ubuntu /etc/init.d/couchpotato
sudo chmod +x /etc/init.d/couchpotato
sudo nano ~/.couchpotato/init/ubuntu.default

That will start nano editor up, and we need to put the relevant information on the home directory and the user in here, mine looks like this

# COPY THIS FILE TO /etc/default/couchpotato
# OPTIONS: CP_HOME, CP_USER, CP_DATA, CP_PIDFILE, PYTHON_BIN, CP_OPTS, SSD_OPTS

CP_HOME=/home/media/.couchpotato
CP_DATA=/home/media/.couchpotato
CP_USER=media
CP_PIDFILE=/home/media/.couchpotato/couchpotato.pid

So just make sure the path’s and user name is correct, and copy the above, then lets add all this to the init.d

sudo cp ~/.couchpotato/init/ubuntu.default /etc/default/couchpotato
sudo chmod +x /etc/default/couchpotato
sudo update-rc.d couchpotato defaults

and now you should be able to use sudo /etc/init.d/couchpotato start/stop  to start and stop the process. So go ahead and start it. Then make sure you can get to http://127.0.0.1:5050, it should launch the wizard to finish the configuration off. Just put a username and password in, and untick the launch browser box. I also change the port to 8082 as it’s easier to remember as next up from Sick Beard and what we are installing next (the download glue)

SabNzb

sudo add-apt-repository ppa:jcfp/ppa
sudo apt-get update

That will add the right repository, and update everything so we can then just go

sudo apt-get install par2
sudo apt-get install sabnzbdplus
sudo apt-get install sabnzbdplus-theme-mobile

All the dependencies that are needed will be listed, then just Say and away you go.

Now let’s get it setup so it automatically starts at boot, that’s done pretty much the same way we have done the others so far, so

sudo nano /etc/default/sabnzbdplus

and we need to edit a couple of variables in there, the USER= one should be your mint username, and HOST= should be 0.0.0.0 and I set the PORT= to be 8080 as then all the apps we have just installed are nicely concatenated together in a port range.

Save the file out, and sudo service sabnzbdplus restart 

Launch a browser on http://127.0.0.1:8080 and go through the initial setup (news server etc).

Next up is configuring it all. So that in my next post.

PLEX NowTV Client 2.8.2

Here’s the latest version of the PLEX client for the NowTV.

As always it’s based entirely on the hard work of the ROKU Plex Team, so here’s a direct link over to their release information for this 2.8.2 release.

Basically this release brings things more in line with the current releases on other platforms. Now a word of warning, I’ve NOT had chance yet to test this release on the NowTV, so if there are any issues obviously let me know and then roll back to a 2.6.x release. I will have a play later.

Also because the way things work with the NowTV (not being a ‘real’ ROKU and using the official channels) this release might require a PlexPass account to work, as the way that the PLEX team licences the new code has changed slightly (see the post linked above).

Download Plex-NowTV-2.8.2 and install in the usual manner. I will rebuild this shortly, please see comment from Shaun below.
Also RARflix-3.0.7 for testing

PLEX NowTV Client update

Here’s the latest cut of the NowTV PLEX client. I’ve put one together today as a couple of the fixes from recent builds might be useful (oh and it’s my Birthday, so it’s my present to the NowTV using crowd).

Install as usual. Upload the Plex-NowTV-10-12-2013 zip file to the box, and make sure you get the Install OK message.

This is probably the last of the 2.6.9 releases, as the next version should have the new remote control code included.

Guide to getting PlexConnect Setup as a Windows Service

My original post on the Plex Forums

Here’s a quick guide to making PlexConnect into a Windows Service, uses SRVAny to run it.

Some notes, SRVAny is not officially supported on Windows Vista/7/8 but works just fine for me in various other things I use it for. Also I don’t have an Apple TV, or anything to test the functionality, so I assume you know how to get that running, as I’ve not even looked into that. I just know it start’s and says it’s working. Oh there is also NSSM that can be used instead of SRVAny, upto you, the install is pretty much the same either way (except NSSM has a graphical Service Installer)

Compiling PlexConnect Yes, you could compile it, but that just adds complexity to updating/fixing/debugging. At least this way you are running vanilla code, and you can go back to the developer with issues. However compiling does have other advantages if it compiles correctly there is a whole lot less hassle as you don’t need the Python runtime installed on the box, but that’s not an issue I wouldn’t think.

Requirements :

  • SRVAny – I’ve put it into a ZIP so you don’t need the whole Server2003 ResKit – Download
  • Python 2.7 – On windows I tend to use ActiveState‘s version, just because it’s easier – Download
  • PlexConnect – Just download the ZIP file from the GIT – Download
  • Service Registry File – if you use the same paths etc, this will save you typing it – Download

Guide

  1. Install Python, I’ve used C:\Python2.7 as the file location, upto you where it goes, just make sure you replace any path names with wherever you have put yours.
  2. Unzip PlexConnect, it will create a Plexconnect-Package folder, rename it to c:\PlexConnect (again upto you where it goes)
  3. Unzip the SRVAny zip and put the two exe files into the PlexConnect folder.
  4. <Make sure you configure PlexConnect>
  5. Once you are sure that PlexConnect is running just fine (see ScreenShot of mine working) then continue, if it’s not working just running from the shell then make sure you get it going now
    Working.PNG
  6. OK, so we have a working setup (well mine is bitching about certificates or something, but hey), now we need to install the service, make sure your command prompt is an admin one (right click the cmd link, then select start as admin)
    AdminCommandPromt.png
  7. CD to c:\PlexConnect and then run instsrv PlexConnect c:\plexConnect\srvany.exe Make sure that it’s installed correctly (see screenshot)
    ServiceInstall.PNG
  8. Next thing fire up Regedit, and navigate to the right section (see Screenshot), add the key, and then the two Data values as highlighted below (Make sure the case is right or if following the guide, then download this reg file and run it).
    Registry.PNG
  9. From the command prompt type services.msc that will launch the service’s manager, wander down to the service and make sure it looks right, and the startup is set to automatic
    Services.PNG
  10. Click the start button, then OK, and you should now see that the service is running
    serviceRunning.PNG
  11. And as Elan (and South Park) would say…. Profit
  12. Oh if this helped… Click the Like button below Thanks ……

I’ve attached a ZIP here Certificates InstallPlexConnect and here’s the post that goes with them.

OK, had a few minutes to spare, and the VM was running anyhow, so here we have a batch file that ‘should’ do it all.

It downloads the bits it needs (including Python and PlexConnect), put’s them in the right places on disk, and creates the service.

It’s very crude, and simplistic, but works on my VM. Like I’ve said before I’ve not got an AppleTV to do any testing, so I leave that upto the people that do have it.

I suppose I should explain usage… Doh

Unzip to any folder you like, and run the InstallPlexConnect.cmd as an Admin. It will make all the folders etc, it will install it all on C:, so edit the script and reg file if needs be.

Also if you already have Python installed, edit the CMD and take out the download and the install sections out, and edit the reg file to point to the right place for the Python.exe file.

EDIT : Just looked into what needs to get it working, seems there is some cert’s that are required. I’ve uploaded some I made into the Certificates.zip file. You need to extract them to the certificates sub folder in c:\PlexConnect to get it all working. They are just generic SelfSSL ones, so can’t see why uploading them would be deemed bad, but if it is, let me know and I’ll delete them.

Plex for NowTV version 2.6.9

I’ve put together the 2.6.9 build for Plex on the NowTV.

Here’s the lowdown on the update (from the Roku form on Plex)

NEW:
– Update supported H.264 level to 4.1.
– Add clock to home screen.

FIXES:
– Fix a crash when adding servers manually.
– Fix episode title when watched status changes. (thanks ljunkie!)

Install is the same as always, connect to the HTTP://ipAddress for the admin screen, upload the zip and make sure you get the installed OK message.

Plex-nTV-2.6.9 For the Download.
NOTE : A couple of the new features need the latest Plex Server (0.9.8.7)

Plex For Ubuntu/Mint

I’ve just had need to do this myself, and in an effort to not have to work it out again here’s the way to do it.

These will install the Repository’s that are needed (Plex itself, FFMpeg and libcec)

sudo add-apt-repository ppa:plexapp/plexht
sudo add-apt-repository ppa:jon-severinsson/ffmpeg
sudo add-apt-repository ppa:pulse-eight/libcec
sudo apt-get update

After that, all we need to do is install PlexHT itself, so

sudo apt-get install plexhometheater paprefs pavucontrol

That should get it all installed.

You could of course clone the Repo (https://github.com/gewalker/plex-linux.git) and compile it. Upto you, but the Repo method is easier.

Plex for NowTV version 2.6.8

Just thought, seems as I’ve updated my personal one here’s the latest Roku Plex Client (2.6.8) packaged for the NowTV

Couple of bug fixes etc, here’s the quick rundown from the Plex Forums

NEW:

  – Add transcode session info to the HUD. (press down on the remote while a video is playing)
  – Add a toggle for DTS support.
FIXES:
  – Fix a crash in Playback Options for non-library content.
  – Fix for Direct Playable content flung from iOS.
  – Fix H.264 level preference.
Download Here, install in the usual way (use a browser to connect to the NowTV box, upload the ZIP file, wait for the Install Success)

Cheap Plex Player

roku2_artI’m documenting how to get the new NowTV (BskyB) player to run the Roku Plex Client so you can connect to your Plex server.

First obviously you need to order a NowTV Box, do that by clicking here

Sign up to NowTV as you need an account, goto the Create Account page for the 30 day free trial (just cancel straight away unless you really want to use the movies stuff, or if you don’t want to take anything then just don’t sign up for anything, just use your account details from when you bought the box), but if you are thinking of getting the movies, then this promotion (2.50 / month for 6 months) is a better bet (just remember to cancel it before the end of the 6 months)

Once you have the NowTV box in your hands and plugged into the TV, power it up and login etc.

Once at the home screen press Home button x 3 Up x 2 Right, Left, Right, Left, Right, make a note of the IP address and enable the developer mode.

Now from a PC on the same network, connect to the NowTV Box with a web browser http://IP-ADDRESS then upload the plex.zip file to it, you should see an install success notice, and the TV should have Plex notification up on it.

Well done, Cheap Plex Player.

<Advanced>

If you want the very latest version of Plex then you need to download the GIT for it (https://github.com/plexinc/roku-client-public) then rename the Manifest.Template file to Manifest and then ZIP the whole lot up, that’s the latest version.

UPDATE – I’ve been asked so I’ll mention it, if you get a pink/purple screen during playback it’s a handshake issue on HDMI (HDCP issue). Usually caused by dodgy cable, or incompatible hardware somewhere in the stream. The Roku LT suffers the same issues, flicking to 4×3 mode then back to 720p usually sorts it if its just the tv being slow to handshake (could try pulling the cable etc too)

OTHER – some apps worth grabbing from the Roku store, some are a bit odd that they haven’t been blocked by Sky. Spotify (if you have an account its a no brainier), PlayTo (grab the android companion app) allows you to ‘throw’ media from other sources (DLNA) like the companion app or most Windows machines, MetaTube (YouTube is blocked, go figure?), tune in radio and revision 3.

Plex on the Microsoft Surface

Just  quick post to show people how to get Plex up and running on the Microsoft Surface (or any Windows RT machine for that matter).

First things first, we have to get IE allowing flash on your Plex site, but for that we need the Plex web interface, and for that at the moment you need to sign up for a Plex Pass and set you home IP up for a Dynamic DNS (I use No-IP, most routers support them for auto updating)

Right, got those setup? now lets get IE10 to allow us to use flash on it.

  1. Open the desktop version of Internet Explorer 10, press the Alt button to display the browser’s menu bar, and select Tools > Compatibility View Settings
  2. Uncheck Download updated compatibility lists from Microsoft
  3. Run notepad “%HOMEPATH%\AppData\Local\Microsoft\Internet Explorer\IECompatData\iecompatdata.xml”
  4. Press CTRL-F and search for <flash>
  5. Go Down a few rows or so, until you find the <domain>01net.com</domain>

Above that add your own domain you registered above, <domain>myplex.redirectme.net</domain> (obviously replace with yours)

  1. Back in IE10 click the Cog (or alt-T) Internet settings, click Delete and delete history.
  2. Bring up task manager (long click on the task bar) expand it, and if there is Internet Explorer running, then kill the processes.
  3. Press the Windows Logo, launch IE and goto the site you registered, http://myplex.redirectme.net:32400/web (note the port 32400 and the /web)
  4. Enjoy your Plex, on a local lan, it can happily process 8mbps, although the flash engine in IE10 gets a bit bogged down after that.