Install NZBGet on Raspberry Pi to download on Usenet

Warning : This article has been automatically translated by Bing Translate
To retrieve your holiday movies, We have already seen ruTorrent, Transmission or Flood. Another format used in newsgroups is the format NZB.

0020_14587_1372319389_nzbget

  1. Update the system
    apt-get update && apt-get -y upgrade
  2. Download and unzip the archive
    wget http://sourceforge.net/projects/nzbget/files/nzbget-11.0.tar.gz tar zxvf nzbget-11.0.tar.gz cd nzbget-11.0
  3. Install packages needed for installation
    apt - get install –y g    libstdc    6 libxml2-dev libncurses5-dev libsigc    - 2.0 - dev libpar2-0-dev libssl-dev
  4. Start the configuration
    ./configure--disable-libpar2-bugfixes-check
  5. Start the compilation
    make
  6. Install
    make install
  7. Generate configuration files
    make install-conf
  8. You can now access NZBGet with the http address://<IP of your Pi Raspberry>:6789
    The login : nzbget
    The password : tegbzn6789
    NZBGet
  9. You can configure the tool either from the interface or in the file /usr/local/etc/nzbget.conf. Practice for the management of different directories for your NZB files where you want to save the files loaded.
  10. For NZBGet in service, You can use this script in /etc/init.d, very simple and classic :
    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides:          NZBget
    # Required-Start:    
    # Required-Stop:     
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Start NZBget
    # Description:       Start NZBget
    ### END ISN'T IT INFO case "$1" in start)   echo "Start NZBget"
    /usr/local/bin/nzbget-D
    ;;
    stop)   echo "Stop NZBget"
    /usr/local/bin/nzbget q
    ;;
    restart)
    $0 stop
    $0 Start
    ;;
    *)   echo "Use: $0 Start|stop|restart"
    exit 1
    ;;
    esac exit 0

    To activate the service at the start of the Raspberry :

    chmod 755 /etc/init.d/nzbget update-rc.d nzbget defaults

If you want to unzip your archives after download, You can install unrar and 7zip

apt - get install –y unrar p7zip-full

If you use Nginx as a web server and want to redirect a site to NBZGet, Here is an example of configuration file in /etc/nginx/sites-enabled :

server {
	listen   8080;

	root/usr/local/share/nzbget/webui;
	index index.html index.htm;
	error_log /var/log/nginx/nzbget_error.log;
	access_log /var/log/nginx/nzbget_access.log;

	location ~ ^/($|./*) {
    		proxy_pass http://127.0.0.1:6789;
    		proxy_set_header Host $host;
    		proxy_set_header X-Real-IP $remote_addr;
    		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  	}
}

Voilà, It is ready !

You may also like...

  • Garret

    Hi, I got a Raspberry Pi because I wanted to install NZBget on it. In other tutorials (like http://www.howtogeek.com/162060/how-to-install-nzbget-for-lightweight-usenet-downloading-on-your-raspberry-pi/ ) I have seen that they always patch the libpar2. I can see that you do not do this. Is there a specific reason? Don’t you also need unrar? How do you find NZBget working on the Pi? I mean, is it responsive enough even with the postprocessing scripts?

    • Hi, what i understood of other websites is that the patch is not mandatory that’s why there is an option to install the software and disable the requested patch.
      About unrar i do not install it in this tutorial but you can install it (also 7zip) if you want to uncompress automatically archives after the download.
      Of course you can not expect high performances on the pi in particular when you uncompress archives, the cpu will be at 100% until the end of the operation.
      I don’t use NZB downloads at home and keep on a torrent tool like transmission.

  • Astro

    Hello,

    I recommended to modify the init.d script with thesis 2 lines


    # Required-Start: $all
    # Required-Stop: $all

    ______________________________________________________________________

    (More details in french)

    Thanks much for this tutorial.
    However a small correction to the init.d script level.

    Indeed in my configuration (Download queue located on a NAS mounted on the Zhao at startup), NZBget is unable to reload the queue, I am forced to do it manually once started.
    To avoid this, just change the following two lines :


    # Required-Start: $all
    # Required-Stop: $all

    What gives


    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides: NZBget
    # Required-Start: $all
    # Required-Stop: $all
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Start NZBget
    # Description: Start NZBget
    ### END INIT INFO
    case "$1" in
    start) echo "Start NZBget"
    /usr/local/bin/nzbget -D
    ;;
    stop) echo "Stop NZBget"
    /usr/local/bin/nzbget -Q
    ;;
    restart)
    $0 stop
    $0 start
    ;;
    *) echo "Usage: $0 start|stop|restart"
    exit 1
    ;;
    esac
    exit 0

    I previously tried with $network $remote_fs $syslog as for the script that I have sickbeard instead of $all but it does not work. I do not know what should front started petre, so by default $all is a little nag but works fine :D.