Sabnzbd: Difference between revisions

From Leo's Notes
This page was last edited on 1 September 2019, at 06:21.
m Text replacement - "{{Navbox Linux}}{{Navbox Linux}}" to "{{Navbox Linux}}"
m Text replacement - "Category:Linux{{Navbox Linux}}" to "{{Navbox Linux}}Category:Linux"
Line 37: Line 37:
* http://sabnzbd.org/ - Official Website
* http://sabnzbd.org/ - Official Website


[[Category:Linux]]{{Navbox Linux}}
{{Navbox Linux}}[[Category:Linux]]
[[Category:Usenet]]
[[Category:Usenet]]

Revision as of 06:21, 1 September 2019

Sabnzbd is a binary usenet newsreader written in Python. It is capable of downloading and merging binary articles based on a .nzb file.

Installation

CentOS 7

Installation under CentOS 7 is straight forward. Use the setup script below as a guide.

#!/bin/bash

yum -y install epel-release
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
yum -y install par2cmmdline unzip unrar

groupadd -r -g 250 downloaders
adduser -M -d /usr/local/sabnzbd -r -u 251 -g 250 sabnzbd

mkdir /usr/local/sabnzbd
chown sabnzbd:downloaders /usr/local/sabnzbd

su - sabnzbd -c "git clone https://github.com/sabnzbd/sabnzbd.git /usr/local/sabnzbd"

Sabnzbd can be started using a systemd startup script by executing:

# screen -S sabnzbd -dm su - sabnzbd -c "/usr/local/sabnzbd/SABnzbd.py --config-file /home/sabnzbd/data --server 10.1.2.3:8080"
Tip: Serve Sabnzbd on its own domain
You may wish to serve sabnzbd on its own domain such as sabnzbd.example.com. Use the following IPTable rule to forward port 80 to 8080:


iptables -A PREROUTING -t nat -i eno16777736 -p tcp -d 10.1.2.4 --dport 80 -j REDIRECT --to-port 8080


See Also