Last Updated: 10/20/2021
Official documentation here.
The first thing we'll do is install via APT - this likely won't install the latest version, but will at least install dependencies so we can install the latest version from GitHub.
Enable the contrib
component in /etc/apt/sources.list
by adding "contrib
" to the end of every "deb
" line.
vim /etc/apt/sources.list
Should end up looking something like this:
deb http://deb.debian.org/debian/ bullseye main contrib
deb-src http://deb.debian.org/debian/ bullseye main contrib
deb http://security.debian.org/debian-security bullseye-security main contrib
deb-src http://security.debian.org/debian-security bullseye-security main contrib
deb http://deb.debian.org/debian/ bullseye-updates main contrib
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib
Install SABnzbdPlus
apt update
apt install sabnzbdplus
You will likely receive errors from APT saying unrar
and several other pieces of software must be installed but cannot.
Download unrar from rarlab.com
wget https://www.rarlab.com/rar/unrar_5.2.5-0.1_amd64.deb
Install unrar
dpkg -i unrar*
Try to install again
apt install sabnzbdplus
Navigate to /opt/
and install the latest version from GitHub
cd /opt/
git clone https://github.com/sabnzbd/sabnzbd.git
Move into the new sabnzbd
directory and checkout the master version
git checkout master
Change file ownership to the media
user
chown -R media:media /opt/sabnzbd/
Install Python Pip (if not already installed)
apt install python3-pip
Use Python Pip to install dependencies defined in /opt/sabnzbd/requirements.txt
python3 -m pip install -r /opt/sabnzbd/requirements.txt -U
To update, go into the sabnzbd
git directory, and type:
git pull
Create a new systemd service file
vim /etc/systemd/system/sabnzbd.service
with the following contents
[Unit]
Description=SABnzbd Usenet Client
After=network.target
[Service]
Type=simple
User=media
Group=media
ExecStart=/usr/bin/python3 -OO /opt/sabnzbd/SABnzbd.py --browser 0
ExecStop=/usr/bin/pkill sabnzbdplus
Restart=always
SyslogIdentifier=SABnzbd Usenet Client
[Install]
WantedBy=multi-user.target
Reload systemd
systemctl daemon-reload
Stop and disable the APT installation of SABnzbd
systemctl stop sabnzbdplus.service
systemctl disable sabnzbdplus.service
Enable and start the GitHub installation
systemctl enable sabnzbd.service
systemctl start sabnzbd.service
SABnzbd is only accessible via localhost after installation. If you are remote to the server, setup an SSH tunnel to gain access.
This is forward port 8080 of your client machine over SSH to port 8080 of ‘localhost’, which is the server itself.
ssh ross@10.20.30.40 -L 8080:localhost:8080
In your browser, navigate to http://localhost:8080