PlexPyOnFreeNAS

2nd January 2016 at 12:18pm

  • Add PlexPy Jail (you can also install it within the PMS if you wish)
  • Open the shell through plexpy.
  • pkg install python2 databases/py-sqlite3 security/py-openssl security/ca_root_nss git
  • cd /usr/local/share/
  • git clone https://github.com/drzoidberg33/plexpy.git
  • Create a new plexpy user with adduser
  • chown -R user:wheel plexpy
  • cd plexpy
  • python2 PlexPy.py
  • PlexPy will be loaded in your browser or listening @ http://localhost:8181
  • To automate the PlexPy script just do this (in root directory):
    • cp /usr/local/share/plexpy/init-scripts/init.freenas /etc/rc.d/plexpy
    • chmod 755 /etc/rc.d/plexpy
    • vi /etc/rc.d/plexpy
      • Edit the following line: ${plexpy_user:="plexpy"}
      • Edit /etc/rc.conf and add plexpy_enable="YES"
    • Restart the plexpy jail
    • service plexpy status or service plexpy start etc can now be run