Saturday, October 22, 2011

SABnzbd with Bonjour patch

With a patch, SABnzbd will announce itself via Bonjour. That way, you can find SABnzbd's web interface easily on your LAN. No need to hassle with IP addresses and port numbers.

I've tested this patched SABnzbd on Ubuntu. Here's how to use it:

  1. Make sure the plain SABnzbd is working on your system.
  2. The "SABnzbd Host" under Config -> General should state 0.0.0.0 (or ::) so that SABnzbd listens on the LAN interface
  3. Install an additional library: sudo apt-get install libavahi-compat-libdnssd1
  4. Download the patched SABnzbd 0.6.10 here and unpack it. Go into that directory
  5. Stop the plain SABnzbd if it is running
  6. Start the patched SABnzbd called "SABnzbd-bonjour.py", which you can find in the unpacked directory

SABnzbd should now advertise itself via Bonjour. Install and start avahi-discover to see it. See the included screenshot.

If you want to see Bonjour services from within Chrome/Chromium or Firefox (on any OS), go to http://dnssd.me/ and install the DNSSD extension. This should work on Linux (with Avahi installed), Mac OS X, and Windows (with itunes installed). See the included screenshot for an example.

Some remarks about using this patched SABnzbd on other operating systems:
  • Other Linux versions: it should work after you install the needed libraries for avahi and the avahi-compat stuff
  • Unix versions (for example embedded on NAS devices): it all depends on the libraries
  • Mac OS X: I guess the patched SABnzbd should work if you can get the plain SABnzbd-source-version working. Please give feedback
  • Windows: I have no idea as I don't know how to run SABnzbd from source on Windows. If you're going to try this, first make sure itunes is installed
Feedback welcome in the comments

PS: there's very little IPv6 in this stuff, but it's quite network oriented, so I posted it here.


Saturday, October 15, 2011

Easy NZB-downloading on Ubuntu 11.10 with nzbget via free IPv6-only Newsservers

Ubuntu 11.10 (also known as Oneiric Ocelot) has got the NZB-downloader nzbget in its repositories. Combined with IPv6 based on miredo, and the free IPv6-only Newsservers, downloading NZBs is easy and you don't need a newsserver account. Here's the howto:


Open a terminal and type:

sudo apt-get install nzbget miredo
zcat /usr/share/doc/nzbget/examples/nzbget.conf.example.gz > ~/.nzbget

nzbget -s  -o Server1.Host=weathergirl-ipv6.tele2.net 

The above will start the nzbget daemon.


Then, create a NZB, for example via http://binsearch.info/ and download it. Let's say its name is mynzb.nzb


Finally, open another terminal, add the NZB you want to download to nzbget's queue, for example: 

nzbget -A ~/Downloads/mynzb.nzb

Switch back to the 'daemon'-terminal, and you should see the nzgbet daemon downloading your request. It will end up in ~/download/dst/


If it doesn't work, check that your IPv6 is working; make sure you get an output like this:

ubuntu@ubuntu:~$ ping6 -c4 ipv6.google.com

64 bytes from ey-in-x63.1e100.net: icmp_seq=1 ttl=57 time=115 ms
64 bytes from ey-in-x63.1e100.net: icmp_seq=2 ttl=57 time=25.8 ms
64 bytes from ey-in-x63.1e100.net: icmp_seq=3 ttl=57 time=27.2 ms
64 bytes from ey-in-x63.1e100.net: icmp_seq=4 ttl=57 time=205 ms

--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 25.801/93.545/205.635/74.216 ms
ubuntu@ubuntu:~$

Remarks:
  • Instead of weathergirl-ipv6.tele2.net, you can use the other IPv6-only accountless newsserver: newszilla6.xs4all.nl
  • If you want to use a newsserver that requires an account, use something like "nzbget -s  -o Server1.Host=your.newsserver.com -o Server1.Username=user -o Server1.Password=pass" in the 'daemon'-terminal
  • The plain nzbget does not take care of rar and par. However, there's a postprocessing script somewhere in the intall. EDIT: see /usr/share/doc/nzbget/examples/postprocess-example.* 
  • If you prefer a more GUI-like NZB-downloader, check out SABnzbd: http://sabnzbd.org/
  • Older Ubuntu's haven't got nzbget in the standard repositories. However, there's a PPA: http://ppa.launchpad.net/volkris/ppa/ubuntu/pool/main/n/nzbget/

Happy downloading!