View unanswered posts | View active topics It is currently Wed May 22, 2013 3:26 am



Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
 [HOW TO][Optware] Install SABnzbd 
Author Message

Joined: Thu Dec 24, 2009 8:09 am
Posts: 190
Post [HOW TO][Optware] Install SABnzbd
This tutorial is incomplete: When i wrote this I did not realize that the 3rd partition on the HD is too small by default.

What is SABnzbd?
SABnzbd is a free/open-source cross-platform binary newsreader written in Python.

It simplifies the process of downloading from Usenet dramatically, thanks to its friendly web-based user interface and advanced built-in post-processing options that automatically verify, repair, extract and clean up posts downloaded from Usenet. SABnzbd also has a fully customizable user interface, and offers a complete API for third-party applications to hook into.

What's bad about SABnzbd?
*High cpu usage while downloading or unrarring/parring. So you need to use the builtin scheduler.

More info : http://www.sabnzbd.org/

How to install:
Install Optware(link) First, it's easy.
Tested on firmware 2388; I had an optware install problem on Beta-2891.

Short version:
Code:
wget http://dl.dropbox.com/u/1225177/pohd/howto/install_sabnzbd.sh
sh install_sabnzbd.sh


After installing the url is http://YOUR-POHD:8080/sabnzbd/
Not http://YOUR-POHD:8080/ , that url is a blank page.


OR the Long version:
Same script, but execute steps manually, lines starting with # are comments.
Code:
#install optware first!
#main install
ipkg install sabnzbdplus

#for rss-feeds:
ipkg install py25-feedparser

#get service script for easy starting and stopping.
wget http://dl.dropbox.com/u/1225177/pohd/howto/S90sabnzbd -O /opt/etc/init.d/S90sabnzbd

#enable service
service sabnzbd on

#start service
service sabnzbd start

#done:
echo "Go to http://YOUR-POHD:8080/sabnzbd/ and edit your settings."


Folder settings, store everything on HDD1
Image

Disable api key ; need this for "service sanznbd stop".
(advanced users: see here: http://wiki.sabnzbd.org/install-as-a-unix-daemon)
Image

_________________
- Metafeeds.com RSS portal - |Extra space on root fs | optware | ext3 data partition
Metafeeds Installer


Last edited by vonck on Sun Jan 03, 2010 7:32 pm, edited 1 time in total.



Sat Dec 26, 2009 4:32 pm
Profile

Joined: Fri Jan 01, 2010 9:06 pm
Posts: 1
Post Re: [HOW TO][Optware] Install SABnzbd
I tried to install Sabnzb using the above description. However, when I try to start the service I get an error stating service: not found.
What did I do wrong?


Fri Jan 01, 2010 9:09 pm
Profile

Joined: Thu Dec 24, 2009 8:09 am
Posts: 190
Post Re: [HOW TO][Optware] Install SABnzbd
What's the exact error message?
Code:
Service "sabnzbd" does not exist

Or:
Code:
-bash: service: command not found

_________________
- Metafeeds.com RSS portal - |Extra space on root fs | optware | ext3 data partition
Metafeeds Installer


Sat Jan 02, 2010 12:01 pm
Profile

Joined: Sat Jan 02, 2010 9:57 pm
Posts: 9
Location: Zaandam NL
Post Re: [HOW TO][Optware] Install SABnzbd
Python error?

I'm new to Linux-OS. I installed using the above script.
Doesn't seem to work: can't connect to the given port.

Code:
[root@PlayonHD root]# #install optware first!
[root@PlayonHD root]# #main install
[root@PlayonHD root]# ipkg install sabnzbdplus
pkg install py25-feedparser

#get service script for easy starting and stopping.
wget http://dl.dropbox.com/u/1225177/pohd/howto/S90sabnzbd -O /opt/etc/init.d/S9 0sabnzbd

#enable service
service sabnzbd on

#start service
service sabnzbd start

#done:
echo "Go to http://YOUR-POHD:8080/sabnzbd/ and edit your settings."

Package sabnzbdplus (0.4.12-1) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.

[root@PlayonHD root]# #for rss-feeds:
[root@PlayonHD root]# ipkg install py25-feedparser
Installing py25-feedparser (4.1-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... mipsel.ipk
Installing python25 (2.5.4-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... mipsel.ipk
Nothing to be done

An error ocurred, return value: 22.

Collected errors: ipkg_download: ERROR: Command failed with return value 3: `wget -q -P /opt/ipkg-pdW1He http://ipkg.nslu2-linux.org/feeds/optwa ... ipsel.ipk'
Failed to download python25. Perhaps you need to run 'ipkg update'?

[root@PlayonHD root]#
[root@PlayonHD root]# #get service script for easy starting and stopping.
[root@PlayonHD root]# wget http://dl.dropbox.com/u/1225177/pohd/howto/S90sabnzbd -O /opt/etc/init.d/S90sabnzbd
--2010-01-02 22:54:04-- http://dl.dropbox.com/u/1225177/pohd/howto/S90sabnzbd
Resolving dl.dropbox.com... 174.129.33.163, 174.129.33.164, 75.101.129.115, ...
Connecting to dl.dropbox.com|174.129.33.163|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 363 [application/octet-stream]
Saving to: `/opt/etc/init.d/S90sabnzbd'

100%[======================================>] 363 --.-K/s in 0.001s

2010-01-02 22:54:05 (575 KB/s) - `/opt/etc/init.d/S90sabnzbd' saved [363/363]

[root@PlayonHD root]#
[root@PlayonHD root]# #enable service
[root@PlayonHD root]# service sabnzbd on
Usage: /opt/etc/init.d/S90sabnzbd {start|stop|restart}

[root@PlayonHD root]#
[root@PlayonHD root]# #start service
[root@PlayonHD root]# service sabnzbd start
Starting SABnzbd.
/opt/etc/init.d/S90sabnzbd: /opt/etc/init.d/S90sabnzbd: 20: python2.5: not found

[root@PlayonHD root]#
[root@PlayonHD root]# #done:
[root@PlayonHD root]# echo "Go to http://YOUR-POHD:8080/sabnzbd/ and edit your settings."


Idea anybody?

_________________
PlayOn!HD 1Tb
Official Firmware Version v7.06.r2901


Sat Jan 02, 2010 10:27 pm
Profile

Joined: Thu Dec 24, 2009 8:09 am
Posts: 190
Post Re: [HOW TO][Optware] Install SABnzbd
Yea, i know what's going on.

When I wrote this tutorial I forgot to check how much disk space this takes on the linux partition (partition 3)
By default it's only 150Mb, and i think it's full : Failed to download python25.

You can check with df -h:
Code:
df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/scsi/host0/bus0/target0/lun0/part3
                      2.9G  408M  2.4G  15% /tmp/hdd/root


I don't know an easy solution :(
The hard solutions are:
1: figure out how to free some space on that partition.
2: OR start gparted from a linux live-cd pc and enlarge partition 3.
ed:spelling

_________________
- Metafeeds.com RSS portal - |Extra space on root fs | optware | ext3 data partition
Metafeeds Installer


Sun Jan 03, 2010 9:08 am
Profile

Joined: Sun Jan 03, 2010 12:05 pm
Posts: 18
Post Re: [HOW TO][Optware] Install SABnzbd
edit nvm


Last edited by whoizerwin on Sun Jan 03, 2010 7:10 pm, edited 1 time in total.



Sun Jan 03, 2010 12:17 pm
Profile

Joined: Mon Nov 09, 2009 4:49 pm
Posts: 1
Post Re: [HOW TO][Optware] Install SABnzbd
I have installed but can't get it to start, anyone know what I have done wrong?

Usage: /opt/etc/init.d/S90sabnzbd {start|stop|restart}
Starting SABnzbd.
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/opt/share/SABnzbd/SABnzbd.py", line 23, in <module>
import logging
ImportError: No module named logging
Go to http://YOUR-POHD:8080/sabnzbd/ and edit your settings.


Sun Jan 03, 2010 2:48 pm
Profile

Joined: Sun Jan 03, 2010 12:05 pm
Posts: 18
Post Re: [HOW TO][Optware] Install SABnzbd
Code:
[root@PlayonHD root]# ipkg install py25-feedparser
Installing py25-feedparser (4.1-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/py25-feedparser_4.1-1_mipsel.ipk
Installing python25 (2.5.4-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/python25_2.5.4-2_mipsel.ipk
Nothing to be done
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 3: `wget    -q -P /opt/ipkg-hCzS5N http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/python25_2.5.4-2_mipsel.ipk'
Failed to download python25. Perhaps you need to run 'ipkg update'?
[root@PlayonHD root]# An error ocurred, return value: 22.
-bash: An: command not found
[root@PlayonHD root]#


Same problem :(


Sun Jan 03, 2010 7:09 pm
Profile

Joined: Thu Dec 24, 2009 8:09 am
Posts: 190
Post Re: [HOW TO][Optware] Install SABnzbd
I made a mistake when writing the tutorial , I did't realize this was going to be a problem.
The HD formatted by playon!hd contains 3 partitions:
*1:ntfs
*2:swap
*3:ext3 linux

The 3rd partition is only 150Mb that is too small.
The only solution is:
*Resize partition 3 to 500MB with gparted/kaparted (or partition magic? maybe)
*Ask acryan to change the default formatting, so these things do work on a newly formatted disk.


the_dead_parrot:
Your problem is most probably solved by a reboot; or a telnet login/logout.

_________________
- Metafeeds.com RSS portal - |Extra space on root fs | optware | ext3 data partition
Metafeeds Installer


Sun Jan 03, 2010 7:40 pm
Profile

Joined: Sun Jan 03, 2010 12:05 pm
Posts: 18
Post Re: [HOW TO][Optware] Install SABnzbd
vonck wrote:
I made a mistake when writing the tutorial , I did't realize this was going to be a problem.
The HD formatted by playon!hd contains 3 partitions:
*1:ntfs
*2:swap
*3:ext3 linux

The 3rd partition is only 150Mb that is too small.
The only solution is:
*Resize partition 3 to 500MB with gparted/kaparted (or partition magic? maybe)
*Ask acryan to change the default formatting, so these things do work on a newly formatted disk.


the_dead_parrot:
Your problem is most probably solved by a reboot; or a telnet login/logout.


But how to change the partition with those programs?
It's not made for this system right?
Or do i need to do this through telnet (like putty)


Sun Jan 03, 2010 7:46 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.