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 - 6.8
  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 INIT INFO box "$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 !

Like this article ? Bear with me on patreon!

You may also like...