-
Notifications
You must be signed in to change notification settings - Fork 0
/
03-sabnzbd.sh
58 lines (47 loc) · 2.17 KB
/
03-sabnzbd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#Install sabnzbdplus
echo 'deb http://ftp.nl.debian.org/debian/ buster main contrib non-free' | sudo tee -a /etc/apt/sources.list > /dev/null
echo 'deb-src http://ftp.nl.debian.org/debian/ buster main contrib non-free' | sudo tee -a /etc/apt/sources.list > /dev/null
sudo gpg --keyserver keyserver.ubuntu.com --recv-key 648ACFD622F3D138
sudo gpg -a --export 648ACFD622F3D138 | sudo apt-key add -
sudo gpg --keyserver keyserver.ubuntu.com --recv-key DCC9EFBF77E11517
sudo gpg -a --export DCC9EFBF77E11517 | sudo apt-key add -
sudo gpg --keyserver keyserver.ubuntu.com --recv-key 04EE7237B7D453EC
sudo gpg -a --export 04EE7237B7D453EC | sudo apt-key add -
sudo apt-get update
#sudo apt-get dist-upgrade
sudo apt-get install sabnzbdplus -y
#Need to edit the default configuration file to allow web access,copy of the orginal file (in case of any mistakes down the road)
sudo cp /etc/default/sabnzbdplus /etc/default/sabnzbdplus.old
#Re-create /etc/default/sabnzbdplus with correct user settings and ports
echo '# This file is sourced by /etc/init.d/sabnzbdplus
#
# When SABnzbd+ is started using the init script, the
# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either "required" or "optional";
# leaving any required setting unconfigured will cause
# the service to not start.
# [required] user or uid of account to run the program as:
USER=pi
# [optional] full path to the configuration file of your choice;
# otherwise, the default location (in $USERs home
# directory) is used:
CONFIG=
# [optional] hostname/ip and port number to listen on:
HOST=0.0.0.0
PORT=9090
# [optional] extra command line options, if any:
EXTRAOPTS=
' | sudo tee /etc/default/sabnzbdplus > /dev/null
#Install unrar
#wget http://sourceforge.net/projects/bananapi/files/unrar_5.2.6-1.arm6_armhf.deb
#sudo dpkg -i unrar_5.2.6-1.arm6_armhf.deb
#sudo rm unrar_5.2.6-1.arm6_armhf.deb
#Restart sabnzbd
sudo service sabnzbdplus restart
#check with
#sudo service sabnzbdplus status
#browse to http://<your-pi-ip>:9090
#Run script on Pi with
#wget -O - https://raw.githubusercontent.com/wdedood/raspberrypi/master/03-sabnzbd.sh | sudo bash