i just did it 3 hours ago... was quiet easy ...
=== set up a jail via TheBrig
- mine called "download"
- jail type full
- remember to create da directory in you jail's folder for fstab (mine looks like this "/mnt/pool1/downloads /mnt/pool1/jails/download/mnt/downloads nullfs rw 0 0")
- i set "Route only TCP/IP within a jail" in TheBrig's config but i down know if it's important
=== install pyload
- SSH to your NAS
- get the jail ID (jls)
- log into your jail "jexec ID csh"
- create an dir for pyload "mkdir /usr/local/share/pyload"
- enter pyload dir "cd /usr/local/share/pyload/"
- get the pyload source "fetch
http://download.pyload.org/pyload-src-v0.4.9.zip"
- unpack it "unzip pyload-src-v0.4.9.zip"
- move to your current dir "mv pyload/* ./ ; rmdir pyload"
- install dependencies
Code: Select all
pkg_add -r py27-curl
pkg_add -r py27-Jinja2
pkg_add -r py27-beaker
pkg_add -r py27-pycrypto
pkg_add -r tesseract
pkg_add -r tesseract-data
pkg_add -r py27-imaging
pkg_add -r spidermonkey17
pkg_add -r py27-feedparser
pkg_add -r py27-beautifulsoup
pkg_add -r py27-openssl
pkg_add -r python
pkg_add -r py27-sqlite3
- run pyload setup "/usr/local/bin/python /usr/local/share/pyload/pyLoadCore.py -s" (remember your download dir from above)
- testrun pyload "/usr/local/bin/python /usr/local/share/pyload/pyLoadCore.py --daemon"
if everything works fine, setup autorun:
- leave your jail "exit"
- open /etc/rc.conf.local (nano /etc/rc.conf.local)
- look up you jails section, add/extend the following lines:
Code: Select all
jail_download_exec_start="/usr/local/bin/python /usr/local/share/pyload/pyLoadCore.py --daemon"
jail_download_exec_prestop="/usr/local/bin/python /usr/local/share/pyload/pyLoadCore.py -q"
(you see your jail-name in the line, mine is "download", replace with your jail name)
thats it, you can now access the webinterface "JAILIP:8000"
(with help from here:
http://forum.pyload.org/viewtopic.php?f=7&t=1798 and
viewtopic.php?f=79&t=3894)