PDA

Bekijk de volledige versie : Getting most recent version of SABnzbd to work, including webinterface



verjikd
22-08-2011, 12:00
A tutorial, as SABnzbd crashed always, with Python 2.5

I've done this on my Tomato-install on my RT-N16, but it should work on the Oleg firmware as well. It assumes that SABnzbd (py25-sabnzbd) was already installed, which makes unrar etc already installed. If you haven't installed SABnzbd yet, please do "ipkg install py25-sabnzbd" first!
NB1: you need to be logged in by Telnet or SSH.
Read everything, also the lines with # in front of it.

=> Remove python25 (will also erase other programs based on python 2.5!):
ipkg remove -force-removal-of-dependent-packages python25

# Download current version of SABnzbd
cd /opt
wget http://downloads.sourceforge.net/project/sabnzbdplus/sabnzbdplus/sabnzbd-0.6.8/SABnzbd-0.6.8-src.tar.gz?r=http%3A%2F%2Fsabnzbd.org%2Fdownload%2 F&ts=1314009901&use_mirror=netcologne

# Extract SABnzbd
gzip -dc SABnzbd-0.6.8-src.tar.gz | tar xf -

# Install python 2.6, as python 2.5 suffers form a cheetah bug
ipkg install python26
ipkg install py26-cheetah

# Create a starter, for automatic start after boot
echo "python2.6 /opt/SABnzbd-0.6.8/SABnzbd.py -f /opt/etc/SABnzbd.ini -d" > /opt/etc/init.d/S70SABnzbd
chmod a+x /opt/etc/init.d/S70SABnzbd

# Start SABnzbd once, so it creates an .ini file
python2.6 /opt/SABnzbd-0.6.8/SABnzbd.py -f /opt/etc/SABnzbd.ini

# Press CONTROL+c after 20 seconds, so SABnzbd gets killed

# Edit SABnzbd.ini, in order to make web-access possible from another PC
# I use nano, and to be sure for you let's install it first
ipkg install nano
nano /opt/etc/SABnzbd.ini

# Change the line with hosts, so that it says host = 0.0.0.0
# Exit nano by pressing CONTROL+w, press y and then ENTER
# Start SABnzbd as a deamon
python2.6 /opt/SABnzbd-0.6.8/SABnzbd.py -f /opt/etc/SABnzbd.ini -d

# Go with your webbrowser to http://ip-of-RTN16:8080/sabnzbd/
# Change the settings, especially the directories and the newsserver settings

Done :D