SABnzbdPlus 0.3.3 on PowerPC DS-207

Questions that don't fit in any category below may go here
Forum rules
Please note the disclaimer before modifying your Synology Product.

SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby bprins » Sun Mar 16, 2008 8:18 pm

Just installed it and it runs fine!!!

How to install SABnzbdPlus 0.3.3 on Synology DS-207 PPC (PowerPC and 128 MB) with firmware version Disk Station Manager 2.0-0590

Download the IPKG installer script ds101-bootstrap_1.0-4_powerpc.xsh from http://www.nslu2-linux.org/wiki/DS101/DS101BootStrap
Copy the script ds101-bootstrap_1.0-4_powerpc.xsh to /volume1/public (or other accessable location on the DS).

Enable Telnet and/or SSH connectivity to the DS (see http://www.synology.com/enu/support/dow ... hp#Patches).

Set up the "guest" account using the webinterface.

Open a SSH or Telnet session (using Putty or something else)
Login as root!
Goto the location where you uploaded the ds101-bootstrap_1.0-4_powerpc.xsh script and follow these steps:

Install IPKG using the downloaded script
> sh ds101-bootstrap_1.0-4_powerpc.xsh

Update to latest version (if available)
> ipkg update

Upgrade to latest version of IPKG (if available)
> ipkg upgrade

Install required packages to run SABnzbdPlus
> ipkg install python25
> ipkg install unrar
> ipkg install unzip
> ipkg install par2cmdline
> ipkg install py25-cheetah
> ipkg install py25-elementtree
> ipkg install py25-yenc

Create symbolic link for python
> cd /usr/bin
> ln -s /opt/bin/python2.5 python

OPTIONAL: Install nano (easy editor, if you don't like vi....)
> ipkg install nano

Download latest source of SABnzbdPlus from website http://sourceforge.net/projects/sabnzbdplus. In this case SABnzbd-0.3.3-src.zip.
Unzip the source and upload it to your DS to the location /opt/local/SABnzbd (rename the directory to SABnzbd instead of SABnzbd-0.3.3)

Make sure the directory has the following owners and permissions if you want it to start at boottime.
Ownership: guest:users (change this using "chown guest:users /opt/local/SABnzbd"
Permissions: 777 (change this using "chmod 777 /opt/local/SABnzbd"

Make SABnzbdPlus finally work
> cd /opt/local/SABnzbd
Make script executable if not already..
> chmod +x SABnzbd.py

Create the parameter file /opt/local/SABnzbd/SABnzbd.ini as shown below

Start SABnzbd and open a webbrowser to check if it runs op http://ip-of-ds:8080/sabnzbd
> python2.5 /opt/local/SABnzbd/SABnzbd.py -f /opt/local/SABnzbd/SABnzbd.ini -d

To diagnose problems leave the "-d" daemon option, so it runs on the command line.

To make SABnzbd start at boottime create the file /usr/syno/etc/rc.d/S99SABnzbd.sh as show below
Make it executable using "chmod +x S99SABnzbd.sh"
Test it by rebooting the DS or running the script with "./S99SABnzbd.sh start"

You can ignore the "warning: cannot change to home directory" message because of the guest user not having a correct profile or something...


**************** Start of SABnzbd.ini *******************
__version__ = 016

[misc]
## host we should listen on, leave "" for localhost
host = ""

## port we should listen on
port = 8080

## username for the web-interface
username = ""

## password for the web-interface
password = ""

## web file dir for (custom) Cheetah templates and the default.css file
web_dir = Default

## dir to put downloads to, won't be created automatically
download_dir = /volume1/Download/incomplete/

## dir to put completed downloads to, won't be created automatically
complete_dir = /volume1/Download/complete/

## If specified, .nzbs fetched by postid (or added by the dirscanner) will
## be backed up to this readable/writeable dir
nzb_backup_dir = ""

## dir to store cache and cookie files, windows users should
## leave this at .
cache_dir = /volume1/Download/temp/

## location of your log directory, "" to disable logging
log_dir = /volume1/Download/log/

## dirscan directory
## SABnzbd will consume everything in that dir
## while trying to add it to the queue
dirscan_dir = ""

## Scheduling options
## Syntax: minute hour day action
## 1st argument must be 0-59 (minute)
## 2nd argument must be 0-24 (hour)
## 3rd argument must be 1-7 (day) or *
## 4th argument must be resume or pause
##
## e.g schedlines = 0 7 * pause, 0 21 * resume
## to pause SABnzbd at 7:00 and resume operation at 21:00
schedlines = ,

## default options for dirscan added items
## 0 = None
## 1 = +Repair
## 2 = +Unpack
## 3 = +Delete
dirscan_opts = 2

## Enable/disable filejoining
## 0 = Disabled
## 1 = Enabled
enable_filejoin = 1

## Enable/disable unraring
## 0 = Disabled
## 1 = Enabled
enable_unrar = 1

## Enable/disable unzipping
## 0 = Disabled
## 1 = Enabled
enable_unzip = 1

## Enable/disable periodic queue saving
## 0 = Disabled
## 1 = Enabled
## Enable this on unstable systems
enable_save = 1

## Enable/disable
## 0 = Disabled
## 1 = Enabled
## Enable to cleanup par2 files
## (only if verifiying/repairing succeded)
enable_par_cleanup = 1

## should we failover on yenc crc errors
## 0 = no
## 1 = yes
fail_on_crc = 0

## should we download to group folders?
## (i.e /my/download/dir/alt.bin.whatever/somepost/)
## 0 = no
## 1 = yes
create_group_folders = 0

## bandwith limit
## 0 == ignore
## Slowdown factor, try values between 0.01 and 1.0.
bandwith_limit = 0

## Cleanup List
## List of file_extensions that should be deleted
## Example: ".nfo," or ".nfo, .sfv"
cleanup_list = .nfo, .sfv, .nzb

## Only get articles from topmost collection
## Enable for less memory usage
## Disable for more efficient downloading
## 0 = Disabled
## 1 = Enabled
top_only = 1

## Automatically sort by average age
## 0 = No
## 1 = Yes
auto_sort = 0

## Send group command before requesting articles
## 0 = No
## 1 = Yes
send_group = 0

## Article cache limit
## 0 = Disable Cache
## -1 = Unlimited cache
## >0 = Maximum memory (in bytes) to use for cache
cache_limit = 0

auto_browser = 0
permissions = 0777
check_new_rel = 0
auto_disconnect = 0
config_lock = 0
safe_postproc = 0
download_free = 5G
dirscan_speed = 5
refresh_rate = 0
rss_rate = 1
extern_proc = ""
email_server = ""
email_to = ""
email_from = ""
email_account = ""
email_pwd = ""
email_endjob = 0
email_full = 0

[logging]
## max size of SABnzbd.log (in bytes)
max_log_size = 5242880

## how many backups of SABnzbd.log to keep around
log_backups = 2

## enable cherrypy logging
## 0 = no
## 1 = yes
enable_cherrypy_logging = 0
log_level = 1

## Fill in your servers here
## If your server doesn't need password auth set
## username and password to ''
## fillserver field must be 0 for non-fillservers (>0 otherwise)
[servers]
[[newszilla.xs4all.nl:119]]
host = newszilla.xs4all.nl
port = 119
username = ""
password = ""
connections = 2
fillserver = 0
timeout = 120
# [[server 0]]
# host = news.myfillserver.com
# port = 119
# username = ""
# password = ""
# connections = 8
# fillserver = 1

## http://www.newzbin.com support
[newzbin]
username = ""
password = ""

## Place downloads into newzbin.com category folders
## 0 = No
## 1 = Root category only
## 2 = Root category + subcategory
create_category_folders = 0

************ End of SABnzbd.ini *******************

**************** Start of S99SABnzbd.sh **********************
#!/bin/sh
# Copyright (c) 2000-2003 Synology Inc. All rights reserved.

SynoStop=/usr/bin/killall
User=guest

if [ "start" = "$1" ]; then
su -l $User -c "/usr/bin/python /opt/local/SABnzbd/SABnzbd.py -f /opt/local/SABnzbd/SABnzbd.ini -d"
elif [ "stop" = "$1" ]; then
$SynoStop python
elif [ "restart" = "$1" ]; then
$0 stop
$0 start
fi
**************** End of S99SABnzbd.sh ***********************
DS209+ / DSM 2.0-0728 / 2 x WD10EADS 1TB disks
DS207 (128MB) / DSM 2.0-0728 / 2 x Samsung HD501LJ 500 GB SATA disks
User avatar
bprins
Novice
Novice
 
Posts: 49
Joined: Mon Sep 10, 2007 9:28 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby bprins » Sun Mar 16, 2008 8:50 pm

Downloading at 630 KB/s with 3 connections (not my maximum DSL bandwith) but very nice!!

Much faster than old version 0.2.5
DS209+ / DSM 2.0-0728 / 2 x WD10EADS 1TB disks
DS207 (128MB) / DSM 2.0-0728 / 2 x Samsung HD501LJ 500 GB SATA disks
User avatar
bprins
Novice
Novice
 
Posts: 49
Joined: Mon Sep 10, 2007 9:28 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby splazz » Thu Mar 20, 2008 9:36 am

I would really like to get this to work.

first i would say, that this is the first time i use telnet, and unix-commands at this level, so please be gendle :)

i've followed the guide until the point where i should upload the SABnzbd folder to /opt/local - i used about an hour to figure out how to upload files via the telnet-session, then i found out that the folder opt was accesible from windows explorer (\\mydiskstation), but i wasnt able to move the folder to /opt/local/ because i didnt have access, so i chmodded the folder opt/local to 777.

from the et went pretty fine. but now when i'm going to test it in the browser, i get the "page not found"-error, i also tried the command-line: "python2.5 /opt/local/SABnzbd/SABnzbd.py -f /opt/local/SABnzbd/SABnzbd.ini -d", but it says: "/opt/local/SABnzbd/SABnzbd.ini" is not a valid configuration file. Specify a correct file or delete this file.

i've copy/pasted your ini-file from this posted, and not made any changes.

i really hope you can help me out here, thanks in advance :)

//splazz

EDIT: maybe i should tell, that i'm using Windows XP and my ds is af 207 with newest FW
splazz
Trainee
Trainee
 
Posts: 11
Joined: Wed Oct 24, 2007 2:55 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby bprins » Thu Mar 20, 2008 10:45 am

Please review the sabnzb.ini file. It contains directories I have created for the download locations.
I use the /volume1/Download directory to put the log, complete and incomplete directories.
Maybe you should create the share Download in the webinterface of the DS or you can edit the ini file so it will point to an existing directory you would like to use.

The ini file also uses my news server from XS4ALL which is my provider in the Netherlands. You can change this once you can configure SABnzbd with the webinterface. (once it works ;-))
DS209+ / DSM 2.0-0728 / 2 x WD10EADS 1TB disks
DS207 (128MB) / DSM 2.0-0728 / 2 x Samsung HD501LJ 500 GB SATA disks
User avatar
bprins
Novice
Novice
 
Posts: 49
Joined: Mon Sep 10, 2007 9:28 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby splazz » Thu Mar 20, 2008 12:22 pm

i thought the "start" and "end"-lines of the file was legal, i removed them, and it seems to work :)

EDIT: but it wont start downloading :?

EDITEDIT: how do i create a file here: usr/syno/etc/rc.d/ ? i dont know how to access that directory, i cant see it through ftp-connection

EDITEDITEDIT: sorry, i typed my username wrong for the server, so now it runs (only at 650KB/s, my newsleecher runs at about 800, but it's okay...), but i still can't see howto make that startup-file...?
splazz
Trainee
Trainee
 
Posts: 11
Joined: Wed Oct 24, 2007 2:55 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby bprins » Thu Mar 20, 2008 5:17 pm

Login as root with telnet or SSH using Putty or something else and goto the rc.d directory and create the sh script as shown above. Make sure you are root.

The script presumes it will start the service using the account "guest". You could also use root...
DS209+ / DSM 2.0-0728 / 2 x WD10EADS 1TB disks
DS207 (128MB) / DSM 2.0-0728 / 2 x Samsung HD501LJ 500 GB SATA disks
User avatar
bprins
Novice
Novice
 
Posts: 49
Joined: Mon Sep 10, 2007 9:28 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby splazz » Mon Mar 24, 2008 4:15 pm

i'm sorry, but as i said, this is the first time i'm trying this.

i can't see how to create a file with Putty, i've tried PSCP to copy a file from my computer to the DS, but it wont work.

i've tried PSCP C:\S99SABnzbd.sh root@ds207:/usr/syno/etc/rc.d - but i get this error:

"Fatal: Network error: Connection refused"

i thought that i was something with rights or so, so i tried to upload to one of my shared folders on volume1, but i get the same error...

//splazz
splazz
Trainee
Trainee
 
Posts: 11
Joined: Wed Oct 24, 2007 2:55 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby Wzzl » Sat Apr 12, 2008 10:07 pm

OK Got 0.3.4 Working on a DS-407 with this posting above with two smal changes :-)

download sabnzbdplus-0.3.4 _DUH_
also install py25-cherrypy

And the in the startup script, change User=guest into User=root

Somehow sab doesn't want to start as normal user :-(
That's all, it works :-)

Wessel
Wzzl
Rookie
Rookie
 
Posts: 36
Joined: Sat May 19, 2007 1:12 am

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby biggo » Wed Apr 16, 2008 6:37 am

I've got the previous v.0.3.1 installed on my DS107+ and would like to upgrade it using the guide shown here.

However, my version is installed using the guides here:
http://www.maartendamen.com/node/7
http://www.maartendamen.com/node/17

I would like to know, how to remove this installation - including the startup script, because I don't know where it's hidden!

Thanks in advance.
biggo
Beginner
Beginner
 
Posts: 21
Joined: Wed Feb 20, 2008 5:43 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby Neo » Wed Apr 16, 2008 11:05 pm

I followed all instructions, and had the service running, but after reboot the service no longer runs.
any idea?

furthermore in the webbrowser, in config for SABnzbd, in RSS menu, I receive the error: feedparser module missing
any idea what this can be?
DS508 (512Mem) | Firmware Version: DSM 3.0
HDD: 3x Samsung HE103UJ, 2x Samsung Eco green F4 HD204UI (SHR)
Video streaming (NMT A-110), Music streaming (Squeecenter 7.5.1), photo album and more
User avatar
Neo
Sharp
Sharp
 
Posts: 165
Joined: Tue Aug 07, 2007 8:59 am

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby JayBee37 » Thu Apr 17, 2008 1:03 pm

Hi,
you can find the feedparser at http://www.feedparser.org . see readme for instructions.

regarding the service not starting have you checked your paths in the startup script?

Hope this helps a little
JayBee37
I'm New!
I'm New!
 
Posts: 3
Joined: Tue Mar 25, 2008 2:11 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby AndyB » Wed May 28, 2008 7:41 pm

Fantastic instructions,

I followed to the letter (nearly) and all worked perfectly so wanted to say thanks.

Things i did different:
used wget to download relevant files straight to cs407
used latest 0.4 Beta5 (worked straight away)
had to use root as user for startup script - wouldnt run as guest for some reason (probably my fault)

The rss bit with feedparser - dead quick:
1.download from http://feedparser.googlecode.com/files/ ... er-4.1.zip to x07
2. unzip
3. run python setup.py install
4. restart sabnzbd

Of course I have nothing to point rss feeds to yet :) and nobody with an invite for newzbin :(

I do seem to be getting timeout to my news provider (easynews) but i think thats a local network issue.

Thanks again
Andy.
AndyB
I'm New!
I'm New!
 
Posts: 4
Joined: Sat Aug 04, 2007 9:41 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby bprins » Wed May 28, 2008 7:50 pm

AndyB wrote:Fantastic instructions


Thanks, I am glad I could help :D , also nice to know 0.4.0 also works with these instructions.
DS209+ / DSM 2.0-0728 / 2 x WD10EADS 1TB disks
DS207 (128MB) / DSM 2.0-0728 / 2 x Samsung HD501LJ 500 GB SATA disks
User avatar
bprins
Novice
Novice
 
Posts: 49
Joined: Mon Sep 10, 2007 9:28 pm

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby bouncemeister » Tue Jul 15, 2008 3:05 pm

Hi, this is a great manual. I've downloaded sabnzbd+ 0.4.2 and i'm going to install it on my DS207 soon.

I have a few questions.

* With enabling the guest user, do you mean creating a user namend "guest" at the privileges tab?
Should this user have a password?
Should this user have any privileges or rights?

* What do you mean with: "Login as root!"

* All the "ipkg ...." commands that follow, will it download or install the extra's by itself or do i need to download something extra myself?
bouncemeister
Experienced
Experienced
 
Posts: 127
Joined: Mon Jun 11, 2007 9:41 am

Re: SABnzbdPlus 0.3.3 on PowerPC DS-207

Postby Neo » Tue Jul 15, 2008 3:45 pm

Who can get the latest version of SabnzbdPlus 0.4.x ready and compiled for DS-508 ?
DS508 (512Mem) | Firmware Version: DSM 3.0
HDD: 3x Samsung HE103UJ, 2x Samsung Eco green F4 HD204UI (SHR)
Video streaming (NMT A-110), Music streaming (Squeecenter 7.5.1), photo album and more
User avatar
Neo
Sharp
Sharp
 
Posts: 165
Joined: Tue Aug 07, 2007 8:59 am

Next

Return to General Mods

Who is online

Users browsing this forum: No registered users and 3 guests