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.
- Update the system
apt-get update && apt-get -y upgrade
- 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
- 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
- Start the configuration
./configure--disable-libpar2-bugfixes-check
- Start the compilation
make
- Install
make install
- Generate configuration files
make install-conf
- You can now access NZBGet with the http address://<IP of your Pi Raspberry>:6789
The login : nzbget
The password : tegbzn6789
- 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.
- 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 !