Sabnzbd: Difference between revisions

From Leo's Notes
This page was last edited on 6 March 2017, at 01:15.
m Text replacement - "{{Highlight|lang=bash" to "{{highlight|lang=terminal"
formatting
Line 6: Line 6:
Installation under CentOS 7 is straight forward. Use the setup script below as a guide.
Installation under CentOS 7 is straight forward. Use the setup script below as a guide.


{{highlight|lang=terminal|code=
{{highlight|lang=bash|code=
#!/bin/bash
#!/bin/bash


Line 23: Line 23:


Sabnzbd can be started using a systemd startup script by executing:
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"
{{highlight|lang=terminal|code=
# screen -S sabnzbd -dm su - sabnzbd -c "/usr/local/sabnzbd/SABnzbd.py --config-file /home/sabnzbd/data --server 10.1.2.3:8080"
}}


{{Info|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:
{{Info|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:


{{Code|iptables -A PREROUTING -t nat -i eno16777736 -p tcp -d 10.1.2.4 --dport 80 -j REDIRECT --to-port 8080}}
 
{{highlight|lang=terminal|code=
iptables -A PREROUTING -t nat -i eno16777736 -p tcp -d 10.1.2.4 --dport 80 -j REDIRECT --to-port 8080}}
}}
}}



Revision as of 01:15, 6 March 2017

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