Jump to content


Photo

PlexConnect on a NAS drive (ReadyNAS).?


Best Answer Chrobrego, 06 June 2013 - 10:18 AM

PlexConnect is packaged into a readynas install bin file for x86 OS4 hardware
Latest change 06 March 2014. Adapting running.sh so it can echo the "running" status to the console for manual diagnostic
 
Install procedure
 
* WARNING: Since the use of the https protocol for the trailers app, PlexConnect may conflict with FrontView application. Perform thoses steps at your own risk and only if you are familiar with ssh
 
* Configure your ATV3 by selecting the settings button and configure DNS settings manually. Note down the current value (for later use) and change to your readynas IP address (PlexConnect includes a DNS server)
 
* Install Enable Root SSH Access
 
* Install Python for readynas
 
* Install Git for readynas
 
* Create the certificates in Apple TV by following the Paul Kehrer guide (but stopping just before the instructions that comes for PlexConnect) and copy the 3 files directly into the readynas media shared directory
 
* Download the PlexConnect readynas bin file and install it from FrontView (Modules / Add New)
 
* To update PlexConnect with the latest version from Git repository, install the add-on again
 

Troubleshootings

 

* How to verify if the PlexConnect is running (0 means running, 1 means not running)

/etc/frontview/addons/bin/PLEXCONNECT/running.sh

* How to start PlexConnect

/etc/frontview/addons/bin/PLEXCONNECT/start.sh

* How to stop PlexConnect

/etc/frontview/addons/bin/PLEXCONNECT/stop.sh

* How to remove PlexConnect (can be used if FrontView can't be accessed anymore due to incorrect configuration in the PlexConnect Virtual Host configuration file)

/etc/frontview/addons/PLEXCONNECT.remove

* How to restart the http server (should be done after having changed the PlexConnect Virtual Host configuration file)

/usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -t && /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -k graceful

* How to configure PlexConnect

vi /etc/frontview/addons/bin/PLEXCONNECT/PlexConnect/Settings.cfg
Note that the addon preconfigures the port_webserver to 81 and enable_webserver_ssl to False
 
* How to verify or tune the PlexConnect Virtual Host file (especially if having problem with accessing FrontView application)
vi /etc/frontview/apache/addons/PLEXCONNECT.conf

Verify the content of the file according to the template here

 
Also if you access your NAS with alternate (eg external) host name, replace READYNAS_EXTERNAL_HOSTNAME by that hostname
 
* How to start PlexConnect in console mode (to see the output on the screen, and to stop with CTRL-C)
/etc/frontview/addons/bin/PLEXCONNECT/PlexConnect/PlexConnect.py
Go to the full post


303 replies to this topic

#1 Rich O

Rich O

    Member

  • Members
  • PipPip
  • 68 posts

Posted 05 June 2013 - 10:39 AM

Hi,

Love the idea of Plexconnect. I was just wondering if it was possible to run this on a NAS drive rather than a computer.?

Specifically I have a Netgear ReadyNAS running Plex media server PMS.

#2 f00b4r

f00b4r

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 2706 posts

Posted 05 June 2013 - 11:08 AM

It will work fine on some NAS devices, they need to have Python 2.x installed though.
Your mileage may vary as we do not officially support them (e.g. Some Synologys have an issue which has not been addressed - we would love someone to figure out what the issue is).
Just bear in mind your NAS's CPU power and if your media will need transcoding or direct streaming.

Plex @ aTV - think different: PlexConnect

-> the missing link between Plex Media Server and your AppleTV - 2 or 3, jailbroken or not.

How to report an issue: click here

Sources: click here

Wiki: click here

 


#3 Rich O

Rich O

    Member

  • Members
  • PipPip
  • 68 posts

Posted 05 June 2013 - 11:19 AM

Thanks for the quick reply.. My ReadyNAS Ultra 2 will stream MKV to my iPad and iPhone via the Plex ios app (Although it struggles a little with DTS audio) so I'm hoping it will be the same with Plexconnect..

I've just ordered a 3rd gen Apple TV.. I'll report back with my findings.. :-)

#4 boots2x

boots2x

    IP Challenged Ninja

  • Plex Ninja
  • PipPipPipPipPipPip
  • 1194 posts
  • Location: Melbourne, Australia

Posted 05 June 2013 - 12:25 PM

I'll be trying it on my ReadyNAS Pro 6 - looking forward to an 0.1 release for a binary app!

 

James


These resources are your friends! The Plex Help Center | The Plex Forums | Forum Search is DEFINITELY your friend!

Check the Plex Media Preparation Guide! | Learn how to collect Log filesGet MediaInfo to analyse video files

Plex Media Server: Mac OS X and ReadyNAS Pro 6 | Plex Clients: Mac Mini 2010 2.66Ghz, 2Gb RAM, AppleTV Gen 2, iPhone 3GS | LG 56" DLP-TV | Sherwood AV Amp | Storage: ReadyNAS Pro 6 with 6 x 2Gb Hitachi HDD for 8Tb storage | Network: Cat 6 cabled, 1000BaseT


#5 daisy

daisy

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 05 June 2013 - 01:41 PM

Hallo,

I have the Plex Media Server Version 0.9.7.12 running on my QNap TS-239
Is it possible to run this also on it?



#6 f00b4r

f00b4r

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 2706 posts

Posted 05 June 2013 - 02:09 PM

Hallo,

I have the Plex Media Server Version 0.9.7.12 running on my QNap TS-239
Is it possible to run this also on it?

 

TBH we do not know but try it and let us know.

I am going to start a thread on NAS devices to see if we can figure out which work and which do not.


Plex @ aTV - think different: PlexConnect

-> the missing link between Plex Media Server and your AppleTV - 2 or 3, jailbroken or not.

How to report an issue: click here

Sources: click here

Wiki: click here

 


#7 Chrobrego

Chrobrego

    Dedicated Member

  • Members
  • PipPipPip
  • 105 posts

Posted 06 June 2013 - 10:18 AM   Best Answer

PlexConnect is packaged into a readynas install bin file for x86 OS4 hardware
Latest change 06 March 2014. Adapting running.sh so it can echo the "running" status to the console for manual diagnostic
 
Install procedure
 
* WARNING: Since the use of the https protocol for the trailers app, PlexConnect may conflict with FrontView application. Perform thoses steps at your own risk and only if you are familiar with ssh
 
* Configure your ATV3 by selecting the settings button and configure DNS settings manually. Note down the current value (for later use) and change to your readynas IP address (PlexConnect includes a DNS server)
 
 
 
* Install Git for readynas
 
* Create the certificates in Apple TV by following the Paul Kehrer guide (but stopping just before the instructions that comes for PlexConnect) and copy the 3 files directly into the readynas media shared directory
 
* Download the PlexConnect readynas bin file and install it from FrontView (Modules / Add New)
 
* To update PlexConnect with the latest version from Git repository, install the add-on again
 

Troubleshootings

 

* How to verify if the PlexConnect is running (0 means running, 1 means not running)

/etc/frontview/addons/bin/PLEXCONNECT/running.sh

* How to start PlexConnect

/etc/frontview/addons/bin/PLEXCONNECT/start.sh

* How to stop PlexConnect

/etc/frontview/addons/bin/PLEXCONNECT/stop.sh

* How to remove PlexConnect (can be used if FrontView can't be accessed anymore due to incorrect configuration in the PlexConnect Virtual Host configuration file)

/etc/frontview/addons/PLEXCONNECT.remove

* How to restart the http server (should be done after having changed the PlexConnect Virtual Host configuration file)

/usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -t && /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -k graceful

* How to configure PlexConnect

vi /etc/frontview/addons/bin/PLEXCONNECT/PlexConnect/Settings.cfg
Note that the addon preconfigures the port_webserver to 81 and enable_webserver_ssl to False
 
* How to verify or tune the PlexConnect Virtual Host file (especially if having problem with accessing FrontView application)
vi /etc/frontview/apache/addons/PLEXCONNECT.conf

Verify the content of the file according to the template here

 
Also if you access your NAS with alternate (eg external) host name, replace READYNAS_EXTERNAL_HOSTNAME by that hostname
 
* How to start PlexConnect in console mode (to see the output on the screen, and to stop with CTRL-C)
/etc/frontview/addons/bin/PLEXCONNECT/PlexConnect/PlexConnect.py


#8 boots2x

boots2x

    IP Challenged Ninja

  • Plex Ninja
  • PipPipPipPipPipPip
  • 1194 posts
  • Location: Melbourne, Australia

Posted 06 June 2013 - 10:57 AM

I succeeded to make it work with Readynas x86:
 
* Change the readynas HTTP server port to 8080 (otherwise an error occurs when launching PlexConnect)
cd /etc/frontview/apache
sudo vi httpd.conf
find the line that has port 80 in it by typing /80 and hitting return
change 80 to 8080
save with :wq
Restart http server:
# /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -t && /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -k graceful

 

Nice! I'll do this tomorrow once the NAS is free. Thanks for posting!

 

James


These resources are your friends! The Plex Help Center | The Plex Forums | Forum Search is DEFINITELY your friend!

Check the Plex Media Preparation Guide! | Learn how to collect Log filesGet MediaInfo to analyse video files

Plex Media Server: Mac OS X and ReadyNAS Pro 6 | Plex Clients: Mac Mini 2010 2.66Ghz, 2Gb RAM, AppleTV Gen 2, iPhone 3GS | LG 56" DLP-TV | Sherwood AV Amp | Storage: ReadyNAS Pro 6 with 6 x 2Gb Hitachi HDD for 8Tb storage | Network: Cat 6 cabled, 1000BaseT


#9 Rich O

Rich O

    Member

  • Members
  • PipPip
  • 68 posts

Posted 06 June 2013 - 11:46 AM

That's awesome, thanks for the update.. Saves me a lot of time this weekend.. :-)

#10 Dejh0n

Dejh0n

    Member

  • Members
  • PipPip
  • 20 posts

Posted 06 June 2013 - 12:32 PM

I succeeded to make it work with Readynas x86:
 
 
change 80 to 8080

 

This did the trick!



#11 f00b4r

f00b4r

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 2706 posts

Posted 06 June 2013 - 01:50 PM

I will add a link to this thread on the wiki.


Plex @ aTV - think different: PlexConnect

-> the missing link between Plex Media Server and your AppleTV - 2 or 3, jailbroken or not.

How to report an issue: click here

Sources: click here

Wiki: click here

 


#12 Skym4x

Skym4x

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 06 June 2013 - 05:58 PM

Hi,

 

I try doing this : env GIT_SSL_NO_VERIFY=true  git clone https://github.com/i...PlexConnect.git

and I end up with this error :

 

/c/.rfw/bin$ env GIT_SSL_NO_VERIFY=true git clone https://github.com/i...PlexConnect.git
env: git: No such file or directory
 
Am I missing something ?


#13 justdoit

justdoit

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 06 June 2013 - 10:42 PM

works on a ReadyNAS Ultra 6 Plus

but to get it work the ssh connection has to run all the time (ex terminal / sudo ./PlexConnect.py) ??



#14 Rich O

Rich O

    Member

  • Members
  • PipPip
  • 68 posts

Posted 07 June 2013 - 06:40 AM

works on a ReadyNAS Ultra 6 Plus[/size]
but to get it work the ssh connection has to run all the time (ex terminal / sudo ./PlexConnect.py) ??[/size]


I'm no expert but, Have you tried running in daemon mode "sudo ./PlexConnect.py -d"

#15 Dejh0n

Dejh0n

    Member

  • Members
  • PipPip
  • 20 posts

Posted 07 June 2013 - 10:55 AM

I'm no expert but, Have you tried running in daemon mode "sudo ./PlexConnect.py -d"

 

I have found the same issue.. Kinda the opposite point of trying to get it running on the NAS



#16 Chrobrego

Chrobrego

    Dedicated Member

  • Members
  • PipPipPip
  • 105 posts

Posted 07 June 2013 - 11:27 AM

works on a ReadyNAS Ultra 6 Plus

but to get it work the ssh connection has to run all the time (ex terminal / sudo ./PlexConnect.py) ??

 

I can quit the terminal and that still works. I am using ssh from a linux client with LXTerminal. Could it be that you use Putty? Maybe you could try "./PlexConnect.py &"



#17 Chrobrego

Chrobrego

    Dedicated Member

  • Members
  • PipPipPip
  • 105 posts

Posted 07 June 2013 - 11:30 AM

Hi,

 

I try doing this : env GIT_SSL_NO_VERIFY=true  git clone https://github.com/i...PlexConnect.git

and I end up with this error :

 

/c/.rfw/bin$ env GIT_SSL_NO_VERIFY=true git clone https://github.com/i...PlexConnect.git
env: git: No such file or directory
 
Am I missing something ?

 

Have you installed git (http://www.readynas.com/?p=3443)?



#18 Wassit

Wassit

    Member

  • Members
  • PipPip
  • 59 posts

Posted 07 June 2013 - 05:49 PM

@Chrobrego

First off a big thank you, works a treat.

 

What would be amazing is if the ./PlexConnect command could be run at startup of the ReadyNas. Could some command be added to the etc/init.d/ directory to make this happen? Any ideas?



#19 Chrobrego

Chrobrego

    Dedicated Member

  • Members
  • PipPipPip
  • 105 posts

Posted 07 June 2013 - 08:29 PM

What would be amazing is if the ./PlexConnect command could be run at startup of the ReadyNas. Could some command be added to the etc/init.d/ directory to make this happen? Any ideas?

 

I agree. But my NAS keeps running with only occasional reboots.

I am a bit reluctant to experiment there as I had bad experience with this on another linux machine where sometimes the boot process just hangs if the startup script is not properly written.

A few pointer though. Here is the standard procedure for Debian (which Readynas OS is based on): http://www.debian-ad...org/articles/28

But the best would be to have a real readynas Add-On. Here is the procedure to write one, but I have no experience in this. http://www.readynas.com/?p=346



#20 Wassit

Wassit

    Member

  • Members
  • PipPip
  • 59 posts

Posted 07 June 2013 - 08:51 PM

I agree. But my NAS keeps running with only occasional reboots.

I am a bit reluctant to experiment there as I had bad experience with this on another linux machine where sometimes the boot process just hangs if the startup script is not properly written.

A few pointer though. Here is the standard procedure for Debian (which Readynas OS is based on): http://www.debian-ad...org/articles/28

But the best would be to have a real readynas Add-On. Here is the procedure to write one, but I have no experience in this. http://www.readynas.com/?p=346

 

I understand you reluctance I was nervous of even following the python/PlexConnect scripts in case I knackered my Readynas. Not much point having an expensive storage redunancy if you mess up what its running on!

 

Thanks for the links, really useful I will have a look but don't hold your breath.  :)

 

Hopefully someone with a lot more ReadyNas add on skills than me is already working on it. 





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users