Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
thadapacadava
Newbie
Newbie
Posts: 15
Joined: December 25th, 2012, 6:16 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by thadapacadava »

Okay got it running as a service at boot

Any opinions on the best method for mounting/unmounting the USB flash stick? The idea is to remotely trigger downloads, come home and remove the USB flash stick and then copy the files as necessary. Once done plug it back in for another round.

Should I just format to another file system?
thadapacadava
Newbie
Newbie
Posts: 15
Joined: December 25th, 2012, 6:16 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by thadapacadava »

Feel free to prune my posts or move as necessary, I am posting as I learn details and figure someone can chime in when they want

pi@uber-PI:~$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.0G 951M 5.7G 15% /
/dev/root 7.0G 951M 5.7G 15% /
devtmpfs 243M 0 243M 0% /dev
tmpfs 49M 336K 49M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda1 58G 88M 58G 1% /media/usb0
tmpfs 146M 0 146M 0% /run/shm
/dev/mmcblk0p1 78M 17M 62M 22% /boot

Nothing appears in SAB.
thadapacadava
Newbie
Newbie
Posts: 15
Joined: December 25th, 2012, 6:16 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by thadapacadava »

Okay I'm getting permission denied when trying to browse to that path in CLI. Makes sense now.

But how to fix?
thadapacadava
Newbie
Newbie
Posts: 15
Joined: December 25th, 2012, 6:16 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by thadapacadava »

This is my fstab:

/dev/sda1 /media/usb0 auto rw,user,noauto 0 0

Anything need to be done? I already edited usbmount.conf according to instructions in - http://selfprogramming.bplaced.net/inde ... -raspbian/
thadapacadava
Newbie
Newbie
Posts: 15
Joined: December 25th, 2012, 6:16 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by thadapacadava »

Okay. Looks like it's mounting it as root. I don't even have read access ATM.

I tried sudo chown and sudo chmod and the command works, but the permissions are always:

pi@uber-PI:/media$ sudo ls -l /media/usb0
total 0
dr-x------ 1 root root 0 Dec 27 19:59 SABnzbd
dr-x------ 1 root root 0 Dec 6 09:47 System Volume Information
Tzzmzph
Newbie
Newbie
Posts: 1
Joined: December 28th, 2012, 2:08 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by Tzzmzph »

Hi Linux noob here too ;)
was having problems with permissions on my NTFS mounted USB drive and turned out I needed to install the NTFS-3g drivers and change the fstab from Auto to ntfs-3g then everything started working OK
might this help you thadapacadava?
thadapacadava
Newbie
Newbie
Posts: 15
Joined: December 25th, 2012, 6:16 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by thadapacadava »

I ended up fixing it by:

installing ntfs-3g
editing my fstab to include umask=000

Sorry for spamming the forums, learning this all from scratch it helped writing it down

Random question - What's the best way to keep up to date on a cloned git on rpi? Just reclone every now and then?
darthfoolish
Newbie
Newbie
Posts: 3
Joined: January 15th, 2013, 4:20 pm

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by darthfoolish »

I'm having a weird problem with this package on Raspbian.

My sabnzbd.ini file gets changed on every reboot, just the one line

My download_dir keeps defaulting back to Downloads/incomplete, which isn't much use on a raspberry pi.

It doesn't happen when I restart the service, only when I reboot the pi, so I am tearing my hair out trying to figure out what is causing it.

None of my other folders change, and they are on the same share that I want download_dir to be on.

Any ideas?

I'm trying to figure out if there is a piece of software that can tell me what is modifying my file
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by sander »

defaulting back from what? If it's an external drive the reason is clear: the external drive is not ready/seen at the moment SABnzbd starts up.

Solution: make sure the external is available when SABnzbd starts ... This could mean NOT starting SABnzbd at boot time ...
darthfoolish
Newbie
Newbie
Posts: 3
Joined: January 15th, 2013, 4:20 pm

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by darthfoolish »

D'oh - that sort of makes sense, but only if it happened with all my non default folders.

I will make sure the drive is mounted before sabnzbd starts, to see if it helps, worth a try!
darthfoolish
Newbie
Newbie
Posts: 3
Joined: January 15th, 2013, 4:20 pm

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by darthfoolish »

Hmmm...I thought the correct way to influence service startup order was to specify required starts in the init.d script, but $remote_fs is already there in the sabnzbdplus one

It is a samba share I want to have my download_dir on btw
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by sander »

Maybe a crontab entry with @reboot with a command starting with "sleep 60; ..." ?

Disclaimer: never tried this myself.
tachioma
Newbie
Newbie
Posts: 4
Joined: January 18th, 2013, 2:23 pm

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by tachioma »

This may be a little off topic, but what is the maximum throughput people have achieved with Sab on a Pi?

So far I've only managed 1.1MB, but I haven't tweaked anything on it other than the the memory split.
bluc
Newbie
Newbie
Posts: 19
Joined: March 8th, 2013, 3:54 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by bluc »

Have sab installed on my pi, wondering if anyway to delay start up of sabnzb.
I have sab installed as service and my external storage automounts only problem is the automount happens sometime after sab starts so as they default save location is on the external drive, sab can't find the storage and defaults back to saving on the sd card.
I want sab to run headless and don't want to have to manually start sab each time. Want to just flick the switch on the pi and administer from my main pc.

Also wondering is there less intensive distro than raspbian to run sabnzb on?
bluc
Newbie
Newbie
Posts: 19
Joined: March 8th, 2013, 3:54 am

Re: Howto: Installing SABnzbd on Raspberry Pi (Raspbian)

Post by bluc »

Ok fixed the folder issue with sab starting before hdd was mounted. Firstly all credit goes to user" jcfp" from this forum for the script ;D here’s the original post http://forums.sabnzbd.org/viewtopic.php?t=6125 heres how to set it up:
Firstly copy the script then paste into leafpad if on raspberry pi, to edit the text.

Code: Select all

#!/bin/sh

DIR=/home/jp/.sabnzbd

while [ ! -d "$DIR" ]; do
   sleep 120
done

/etc/init.d/sabnzbdplus start
ok in the above script the line "DIR=/home/jp/.sabnzbd" is the location of your storage so change that to the location where your usb storage is mounted to. and the "sleep 120" means it will be delayed 3 minutes(you can chane this if you want but I left it at 120). then just copy all the text you will paste it in place shortly..

next as stated in the scripts original thread you need to "Disable (but not remove) the sabnzbdplus service, something like sudo update-rc.d sabnzbdplus disable might just do the job" so type

Code: Select all

sudo update-rc.d sabnzbdplus disable
into root terminal. Note you have to have sabnzbd running as a service before doing this step.

Next as stated in the original thread you need to " Hook up a script to /etc/rc.local to start the service after all." To do this type

Code: Select all

sudo nano /etc/rc.local
I am not sure if you can just paste the whole script into the end of this but I deleted the "print ip address" script that is there back as far as the tittle then pasted the script we created earlier so my "etc/rc.local" file looks like this

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# start sabnzbplus
#!/bin/sh

DIR=/media/Sab/downloads/public

while [ ! -d "$DIR" ]; do
   sleep 120
done

/etc/init.d/sabnzbdplus start
So I dont know if the stuff before "#start sabnzbplus" is needed but I left it there and it works fine. So after you paste the script in press control and x to save then "y" to apply then enter to return to terminal. That should be all you have to do Sabnzb should now start after the directory of your choice is mounted. cheers and hope someone finds it helpful 8)
Post Reply