Not another personal blog.

NZBGet Pi

First SSH into Pi

Now we’ll download the and install the NZBGet to /opt.
To do this we’ll need to make a directory

sudo mkdir /opt/nzbget

Download the run script to /tmp using wget with the -P flag to determine the destination directory

wget https://nzbget.net/download/nzbget-latest-bin-linux.run -P /tmp

Make the script executable

chmod +x /tmp/nzbget-latest-bin-linux.run

Now run the script to install

sudo sh /tmp/nzbget-latest-bin-linux.run --destdir /opt/nzbget

Now we’ll create the systemd file so we can start NZBGet now and automatically.

sudo nano /etc/systemd/system/nzbget.service

Paste the following

[Unit]
Description=NZBGet
After=network.target

[Service]
User=root
Group=root
Type=forking
ExecStart=/opt/nzbget/nzbget -c /opt/nzbget/nzbget.conf -D
ExecStop=/opt/nzbget/nzbget -Q
ExecReload=/opt/nzbget/nzbget -O
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

I have used root as user and group since the hard drives I am using are shared folders from a Windows PC and those folders are mounted by root.

Enable the service.

sudo systemctl enable nzbget

Now start the service

sudo systemctl start nzbget

Check it’s working

sudo systemctl status nzbget

Now open a browser and go to the local IP with 6789 appended
e.g. 192.168.1.100:6789

To login you’ll need
Username – nzbget
Password – tegbzn6789

Leave a Reply

Close Menu