(Note I haven't tested this on FreeNAS 9.10 or FreeNAS 11) --- If input is given I can update the guide.
https://github.com/JonnyWong16/plexpy/wiki/Installation#freenas
https://github.com/JonnyWong16/plexpy/wiki/Install-as-a-daemon#freenas
edit the first line in plexpy.py 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 https://github.com/JonnyWong16/plexpy.git
git fetch origin
git checkout master
git branch -u origin/master
git reset --hard origin/master
git pull
https://github.com/JonnyWong16/plexpy/wiki/Installation#freenas
https://github.com/JonnyWong16/plexpy/wiki/Install-as-a-daemon#freenas
- 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 https://github.com/JonnyWong16/plexpy.git
chmod 777 plexpy
or to allow one user:chown -R user:group plexpy
cd plexpy
python2 PlexPy.py
- PlexPy will be loaded in your browser or listening @ http://localhost:8181 (http://192.168.1.xxx: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 addplexpy_enable="YES"
to another line.- Restart the plexpy jail
- service plexpy start or service plexpy stop or service plexpy status can now be run
Code:
env: python: No such file or directory /etc/rc.d/plexpy: WARNING: failed to start plexpy
edit the first line in plexpy.py 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 https://github.com/JonnyWong16/plexpy.git
git fetch origin
git checkout master
git branch -u origin/master
git reset --hard origin/master
git pull