Setup sabnzbd

From WikiDLXTV
Revision as of 11:16, 8 September 2011 by Desmoloch (Talk | contribs) (Created page with 'SABnzbd is an Open Source Binary Newsreader written in Python. = Installation = 1) Get b-rad's opt.bin and place it on your attached USB-drive ([url][/url]) 2) Use telnet or s…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SABnzbd is an Open Source Binary Newsreader written in Python.


Installation

1) Get b-rad's opt.bin and place it on your attached USB-drive ([url][/url]) 2) Use telnet or ssh to connect to the device, and type: 'ipkg update' and 'ipkg install sabnzbdplus' (without the quotes) 3) Make sure all dependencies are downloaded and installed correctly. These include python, cheetah, cherrypy, bzip2, unrar among others. If not, install them manually. Use 'ipkg list' and 'ipkg list_installed' for assistance if needed. 4) Even though you've already got SABnzbdplus downloaded and even installed, I recommend downloading SABnzbdplus via Sourceforge using the 'wget' command and then unpacking manually into /opt/share/SABnzbdplus and discard the existing folder. For some reason this way has always worked better for me. So basically what you need to do is to navigate to the /opt/share/ folder and use this command to get the newest version. CODE: SELECT ALL wget

5) I recommend installing mc via ipkg as well to deal with the unpacking and stuff. 6) Before getting SABnzbdplus to listen on your device's local ip, we need a config file called 'sabnzbd.ini'. To get this generated automatically you have to run SABnzbdplus once. Type in the following to do so and adjust according to your version of python. CODE: SELECT ALL /opt/bin/python2.6 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/sabnzbd.ini

Usually we'd prefer SABnzbdplus to be run in daemon mode (-d), but since this is the first time launching, we can check to see if SABnzbdplus starts alright. If it does (that is if no errors occur), just quit/exit SABnzdplus again and navigate to /opt/share/SABnzbd/ using mc, locate sabnzbd.ini, and edit the file (F4). Scroll down to "host" and change 'localhost' to '0.0.0.0'. Save the file (F2). 7) Now SABnzbdplus should work. Start it again using the -d mode like this: CODE: SELECT ALL /opt/bin/python2.6 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/sabnzbd.ini -d

8) Try to reach SABnzdplus from your PC or Mac on: . If all works well, you should now be met with a configuration wizard. 9) If this was a success, you might be interested in getting SABnzdplus to launch automatically at boot. This is done by creating a script and placing it in /opt/etc/init.d/. Here's how my script looks. Adjust according to IP, paths, user/pass etc.

  1. !/opt/bin/bash

case "$1" in start)

 echo "Starting SABnzbd."
 /opt/bin/python2.6 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/sabnzbd.ini -d

stop)

 echo "Shutting down SABnzbd."
 wget -q --delete-after "]"
  • )
 echo "Usage: $0 {start|stop}"
 exit 1

esac

exit 0


10) Just save it as "S##SABnzbd", the # being a numeric value between 0 and 9 in accordance with WDLXTV's execution order (thanks b-rad). For instance, the name "S89SABnzbd" works for me. Remember to place the file in /opt/etc/init.d/, locate it using telnet/ssh and use the following command to get it executable: CODE: SELECT ALL chmod +x sabnzdplus


Now everything left for you to do is configuring SABnzdplus. Enjoy