Now that sabnzbd is in optware feed, should the instruction below be simplified/adjusted?
ipkg update ipkg upgrade ipkg install coreutils ipkg install python ipkg install py-cheetah ipkg install py-cherrypy ipkg install py-elementtree ipkg install py-yenc ipkg install unrar ipkg install par2cmdline
Set up a guest account using the webinterface.
To test the guest user, use
Use the following to untar the SABnzbd-0.2.4 download:
su guest tar -xvzf SABnzbd-0.2.4.tar.gz [dir you like] exit
Then edit the SABnzbd.ini (in the unpack dir you just used) file and set it up to your liking. Make sure all dirs exists and are owned by guest. It is best to specify the entire path instead of relative paths. If you run into errors starting SABnzbd (especially through a script) this is most likely why.
You need a guest account to 'own' the python process, because thats the process that will create the download/temp/log files.
Set up a S99SABnzbd file in
if [ -n "`pidof python`" ]; then /bin/killall python 2>/dev/null fi su -l guest -c "/usr/bin/python /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.py -f /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.ini -d"
Test it using
Then your off, download a nzb file and put it in the appropriate dir.
To see progress use http://[slug ip]:8080/sabnzbd/
Make SSH connection with NSLU2.
Because a guest home directory does not exist we make one:
The default guest user has no shell defined which gives a
Download and unpack
Test SABnzbd using:
A default configuration will be created.
Modify the configuration settings in
Exit the user guest and become root again.
vi /opt/etc/init.d/S99SABnzbd? #!/bin/sh if [ -n "`pidof python`" ]; then
Save the script and apply correct permissions.
chmod 755 /opt/etc/init.d/S99SABnzbd?
Restart SABnzbd using the new settings:
Check the web interface at:
This works great, but to get version 0.4.4 working I needed to install these files too.
ipkg install py25-cheetah