plexpy Jail Installation

plexpy Jail Installation

(Note I haven't tested this on FreeNAS 9.10 or FreeNAS 11) --- If input is given I can update the guide.
  • Add PlexPy Jail (you can also install it within the PMS Jail if you wish)
  • Open the shell through plexpy.
  • pkg install python2 databases/py-sqlite3 security/py-openssl security/ca_root_nss git or if that doesn't work ~ pkg install python2 databases/py-sqlite3 security/ca_root_nss git
  • cd /usr/local/share/
  • git clone
  • chmod 777 plexpy or to allow one user: chown -R user:group plexpy
  • cd plexpy
  • python2
  • 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 777 /etc/rc.d/plexpy
      • edit /etc/rc.d/plexpy
        • edit the following line: ${plexpy_user:="xxxx"}
        • I just used 'root' for the plexpy_user
    • edit /etc/rc.conf and add plexpy_enable="YES" to another line.
    • Restart the plexpy jail
    • service plexpy start or service plexpy stop or service plexpy status can now be run
If you get this error:

env: python: No such file or directory
/etc/rc.d/plexpy: WARNING: failed to start plexpy

edit the first line in from

#!/usr/bin/env python to #!/usr/local/bin/python2.7

The following only applies if you installed PlexPy using git. Stop PlexPy, then run the following commands from the command line/shell in the PlexPy folder.

git remote set-url origin
git fetch origin
git checkout master
git branch -u origin/master
git reset --hard origin/master
git pull

  • Like
Reactions: fahadshery
First release
Last update
5.00 star(s) 3 ratings

More resources from Supa

Latest reviews

worked like a charm
Worked perfectly on FreeNAS 11
Easy to follow. Using this guide I was able to get it installed on FreeNAS 11 no problem.