Organisez n'importe quoi avec Atomeet!

Install SABnzbd+ on a ReadyNas Duo

I recently buy a Netgear ReadyNas Duo :-) Really nice stuff !
I have installed a 1 To hard drive on it (bad Seagate series… too bad).

There is my short contribution : How to setup SABnzbd+ manually woohoo!

Install ToggleSSH:
Toggles access via SSH, useful for NETGEAR support to remotely access your box to look at or fix problems that requires deeper understanding. SSH access is disabled by default.
http://www.readynas.com/download/addons/4.00/ToggleSSH_1.0.bin

Install EnableRootSSH:
With the EnableRootSSH add-on, you can now remote login to the ReadyNAS RAIDiator shell as a root user. Initial password for root will be the same as the current FrontView admin password. Please keep in mind that NETGEAR may deny support if you.ve enabled root access.
http://www.readynas.com/download/addons/4.00/EnableRootSSH_1.0.bin

Install APT:
Debian package management utility. You will be able to run the standard Debian command ?apt-get? to download and install packages for everything you need for development, including the headers for the non-standard packages used for the ReadyNAS. See the Developer?s Corner for more information.
http://www.readynas.com/download/addons/4.00/APT_1.0.bin

Connect to the NAS via SSH (use your admin password):
ssh root@192.168.0.50

Install dev environment:
apt-get update
apt-get install libc6-dev
apt-get install gcc
apt-get install gdb
apt-get install libtag1-dev
apt-get install uuid-dev

Prepare a place to compile sources:
mkdir /root/src/
cd /root/src/

Patch for uniq:
wget ftp://ftp.gnome.org/cdimage/snapshot/Debian/pool/main/c/coreutils/coreutils_5.2.1-2_sparc.deb
dpkg-deb -x coreutils_5.2.1-2_sparc.deb .
./usr/bin/uniq --version # should work

Install dependencies:
apt-get install unrar unzip
apt-get install par2 parchive
apt-get install gpp
apt-get install libssl-dev
apt-get install zlibc
apt-get install zlib1g-dev

Install everything:
wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
gzip -d Python-2.5.2.tgz
tar xf Python-2.5.2.tar
cd Python-2.5.2
./configure --build=sparc-linux
make
make install
cd ..

wget http://mesh.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-2.0.1.tar.gz
gzip -d Cheetah-2.0.1.tar.gz
tar xf Cheetah-2.0.1.tar
cd Cheetah-2.0.1
python2.5 setup.py install
cd ..

wget http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz
gzip -d yenc-0.3.tar.gz
tar xf yenc-0.3.tar
cd yenc-0.3
python2.5 setup.py install
cd ..

wget http://feedparser.googlecode.com/files/feedparser-4.1.zip
mkdir feedparser-4.1
cd feedparser-4.1
unzip ../feedparser-4.1.zip
python2.5 setup.py install
cd ..

wget http://garr.dl.sourceforge.net/sourceforge/pyopenssl/pyOpenSSL-0.8.tar.gz
tar xvzf pyOpenSSL-0.8.tar.gz
cd pyOpenSSL-0.8
python2.5 setup.py install
cd ..

wget http://heanet.dl.sourceforge.net/sourceforge/sabnzbdplus/SABnzbd-0.4.6-src.tar.gz
gzip -d SABnzbd-0.4.6-src.tar.gz
tar xf SABnzbd-0.4.6-src.tar
cd SABnzbd-0.4.6
python2.5 -OO SABnzbd.py -v

Create a file /etc/init.d/sabnzbd :
#!/bin/sh
case "$1" in
start)
  echo "Starting SABnzbd."
  /usr/local/bin/python2.5 /usr/local/src/SABnzbd/SABnzbd.py -d -f /etc/SABnzbd/sabnzbd.ini
;;
stop)
  echo "Shutting down SABnzbd."
  /usr/bin/wget -q --delete-after "http://192.168.0.50:7777/sabnzbd/api?mode=shutdown"
;;
*)
  echo "Usage: $0 {start|stop}"
  exit 1
esac
exit 0

Add it on startup:
cd /etc/rc3.d/
ln -s /etc/init.d/sabnzbd S05sabnbzd

And now you’re done :-)
Try /etc/init.d/sabnzbd start

And check : http://192.168.0.50:7777/sabnzbd/

(Based on http://www.readynas.com/forum/viewtopic.php?f=46&t=20279)

PartirDemain.com

21 commentaires »

  1. SABnzbd: Install Other a dit,

    le 26 janvier 2009 à 14:44

    [...] Buffalo Linkstation NetGear ReadyNas Duo [...]

  2. SP a dit,

    le 26 janvier 2009 à 15:11

    Hey,

    that’s really good info! I was almost there, but was missing the last piece.

    Thanks!

    -SP

  3. SABnzbd: Install on NAS devices a dit,

    le 27 janvier 2009 à 00:43

    [...] NetGear ReadyNas Duo [...]

  4. Big Al a dit,

    le 27 janvier 2009 à 23:30

    Works on the NV+ too - top do!

  5. TS a dit,

    le 20 février 2009 à 21:05

    Hi,

    When running this process:

    ./configure –build=sparc-linux

    I get the error that the uniq command does not exist. Can you please help? Do I need to put uniq somewhere else? It is located in src/usr/bin

    Thanks

  6. Graeme a dit,

    le 22 février 2009 à 03:58

    I get the following error when i try to make python (first paragraph under “Install everything”. Following is my output (note I am on an NV+)

    achilleus:~/src/Python-2.5.2# make
    gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Parser/myreadline.o Parser/myreadline.c
    Parser/myreadline.c: In function `my_fgets’:
    Parser/myreadline.c:46: error: `errno’ undeclared (first use in this function)
    Parser/myreadline.c:46: error: (Each undeclared identifier is reported only once
    Parser/myreadline.c:46: error: for each function it appears in.)
    Parser/myreadline.c: In function `PyOS_Readline’:
    Parser/myreadline.c:205: warning: implicit declaration of function `isatty’
    make: *** [Parser/myreadline.o] Error 1

  7. Stephen Hartley a dit,

    le 21 mars 2009 à 22:00

    FYI, I had to add the location of uniq to the PATH (with “PATH=$PATH:~/src/usr/bin”) before making Python in order for the compilation to succeed.

    Also, “ln -s /etc/init.d/sabnzbd S05sabnbzd” should be “ln -s /etc/init.d/sabnzbd S05sabnzbd” and remember to do a “chmod +x /etc/init.d/sabnzbd”.

    I did have to change “/usr/local/bin/python2.5 /usr/local/src/SABnzbd/SABnzbd.py -d -f /etc/SABnzbd/sabnzbd.ini” to “python ~/src/SABnzbd-0.4.6/SABnzbd.py -d -f /etc/SABnzbd/sabnzbd.ini”, but perhaps I did something wrong.

    Also, after launching you can then edit the ini file and put in the correct IP address and port.

    Don’t know if I made it more difficult than I needed to, but I hope my findings help others if they find similar problems.

  8. nyquist a dit,

    le 1 juin 2009 à 08:53

    I also ran into trouble compiling python

    make: *** [libinstall] Error 1

    When I scroll up, the only error I could see was

    Sorry: UnicodeError: (”\\N escapes not supported (can’t load unicodedata module)”,)

    I’m a good instruction follower, but not very code savvy.. so some guidance would be appreciated. :)

    Thanks!

  9. nyquist a dit,

    le 1 juin 2009 à 09:17

    after doing some digging, what ended up working was doing

    make -i install

    because the build steps are out of order, apparently

  10. marco a dit,

    le 4 juin 2009 à 16:42

    Hi,

    as a newbie I think I will manage to go trough installing togglessh, EnableRootSSH, APT and Connect to the NAS via SSH.

    BUT then the hard work starts for me… Do I just copy and paste it somewhere and press enter or doesn’t it work like that….?

    I really want to give it a change….

    thanks for the reply…!

    Marco

  11. Eric Hebben a dit,

    le 20 juillet 2009 à 22:17

    when i do : python2.5 -OO SABnzbd.py -v

    I get: ImportError: No module named zlib

    zlibc is installed

    help!

  12. Johnyb a dit,

    le 20 août 2009 à 18:00

    Could use some help. Go this far and got error..

    ReadyNas:~/src# dpkg-deb -x coreutils_5.2.1-2_sparc.deb ../usr/bin/uniq –version # should work
    dpkg-deb: –extract takes at most two arguments (.deb and directory)

    Type dpkg-deb –help for help about manipulating *.deb files;
    Type dpkg –help for help about installing and deinstalling packages.
    ReadyNas:~/src# dpkg-deb -x coreutils_5.2.1-2_sparc.deb ../usr/bin/uniq
    dpkg-deb: failed to create directory: No such file or directory
    ReadyNas:~/src# dpkg-deb -x coreutils_5.2.1-2_sparc.deb ./usr/bin/uniq
    dpkg-deb: failed to chdir to directory: Not a directory
    ReadyNas:~/src# dpkg-deb -x coreutils_5.2.1-2_sparc.deb ../usr/bin/uniq –version
    dpkg-deb: –extract takes at most two arguments (.deb and directory)

    Type dpkg-deb –help for help about manipulating *.deb files;
    Type dpkg –help for help about installing and deinstalling packages.

  13. Johnyb a dit,

    le 29 août 2009 à 11:16

    Please can you help, I followed the script above, but it does not work.

  14. rune a dit,

    le 30 août 2009 à 15:49

    I installed sab successfully, but i only get download speeds at 400kb/sec although i should be getting 6000kb/sec (i have 50 mbit fiber)… does anyone know whether readynas duo actually is powerful enough for sab? when i use sab on my computer (same network/router) i get the 6000….

  15. Johnyb a dit,

    le 16 octobre 2009 à 10:09

    Ok so after reseting my ReadyNas Duo, I went through the steps again…
    This time when I invoke “/etc/init.d/sabnzbd start” I get the following error message….

    -bash: /etc/init.d/sabnzbd: Permission denied

    I tried restarting the box to see if the boot up script will run, but no joy. The only thing I changed in the script was the IP address of my readynas (ie 192.168.0.50 to 192.168.0.32)

    Help would be much appreciated…

  16. Tjeerdoo a dit,

    le 9 novembre 2009 à 17:14

    when I try to launch the service with the following command ;
    /usr/local/bin/python2.5 /root/src/SABnzbd-0.4.6/SABnzbd.py
    2009-11-09 16:07:51,682::INFO::——————————–
    2009-11-09 16:07:51,692::INFO::SABnzbd.py-0.4.6 (rev=1888)
    2009-11-09 16:07:51,702::INFO::Platform = posix
    2009-11-09 16:07:51,710::INFO::Python-version = 2.5.2 (r252:60911, Nov 9 2009, 14:26:45)
    [GCC 3.3.5 (Debian 1:3.3.5-13)]
    2009-11-09 16:07:51,778::INFO::[sabnzbd] Loading data for rss_data.sab from /root/.sabnzbd/cache/rss_data.sab
    2009-11-09 16:07:51,837::INFO::[sabnzbd] Loading data for bytes7.sab from /root/.sabnzbd/cache/bytes7.sab
    2009-11-09 16:07:51,848::INFO::[sabnzbd] Loading data for queue7.sab from /root/.sabnzbd/cache/queue7.sab
    2009-11-09 16:07:51,867::WARNING::[downloader] No active primary servers defined, will not download!
    2009-11-09 16:07:51,886::INFO::All processes started
    2009-11-09 16:07:51,915::INFO::_yenc module… found!
    2009-11-09 16:07:51,924::INFO::celementtree module… found!
    2009-11-09 16:07:51,933::INFO::par2 binary… found (/usr/bin/par2)
    2009-11-09 16:07:51,942::INFO::unrar binary… found (/usr/bin/unrar)
    2009-11-09 16:07:51,951::INFO::unzip binary… found (/usr/bin/unzip)
    2009-11-09 16:07:51,959::INFO::nice binary… found (/usr/bin/nice)
    2009-11-09 16:07:51,968::INFO::ionice binary… NOT found!
    2009-11-09 16:07:51,977::INFO::pyOpenSSL… found (True)
    2009-11-09 16:07:51,997::INFO::Web dir is /root/src/SABnzbd-0.4.6/interfaces/Default
    2009-11-09 16:07:52,101::INFO::Starting SABnzbd.py-0.4.6
    2009-11-09 16:07:52,114::INFO::[nzbqueue] Saving queue
    2009-11-09 16:07:52,128::INFO::[sabnzbd] Saving data for queue7.sab in /root/.sabnzbd/cache/queue7.sab
    2009-11-09 16:07:52,140::INFO::[sabnzbd] Saving data for bytes7.sab in /root/.sabnzbd/cache/bytes7.sab
    2009-11-09 16:07:52,151::INFO::[sabnzbd] Saving data for rss_data.sab in /root/.sabnzbd/cache/rss_data.sab
    2009-11-09 16:07:52,181::INFO::[sabnzbd.misc] URLGrabber starting up
    2009-11-09 16:07:52,199::INFO::Starting web-interface on localhost:8080
    09/Nov/2009:16:07:52 CONFIG INFO Server parameters:
    09/Nov/2009:16:07:52 CONFIG INFO server.environment: production
    09/Nov/2009:16:07:52 CONFIG INFO server.log_to_screen: True
    09/Nov/2009:16:07:52 CONFIG INFO server.log_file: /root/.sabnzbd/logs/cherrypy.log
    09/Nov/2009:16:07:52 CONFIG INFO server.log_tracebacks: True
    09/Nov/2009:16:07:52 CONFIG INFO server.log_request_headers: False
    09/Nov/2009:16:07:52 CONFIG INFO server.protocol_version: HTTP/1.0
    09/Nov/2009:16:07:52 CONFIG INFO server.socket_host: localhost
    09/Nov/2009:16:07:52 CONFIG INFO server.socket_port: 8080
    09/Nov/2009:16:07:52 CONFIG INFO server.socket_file:
    09/Nov/2009:16:07:52 CONFIG INFO server.reverse_dns: False
    09/Nov/2009:16:07:52 CONFIG INFO server.socket_queue_size: 5
    09/Nov/2009:16:07:52 CONFIG INFO server.thread_pool: 10
    09/Nov/2009:16:07:52 HTTP INFO Serving HTTP on http://localhost:8080/
    2009-11-09 16:07:52,790::INFO::Lauching browser with http://localhost:8080/sabnzbd

    It “hangs” on the last line…when i try connecting to the box no page displays…

    When I try to launch it using

    blackbox:~# /etc/init.d/sabnzbd start
    Starting SABnzbd.
    blackbox:~#
    I get no errors what so ever, but i’m still not able to launch it in a webpage…any ideas on what i’m doing wrong ?

  17. Tjeerdoo a dit,

    le 10 novembre 2009 à 12:38

    I got it working now :)
    What i did was change the sabnzbd.ini file

    The thing I changed was the line
    host = localhost
    to
    host = the IP adress of the readynas

  18. Evert a dit,

    le 14 novembre 2009 à 18:33

    Works here to with an Readynas duo after changing the changes recommended by Stephen Hartley.
    Had also problems in the first step “apt-get install gcc”, this wouldn’t not install because of the squeezebox.
    After doing the recommended “apt-get install” it installs all fine.

  19. Glenn a dit,

    le 17 novembre 2009 à 17:57

    I was getting loads of “No space left on device” errors when trying to download stuff, it turned out that the permissions on /etc/SABnzbd/ were too strict and SABnzbd couldn’t write to that folder.

    So I had to do

    chmod -R 777 /etc/SABnzbd

  20. Glenn a dit,

    le 19 novembre 2009 à 15:01

    Another thing to be careful of - I installed SABnzbd in /root/src and was finding I was getting lots of “Disk full” errors when there were hundreds of Gb free.

    It turns out that the ReadyNAS has 2 partitions, the main data one which is as big as the drives you have in the machine (so hundreds of Gb in my case) and a smaller root partition which is only 2Gb, where the system software is installed.

    My SABnzbd directory - including the potentially large cache/ and downloads/ directories - was in this small partition, hence the disk full errors.

    The reason it was only intermittent was that there just happened to be enough space for SABnzbd to download and extract some of the small-ish files I was using, but when I tried a larger (1.5Gb) one, it hit the 2Gb limit.

    So be careful about where your cache/ and download/ directories are - I’ve moved mine to /c/ now and it’s working fine.

  21. Fredrik a dit,

    le 28 décembre 2009 à 02:28

    Thanks for an excellent guide.

    I changed the startup to do a “nice -19″.
    (or else my streaming over smb would stutter)

    Any chance for an updated guide for the latest sabnzbd? Seems to require something else:

    “Sorry, requires Python module sqlite3 (pysqlite2 in python2.4)”

RSS des commentaires - URL de rétrolien

Réagir sur le billet

Nom : (obligatoire)

E-mail : (obligatoire)

Site Web :

Comment:

Tags: , , , , , ,