Installing SABnzbdPLUS on Ubuntu x86_64
The idea behind my mediacenter is ofcourse to store all my media at a single computer. I might add TV functionality to it, but that’s gonna cost me since the Cable supplier uses a Smartcard verification system, which requires special hardware. So, I’ll just download my media at first.Since downloading movies and music is legal, but uploading isn’t, the use of torrents isn’t exactly what I was looking for. I’ve been using Usenet for a while and I like it a lot: It’s quick, it offers the content I’m looking for and there is no need for uploading. So, it’s fully legal to fill up my mediacenter. (That is, in the Netherlands, at the moment of writing this post). The only downside of Usenet is that I need a USP: a Usenet Service Provider.
For downloading off usenet, special programs are required. I’m using SABnzbdPLUS. This program downloads automattically, repairs, unpacks everything and can be run in the background. It’s Open Source Software, written in Python. For Windows, a click-and-go package is available for free download. For my Ubuntu system, it took a little more work, but it’s a well spent 10 minutes to get it up and running.
Grab your package at SourceForge. Take a quick look at the README and find out the requirements. Now, install the packages and install them:
apt-get install python python-cherrypy python-cheetah python-elementtree python-yenc python-feedparser unrar unzip par2That should be it, really. Unzip the package and start the program:
python SABnzbd.pyWithin 5-10 seconds your web browser will start and show the user interface.
Use the “Help” button in the web-interface to be directed to the SABnzbd+ Wiki. If you encounter problems, take a look at the error log. It’s quite specific about what’s causing the error. Mostly, it’s a configuration error or a missing package.
- Don’t know your server settings? The USP sent them to you. Most common Usernet port is 119.
To get SABnzbd+ to startup on boot was littlebit of a hassle. I figured out that the program could be run at background if the ini-file is set manually. I also edited the main program to prevent it from opening a browser on startup, since the optional --nobrowser didn’t work. Look for this line in SABnzbd.py :
launch_a_browser("http://%s:%s/sabnzbd" % (browserhost, cherryport))
and change it to look like this:
#launch_a_browser("http://%s:%s/sabnzbd" % (browserhost, cherryport))
- Don’t forget, Python is specific about indents. So, make sure you keep the indents the way they were.
To get SABnzbd+ to run on boot, I created a single command to start the program. The weird part was that it wouldn’t start on boot! I added the program to my /etc/init.d/ and to the various /etc/rcx.d/ directories. Finally, I got it to work using the Gnome sessions manager. Here’s the script, called startsabnzbd:
#!/bin/sh
/home/jaap/sabnzbd/sabnzbd-0.3.0rc3/SABnzbd.py --nobrowser -d -f /home/jaap/.sabnzbd/sabnzbd.ini
After I added this script to the startup list in the Sessions manager, all was good.
This entry was posted on Thursday, December 27th, 2007 at 12:50 and is filed under Blog, Commandline, Mediacenter, SABnzbd, Testing, Ubuntu, Unix general. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


Sander December 28th, 2007 at 16:20
Beulbek / Jaap,
Good to hear it also works on x86_64.
Clever to put ‘python’ also into apt-get: just in case…
Is there a reason to leave out python-celementtree from the apt-get? It thought python-celementtree is also needed by SABnzbd?
Sander