Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

PlexConnect on a NAS drive (ReadyNAS).?

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.

Best Answer

  • pardieupardieu Posts: 114Members ✭✭
    edited March 2014 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
«13456717

Answers

  • f00b4rf00b4r Posts: 2,914Members, Plex Pass Plex Pass
    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.
  • richard_owen@me.comrichard_owen@me.com Posts: 75Members ✭✭
    edited June 2013
    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.. :-)
  • boots2xboots2x IP Challenged Ninja Posts: 1,184Members, Plex Pass, Plex Ninja Plex Ninja

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

    James

  • robiv8robiv8 Posts: 8Members ✭✭

    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?

  • f00b4rf00b4r Posts: 2,914Members, Plex Pass Plex Pass
    daisy wrote on June 5 2013, 1: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?

    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.

  • pardieupardieu Posts: 114Members ✭✭
    edited March 2014 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
  • boots2xboots2x IP Challenged Ninja Posts: 1,184Members, Plex Pass, Plex Ninja Plex Ninja
    Chrobrego wrote on June 6 2013, 10:18 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

  • richard_owen@me.comrichard_owen@me.com Posts: 75Members ✭✭
    That's awesome, thanks for the update.. Saves me a lot of time this weekend.. :-)
  • Dejh0nDejh0n Posts: 31Members, Plex Pass Plex Pass
    edited June 2013
    Chrobrego wrote on June 6 2013, 10:18 AM: »

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

    This did the trick!

  • f00b4rf00b4r Posts: 2,914Members, Plex Pass Plex Pass

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

  • Skym4xSkym4x Posts: 2Members

    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/iBaa/PlexConnect.git
    env: git: No such file or directory
     
    Am I missing something ?
  • justdoitjustdoit Posts: 5Members, Plex Pass

    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) ??

  • richard_owen@me.comrichard_owen@me.com Posts: 75Members ✭✭
    justdoit wrote on June 6 2013, 10:42 PM: »

    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"
  • Dejh0nDejh0n Posts: 31Members, Plex Pass Plex Pass
    Rich O wrote on June 7 2013, 6:40 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

  • pardieupardieu Posts: 114Members ✭✭
    edited June 2013
    justdoit wrote on June 6 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) ??

    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 &"

  • pardieupardieu Posts: 114Members ✭✭
    Skym4x wrote on June 6 2013, 5: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/iBaa/PlexConnect.git
    env: git: No such file or directory
     
    Am I missing something ?

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

  • wassitwassit Posts: 59Members, Plex Pass

    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?

  • pardieupardieu Posts: 114Members ✭✭
    edited June 2013
    wassit wrote on June 7 2013, 5:49 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-administration.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

  • wassitwassit Posts: 59Members, Plex Pass
    Chrobrego wrote on June 7 2013, 8:29 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-administration.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. 

  • richard_owen@me.comrichard_owen@me.com Posts: 75Members ✭✭
    I'm using terminal in OSX to run plexconnect on the readynas..

    Has anyone managed to get this to work and be able to close terminal yet.?
«13456717
Sign In or Register to comment.