useradd --system --shell /bin/false --no-create-home --home /home/sabnzbd sabnzbd
ln --symbolic /usr/src/sabnzbd /home/sabnzbd
cd /usr/src/
git clone git://github.com/sabnzbd/sabnzbd.git
chown --recursive sabnzbd:sabnzbd sabnzbd
apt-get install python python-cheetah python-configobj python-feedparser python-dbus python-openssl python-support python-yenc par2 zip
In order to install the non-free version of unrar
, you will need to have non-free
defined in /etc/apt/sources.list
/etc/apt/sources.list
deb http://http.us.debian.org/debian wheezy main contrib non-free
apt-get update
You should see the non-free version now when you search for unrar
apt-cache search unrar
unrar - Unarchiver for .rar files (non-free version)
apt-get install unrar
You can get a dramatic performance increase while repairing archives by using a multithreaded version of par2
.
cd /usr/src
wget 'http://chuchusoft.com/par2_tbb/par2cmdline-0.4-tbb-20100203.tar.gz'
tar -xvzf par2cmdline-0.4-tbb-20100203.tar.gz
cd par2cmdline-0.4-tbb-20100203
sed -i '1s/^/#include <memory>\n/' {par2cmdline,commandline,par2creator,par2repairer}.cpp
ln -s /usr/bin/aclocal /usr/bin/aclocal-1.10
ln -s /usr/bin/automake /usr/bin/automake-1.10
apt-get install libtbb-dev
./configure
make
strip par2
mv /usr/bin/par2 /usr/bin/par2.bak
mv par2 /usr/bin
cp sabnzbdplus.init /etc/init.d/sabnzbdplus
cp sabnzbdplus.default /etc/defaults/sabnzbdplus
chmod +x /etc/init.d/sabnzbdplus
/etc/init.d/sabnzbdplus start
SABnzbd+ can be configured remotely with the help of port forwarding.
ssh -L 8080:localhost:8080 <server>
Opening a browser to http://localhost:8080 should present you with the Quick-Start Wizard
update-rc.d sabnzbdplus defaults
Due to the way sabnzbd development occurs, master
is always a stable branch.
Updating is as simple as:
cd /usr/src/sabnzbd
sudo -u sabnzbd git pull
Then restart the sabnzbd daemon with
/etc/init.d/sabnzbdplus restart
If your init script terminates with no output then it's probably exiting at line 30 which (I think) means either your daemon (SABnzbd.py) is not executable or your settings are not readable.
In my case I had sab source code on a drive which had been mounted with
rw,user
options, which means it ends up in /etc/mtab with thenoexec
flag.