(Unofficial) Ubuntu repository for SABnzbd+

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.
Locked
luc.taesch
Newbie
Newbie
Posts: 1
Joined: May 6th, 2009, 3:04 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by luc.taesch »

Thanks for the package, ;D. Thanks to it I have reinstalled in a breath SABnzbd from my old Ubuntu server to a small VmWare appliance, dedicated to SABnvbd. Nothing Comparable with hand fiddling on My Synology:--)

If there is any interest in the appliance, just let me know, Ill package it.
( some details good to know here http://taesch.com/my-digital-life/manua ... on-sabnzbd )
Last edited by luc.taesch on May 6th, 2009, 3:54 am, edited 1 time in total.
pmow
Release Testers
Release Testers
Posts: 57
Joined: May 15th, 2009, 6:09 pm
Location: Florida

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by pmow »

I really appreciate this repo...It's nice to get the latest without having to wait :)
mrgreaper
Newbie
Newbie
Posts: 21
Joined: April 17th, 2008, 11:39 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by mrgreaper »

this method is very much appreciated thankyou
js0n3
Newbie
Newbie
Posts: 2
Joined: July 3rd, 2009, 11:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by js0n3 »

Yeah, works great on my 9.04 systems. thanks. have too many PPAs *sigh
steveo113
Newbie
Newbie
Posts: 1
Joined: August 12th, 2009, 8:59 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by steveo113 »

Changing my host to 0.0.0.0 solved all my problems.  Thank you guys for this thread and this info.

What a cool program.
subsense
Newbie
Newbie
Posts: 17
Joined: August 22nd, 2009, 3:17 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by subsense »

I installed sabnzbd+ a few days ago.
I am very happy with sabnzbd+, Great tool.  :D
It's running on my ASrock ION along with XBMC Live perfectly :-)

I still have to putty to the system and type "sabnzbdplus"

But, I can't find out how to start it automaticly when the system boots.
I've read some post on how to do this, but not one explaines it for Xbmc Live (which is a light version of Ubuntu 9.04).

I've played around with:

"sabnzbd" in /etc/init.d

Code: Select all

#!/bin/bash
python /usr/share/SABnzbd/SABnzbd.py --browser 0 -d
and

Code: Select all

sudo chmod +x /etc/init.d/sabnzbd
sudo update-rc.d -f sabnzbd remove
sudo update-rc.d -f sabnzbd defaults
And then i get this error:

update-rc.d: warning: /etc/init.d/sabnzbd missing LSB information

And will sabnzbdplus shutdown gracefully when I just shutdown XBMC (which turns of the ASrock)?
Last edited by subsense on August 23rd, 2009, 3:49 pm, edited 1 time in total.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

subsense wrote: But, I can't find out how to start it automaticly when the system boots.
Start post of this topic says:
jcfp wrote: Alternatively, the program can be started as a service (i.e., in the background on system boot) using the init.d script provided by the package. It will only work after you edit /etc/default/sabnzbdplus as per instructions in that file. Although for obvious reasons no browser is auto-started when running the program like this, the web interface is still available at the usual location of http://localhost:8080/sabnzbd/ (or whatever other host and port you configured).
subsense
Newbie
Newbie
Posts: 17
Joined: August 22nd, 2009, 3:17 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by subsense »

And ofcourse I've read that.
But for a Linux newbe it's kinda cryptic.

I've edited the "/etc/default/sabnzbdplus"

The post doesn't say wich actions I have to do to get this working.
It only says "using the init.d script provided by the package"

But How? What do I have to type at the console.
KasperH
Newbie
Newbie
Posts: 2
Joined: August 16th, 2009, 5:24 pm
Location: Assen (NL)

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by KasperH »

/etc/init.d/....   are initialization scripts  they usually get parameters like: start  stop  restart

if you execute it without parameter, they usually tell you the syntax. be carefull, you may stop services unintentionally

they are also linked into /etc/rc?.d/  where ? is a number or "S" (Single user mode)  this corresponds with a run level. the scripts linked into these dir's will be executed when said runlevel is started see the /etc/init.d/README for more info and detail

sabnzbdplus script is not different

since they are scripts, you can read them with: more(1), less(1), cat(1), and learn that way what the script is supposed to do

HTH
Last edited by KasperH on August 25th, 2009, 6:53 am, edited 1 time in total.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

Direct manipulation of the service by running:

Code: Select all

sudo /etc/init.d/sabnzbdplus action
...where action is "start", "stop", etc.

On system boot and shutdown starting and stopping is done automatically (once /etc/default/sabnzbdplus has been taken care of). ;D
subsense
Newbie
Newbie
Posts: 17
Joined: August 22nd, 2009, 3:17 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by subsense »

Thanks guys, with this info I can puzzle some further!
subsense
Newbie
Newbie
Posts: 17
Joined: August 22nd, 2009, 3:17 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by subsense »

OKay,

This is currently my "/etc/default/sabnzbd" file

Code: Select all

# 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=xbmc

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=/home/xbmc/.sabnzbd/sabnzbd.ini

# [optional] hostname/ip and port number to listen on:
HOST=192.168.0.15
PORT=8000

# [optional] extra command line options, if any:
EXTRAOPTS=
But when I Execute

Code: Select all

sudo /etc/init.d/sabnzbdplus start
I get the followin error

Code: Select all

2009-08-25 15:07:35,233::WARNING::Cannot find web template: /etc/share/sabnzbdpl                             us/interfaces/Default/templates/main.tmpl, trying standard template
2009-08-25 15:07:35,234::ERROR::Cannot find standard template: /etc/share/sabnzb                             dplus/interfaces/Default
Traceback (most recent call last):
  File "/etc/init.d/sabnzbdplus", line 65, in <module>
    import win32api
ImportError: No module named win32api
2009-08-25 15:07:35,238::INFO::Lauching browser with /tmp/tmpiE9Ygk.html
(T: XBMCLive)xbmc@XBMCLive:~$
I  don't have a /etc/share directory on my system this is where the errors are referring to.
Could that be the problem en should I just start over completely?

When I try to update the init.d I get the following error:

Code: Select all

(T: XBMCLive)xbmc@XBMCLive:~$ sudo update-rc.d sabnzbdplus defaults
update-rc.d: warning: /etc/init.d/sabnzbdplus missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System startup links for /etc/init.d/sabnzbdplus already exist.
When I just run "sabnzbdplus" it works like a charm  :D

I'm learning more of Linux everyday now, so excuse me for my little knowlegde of Linux.
I'm a pure Microsoft person...
Last edited by subsense on August 25th, 2009, 11:00 am, edited 1 time in total.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

subsense wrote: This is currently my "/etc/default/sabnzbd" file
That looks fine, this on the other hand:
subsense wrote:

Code: Select all

update-rc.d: warning: /etc/init.d/sabnzbdplus missing LSB information
...indicates somebody has been tampering with things; Linux Standard Base info actually is provided by the packaged init script.

To fix, renew your sabnzbdplus install as follows:

Code: Select all

sudo apt-get purge sabnzbdplus
sudo apt-get install "sabnzbdplus*"
...then edit /etc/default/sabnzbdplus (it will be all fresh again), and finally start the init script. If it still gives you trouble, move the existing sabnzbd.ini file out of the way and try again.
subsense
Newbie
Newbie
Posts: 17
Joined: August 22nd, 2009, 3:17 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by subsense »

Thanks  :) for all the help
I'm getting somewhere now
Purged and installed and the error's are gone.

But I've got some new errors now

Code: Select all


(T: XBMCLive)xbmc@XBMCLive:~$ sh -x /etc/init.d/sabnzbdplus start
+ DAEMON=/usr/bin/sabnzbdplus
+ [ -x /usr/bin/sabnzbdplus ]
+ basename /usr/bin/sabnzbdplus
+ NAME=sabnzbdplus
+ DESC=SABnzbd+ binary newsgrabber
+ SETTINGS=/etc/default/sabnzbdplus
+ OPTIONS=--daemon
+ sed -n 1s/^#\!\([a-z0-9\.\/]\+\).*/\1/p /usr/bin/sabnzbdplus
+ readlink -f /usr/bin/python2.5
+ PYTHONEXEC=/usr/bin/python2.5
+ PIDFILE=/var/run/sabnzbdplus.pid
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ load_settings
+ [ -r /etc/default/sabnzbdplus ]
+ . /etc/default/sabnzbdplus
+ USER=
+ CONFIG=
+ HOST=
+ PORT=
+ EXTRAOPTS=
+ [ -z  ]
+ log_warning_msg SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ usplash_write TEXT   SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
+ log_to_console log_warning_msg SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
+ [ n != y ]
+ [ no != yes ]
+ readlink /proc/self/fd/0
+ stdin=/dev/pts/0
+ [ /dev/pts/0 != /dev/pts/0 ]
+ return 0
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm !=  ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput setaf 3
+ YELLOW=
+ /usr/bin/tput op
+ NORMAL=
+ echo  * SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
 * SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
+ exit 0
I can't read the script "/etc/default/sabnzbdplus" due to lack of knowledge.

The ini is o.k. and when starting just "sabnzbdplus" it runs.
But I've got enough to troubleshoot on my own now  ;)

Have2go now
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

As I said:
jcfp wrote: ...then edit /etc/default/sabnzbdplus (it will be all fresh again)
You did it before, just do it again. Any editor will do just remember to use sudo when editing systemwide config files. Attempting to start the init script before doing this results in the warning message you got.
Locked