Install NZBGet on Arch Linux
NZBGet is a Usenet downloader that is stable, fast and packs a lot of features. It is available as a package on Arch Linux but does not come with systemd file out of the box. Fortunately it is simple to add a systemd configuration file.
Set up credentials
Create a system account and group of the same name that NZBGet will run under.
sudo useradd -r -s /bin/false nzbget
Optionally add the user to secondary groups.
sudo usermod -a -G utserver nzbget
Install NZBGet
Install with pacman.
sudo pacman -S nzbget
Install packages for all optional features.
sudo pacman -S libpar2 unrar unzip p7zip
Alternatively install UnRAR, UnZIP, p7zip and libpar2 individually.
Configure NZBGet
Copy default configuration file to the newly created directory.
sudo cp /usr/share/nzbget/nzbget.conf /etc/nzbget.conf
Edit the configuration file.
sudo nano /etc/nzbget.conf
To run the daemon as nzbget
user modify the DaemonUsername
from the default root
to nzbget
. Change the the default download directory by editing MainDir
. Most other options can be changed later from within the GUI.
Change configuration file ownership.
sudo chown nzbget:nzbget /etc/nzbget.conf
NZBGet Download Directories
Create the download directory.
sudo mkdir /mnt/downloads/nzbget
Set the ownership of the download directory.
sudo chown -R nzbget:nzbget /mnt/downloads/nzbget
Set the permissions of the download directory.
sudo chmod -R 770 /mnt/downloads/nzbget
Configure NZBGet
Create a systemd script.
sudo nano /etc/systemd/system/nzbget.service
Copy the script and save the systemd configuration file.
[Unit] Description=NZBGet Daemon After=network.target After=mnt-downloads.mount [Service] User=nzbget Group=nzbget Type=forking ExecStart=/usr/bin/nzbget -D ExecStop=/usr/bin/nzbget -Q ExecReload=/usr/bin/nzbget -O KillMode=process [Install] WantedBy=multi-user.target
The mount dependency is only necessary when the main NZBGet directory is on a non-system drive.
Run NZBGet
Start the daemon manually as a system user.
sudo -u nzbget /usr/bin/nzbget -D
Start the service with systemd.
sudo systemctl start nzbget
Enable the service to run on boot with systemd.
sudo systemctl enable nzbget
Use NZBGet
Access the web interface on 192.168.0.100:6789 and configure it using the settings page. Change 192.168.0.100
to the actual IP address if different. Leave the default port as 6789
unless it has been changed. Log in with default username nzbget
and password tegbzn6789
.