NSLU2-Linux
view · edit · print · history

HowTo.SABnzbd History

Hide minor edits - Show changes to markup

October 08, 2008, at 06:33 PM by Rob Maas -- Update for version 0.4.4
Added lines 114-122:

This works great, but to get version 0.4.4 working I needed to install these files too.

 ipkg install py25-cheetah
ipkg install py25-cherrypy
ipkg install py25-elementtree
ipkg install py25-celementtree
ipkg install py25-yenc\\
June 21, 2008, at 05:07 AM by Darek Sliwa --
Changed lines 7-17 from:
  • ipkg update
  • ipkg upgrade
  • ipkg install coreutils
  • ipkg install python
  • ipkg install py-cheetah
  • ipkg install py-cherrypy
  • ipkg install py-elementtree
  • ipkg install py-yenc
  • ipkg install unrar
  • ipkg install par2cmdline
to:
 ipkg update
 ipkg upgrade
 ipkg install coreutils
 ipkg install python
 ipkg install py-cheetah
 ipkg install py-cherrypy
 ipkg install py-elementtree
 ipkg install py-yenc
 ipkg install unrar
 ipkg install par2cmdline
Changed lines 20-21 from:

Edit the /etc/passwd file, my guest line looks like:

to:

Edit the /etc/passwd file, my guest line looks like:

Changed lines 24-25 from:

To test the guest user, use su guest. If it doesn't work make sure the home dir exists (in the passwd file) and set the right properties. I have chmod 777 -R, chgrp everyone -R and chown guest -R the home dir.

to:

To test the guest user, use su guest. If it doesn't work make sure the home dir exists (in the passwd file) and set the right properties. I have chmod 777 -R, chgrp everyone -R and chown guest -R the home dir.

Changed lines 36-37 from:

Set up a S99SABnzbd file in /opt/etc/init.d

to:

Set up a S99SABnzbd file in /opt/etc/init.d

May 06, 2008, at 07:27 PM by Pelders --
Added line 51:
Changed lines 53-54 from:

Thanx to BrianZhou? who did the initial job.
Somehow it didn't work out well on my fresh unslung NSLU2 (V2.3R63-uNSLUng-6.10-beta) with a disk on port DISK2?.\\

to:

Somehow the description above didn't work out well on my fresh unslung NSLU2 (V2.3R63-uNSLUng-6.10-beta) with a disk on port DISK2?.\\

May 04, 2008, at 08:07 PM by Pelders --
Changed lines 58-70 from:
  • ipkg update
  • ipkg install coreutils
  • ipkg install python
  • ipkg install py24-cheetah
  • ipkg install py24-cherrypy
  • ipkg install py24-elementtree
  • ipkg install py24-celementtree
  • ipkg install py24-yenc
  • ipkg install unrar
  • ipkg install unzip
  • ipkg install par2cmdline
  • ipkg install perl
to:
 ipkg update
ipkg install coreutils
ipkg install python
ipkg install py24-cheetah
ipkg install py24-cherrypy
ipkg install py24-elementtree
ipkg install py24-celementtree
ipkg install py24-yenc
ipkg install unrar
ipkg install unzip
ipkg install par2cmdline
ipkg install perl
Deleted line 71:
Changed lines 78-81 from:

The default guest user has no shell defined which gives a /dev/null permission denied error.
vi /etc/passwd and change /dev/null into /bin/sh for the guest account.
Test the guest account with /opt/bin/su guest
>> Dont use the l or m option because this will give the wrong $HOME or $PATH

to:

The default guest user has no shell defined which gives a /dev/null permission denied error.
vi /etc/passwd and change /dev/null into /bin/sh for the guest account.
Test the guest account with su guest
>> Dont use the l or m option because this will give the wrong $HOME or $PATH

Changed lines 84-85 from:

Download and unpack SABnzbd-0.3.4.tar.gz to \\nslu2\DISK 2\ from a PC.

to:

Download and unpack SABnzbd-0.3.4.tar.gz to \\nslu2\DISK 2\ from a PC.

Changed lines 92-95 from:

Modify the configuration settings in /home/user/guest/.sabnzbd/sabnzbd.ini.
Change the paths to a location /share/flash/data/public/ to make the results accessable from your PC.
Fill in IP (default 192.168.1.77) and port 8080.

to:

Modify the configuration settings in /home/user/guest/.sabnzbd/sabnzbd.ini.
Change the paths to a location /share/flash/data/public/ to make the results accessable from your PC.
Fill in IP (default 192.168.1.77) and port 8080.

Changed line 112 from:

Check the web interface at: http://192.168.1.77:8080/sabnzbd

to:

Check the web interface at: http://192.168.1.77:8080/sabnzbd

May 04, 2008, at 07:57 PM by Pelders --
Deleted line 68:
  • ipkg install libpar2
Deleted line 107:
Deleted line 110:
May 04, 2008, at 07:55 PM by Pelders --
Deleted line 83:
Deleted line 90:
Changed line 94 from:

Modify the configuration settings in /home/user/guest/.sabnzbd/sabnzbd.ini\\

to:

Modify the configuration settings in /home/user/guest/.sabnzbd/sabnzbd.ini.\\

Changed lines 96-99 from:

Fill in IP (default 192.168.1.77) and port 8080

Exit the user guest and become root again

to:

Fill in IP (default 192.168.1.77) and port 8080.

Exit the user guest and become root again.

Changed lines 108-109 from:

Save the script.

to:

Save the script and apply correct permissions.

May 04, 2008, at 07:53 PM by Pelders --
Changed lines 102-103 from:
 vi /opt/etc/init.d/S99SABnzbd?\\
to:
 vi /opt/etc/init.d/S99SABnzbd?
Changed line 110 from:

Save the script.\\

to:

Save the script.

Changed lines 113-114 from:

Restart SABnzbd using the new settings:\\

to:

Restart SABnzbd using the new settings:

May 04, 2008, at 07:50 PM by Pelders --
Changed lines 72-73 from:

Because a guest home directory does not exist we make one:\\

to:

Because a guest home directory does not exist we make one:

Changed lines 83-86 from:

>> Dont use the l or m option because this will give the wrong $HOME or $PATH
whoami
Download and unpack SABnzbd-0.3.4.tar.gz to \\nslu2\DISK 2\ from a PC.\\

to:

>> Dont use the l or m option because this will give the wrong $HOME or $PATH

 whoami

Download and unpack SABnzbd-0.3.4.tar.gz to \\nslu2\DISK 2\ from a PC.

Changed lines 91-92 from:

Test SABnzbd using:
python /sabnzbd/SABnzbd.py\\

to:

Test SABnzbd using:

 python /sabnzbd/SABnzbd.py
May 04, 2008, at 07:46 PM by Pelders --
Changed lines 56-57 from:

Make SSH connection with NSLU2.\\

to:

Make SSH connection with NSLU2.

Changed lines 73-78 from:

mkdir /home/user
mkdir /home/user/guest
chmod 777 R /home/user
chgrp everyone R /home/user
chown guest R /home/user

to:
 mkdir /home/user
mkdir /home/user/guest
chmod 777 R /home/user
chgrp everyone R /home/user
chown guest R /home/user
Changed lines 83-84 from:

whoami

to:
 whoami
Changed lines 86-87 from:

mv /share/flash/data/public/SABn?* /share/flash/data/sabnzbd

to:
 mv /share/flash/data/public/SABn?* /share/flash/data/sabnzbd
Changed line 89 from:

python /sabnzbd/SABnzbd.py\\

to:
 python /sabnzbd/SABnzbd.py\\
Changed lines 98-100 from:

vi /opt/etc/init.d/S99SABnzbd?
#!/bin/sh if [ -n "`pidof python`" ]; then\\

to:
 vi /opt/etc/init.d/S99SABnzbd?
#!/bin/sh if [ -n "`pidof python`" ]; then\\
Changed lines 102-104 from:

fi
/opt/bin/su guest -c "/usr/bin/python /sabnzbd/SABnzbd.py f /home/user/guest/.sabnzbd/sabnzbd.ini -d"

to:
 fi
/opt/bin/su guest -c "/usr/bin/python /sabnzbd/SABnzbd.py f /home/user/guest/.sabnzbd/sabnzbd.ini -d"
Changed lines 106-107 from:

chmod 755 /opt/etc/init.d/S99SABnzbd?

to:
 chmod 755 /opt/etc/init.d/S99SABnzbd?
Changed lines 109-110 from:

/opt/etc/init.d/S99SABnzbd?

to:
 /opt/etc/init.d/S99SABnzbd?
May 04, 2008, at 07:35 PM by Pelders --
Changed lines 52-53 from:

Thanx to BrianZhou? who did the initial job. Somehow it didn't work out well on my fresh unslung NSLU2 (V2.3R63-uNSLUng-6.10-beta) with a disk on port DISK2?.

to:

Thanx to BrianZhou? who did the initial job.
Somehow it didn't work out well on my fresh unslung NSLU2 (V2.3R63-uNSLUng-6.10-beta) with a disk on port DISK2?.\\

Changed lines 56-75 from:

Make ssh connection with NSLU2 ipkg update ipkg install coreutils ipkg install python ipkg install py24-cheetah ipkg install py24-cherrypy ipkg install py24-elementtree ipkg install py24-celementtree ipkg install py24-yenc ipkg install unrar ipkg install unzip ipkg install par2cmdline ipkg install libpar2 ipkg install perl

Because a guest home directory does not exist we make one: mkdir /home/user mkdir /home/user/guest chmod 777 R /home/user chgrp everyone R /home/user

to:

Make SSH connection with NSLU2.
* ipkg update

  • ipkg install coreutils
  • ipkg install python
  • ipkg install py24-cheetah
  • ipkg install py24-cherrypy
  • ipkg install py24-elementtree
  • ipkg install py24-celementtree
  • ipkg install py24-yenc
  • ipkg install unrar
  • ipkg install unzip
  • ipkg install par2cmdline
  • ipkg install libpar2
  • ipkg install perl

Because a guest home directory does not exist we make one:
mkdir /home/user
mkdir /home/user/guest
chmod 777 R /home/user
chgrp everyone R /home/user\\

Changed lines 78-84 from:

The default guest user has no shell defined which gives a /dev/null error. vi /etc/passwd and change /dev/null into /bin/sh for the guest account. Test the guest account with /opt/bin/su guest >> Dont use the l or m option because this will give the wrong $HOME or $PATH whoami

Download and unpack SABnzbd-0.3.4.tar.gz to \\nslu2\DISK 2\ from a PC.

to:

The default guest user has no shell defined which gives a /dev/null permission denied error.
vi /etc/passwd and change /dev/null into /bin/sh for the guest account.
Test the guest account with /opt/bin/su guest
>> Dont use the l or m option because this will give the wrong $HOME or $PATH
whoami
Download and unpack SABnzbd-0.3.4.tar.gz to \\nslu2\DISK 2\ from a PC.\\

Changed lines 87-88 from:

Test SABnzbd using: python /sabnzbd/SABnzbd.py

to:

Test SABnzbd using:
python /sabnzbd/SABnzbd.py\\

Changed lines 91-92 from:

Modify the configuration settings in /home/user/guest/.sabnzbd/sabnzbd.ini Change the paths to a location /share/flash/data/public/ to make the results accessable from your PC.

to:

Modify the configuration settings in /home/user/guest/.sabnzbd/sabnzbd.ini
Change the paths to a location /share/flash/data/public/ to make the results accessable from your PC.\\

Changed line 97 from:

vi /opt/etc/init.d/S99SABnzbd?

to:

vi /opt/etc/init.d/S99SABnzbd?\\

Changed lines 99-104 from:

if [ -n "`pidof python`" ]; then

  /bin/killall python 2>/dev/null

fi /opt/bin/su guest -c "/usr/bin/python /sabnzbd/SABnzbd.py f /home/user/guest/.sabnzbd/sabnzbd.ini -d"

Save the script.

to:

if [ -n "`pidof python`" ]; then
/bin/killall python 2>/dev/null
fi
/opt/bin/su guest -c "/usr/bin/python /sabnzbd/SABnzbd.py f /home/user/guest/.sabnzbd/sabnzbd.ini -d"
Save the script.\\

Changed line 107 from:

Restart SABnzbd using the new settings:

to:

Restart SABnzbd using the new settings:\\

Deleted lines 110-111:

Maybe someone can help me with the layout of this contribution. A lot of CR's are missing.

May 04, 2008, at 12:48 PM by Pelders --
Added line 112:

Maybe someone can help me with the layout of this contribution. A lot of CR's are missing.

May 04, 2008, at 12:43 PM by Pelders --
Changed lines 57-60 from:

ipkg update ipkg install coreutils ipkg install python ipkg install py24-cheetah

to:

ipkg update ipkg install coreutils ipkg install python ipkg install py24-cheetah

Changed line 65 from:

ipkg install unrar

to:

ipkg install unrar

Changed line 67 from:

ipkg install par2cmdline

to:

ipkg install par2cmdline

May 04, 2008, at 12:41 PM by Pelders -- Alternative SABnzbd setup
Changed lines 50-111 from:

To see progress use http://[slug ip]:8080/sabnzbd/

to:

To see progress use http://[slug ip]:8080/sabnzbd/


Thanx to BrianZhou? who did the initial job. Somehow it didn't work out well on my fresh unslung NSLU2 (V2.3R63-uNSLUng-6.10-beta) with a disk on port DISK2?. This is my procedure to make it work.

Make ssh connection with NSLU2 ipkg update ipkg install coreutils ipkg install python ipkg install py24-cheetah ipkg install py24-cherrypy ipkg install py24-elementtree ipkg install py24-celementtree ipkg install py24-yenc ipkg install unrar ipkg install unzip ipkg install par2cmdline ipkg install libpar2 ipkg install perl

Because a guest home directory does not exist we make one: mkdir /home/user mkdir /home/user/guest chmod 777 R /home/user chgrp everyone R /home/user chown guest R /home/user

The default guest user has no shell defined which gives a /dev/null error. vi /etc/passwd and change /dev/null into /bin/sh for the guest account. Test the guest account with /opt/bin/su guest >> Dont use the l or m option because this will give the wrong $HOME or $PATH whoami

Download and unpack SABnzbd-0.3.4.tar.gz to \\nslu2\DISK 2\ from a PC. mv /share/flash/data/public/SABn?* /share/flash/data/sabnzbd

Test SABnzbd using: python /sabnzbd/SABnzbd.py A default configuration will be created.

Modify the configuration settings in /home/user/guest/.sabnzbd/sabnzbd.ini Change the paths to a location /share/flash/data/public/ to make the results accessable from your PC. Fill in IP (default 192.168.1.77) and port 8080

Exit the user guest and become root again

vi /opt/etc/init.d/S99SABnzbd?

  1. !/bin/sh

if [ -n "`pidof python`" ]; then

  /bin/killall python 2>/dev/null

fi /opt/bin/su guest -c "/usr/bin/python /sabnzbd/SABnzbd.py f /home/user/guest/.sabnzbd/sabnzbd.ini -d"

Save the script. chmod 755 /opt/etc/init.d/S99SABnzbd?

Restart SABnzbd using the new settings: /opt/etc/init.d/S99SABnzbd?

Check the web interface at: http://192.168.1.77:8080/sabnzbd

December 02, 2007, at 05:11 PM by BrianZhou -- sabnzbd in optware feed
Added lines 1-2:

Now that sabnzbd is in optware feed, should the instruction below be simplified/adjusted?


December 01, 2007, at 06:03 PM by DigitalChaos --
Changed lines 30-31 from:

Then edit the SABnzbd.ini (in the unpack dir you just used) file and set it up to your liking. Make sure all dirs exists and are owned by guest.

to:

Then edit the SABnzbd.ini (in the unpack dir you just used) file and set it up to your liking. Make sure all dirs exists and are owned by guest. It is best to specify the entire path instead of relative paths. If you run into errors starting SABnzbd (especially through a script) this is most likely why.

December 01, 2007, at 12:10 AM by DigitalChaos -- additional packages
Changed lines 12-15 from:
to:
  • ipkg install py-yenc
  • ipkg install unrar
  • ipkg install par2cmdline
October 14, 2007, at 01:26 AM by fcarolo -- fixed false wikilinks
Changed lines 37-38 from:
   su -l guest -c "/usr/bin/python /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.py -f /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.ini -d"
to:
   su -l guest -c "/usr/bin/python /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.py -f /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.ini -d"
Changed lines 41-42 from:
   sh /opt/etc/init.d/S99SABnzbd?.
to:
   sh /opt/etc/init.d/S99SABnzbd
October 14, 2007, at 01:25 AM by fcarolo -- fixed false wikilinks
Changed lines 31-32 from:

Set up a S99SABnzbd? file in /opt/etc/init.d

to:

Set up a S99SABnzbd file in /opt/etc/init.d

October 14, 2007, at 01:25 AM by fcarolo -- fixed false wikilinks
Changed lines 21-22 from:

Use the following to untar the SABnzbd-0.2.4 download:

to:

Use the following to untar the SABnzbd-0.2.4 download:

Changed line 24 from:
   tar -xvzf SABnzbd-0.2.4.tar.gz [dir you like]
to:
   tar -xvzf SABnzbd-0.2.4.tar.gz [dir you like]
Changed lines 27-28 from:

Then edit the SABnzbd.ini (in the unpack dir you just used) file and set it up to your liking. Make sure all dirs exists and are owned by guest.

to:

Then edit the SABnzbd.ini (in the unpack dir you just used) file and set it up to your liking. Make sure all dirs exists and are owned by guest.

Changed lines 37-38 from:
   su -l guest -c "/usr/bin/python /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.py -f /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.ini -d"
to:
   su -l guest -c "/usr/bin/python /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.py -f /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.ini -d"
Changed line 45 from:

To see progress use http://[slug ip]:8080/sabnzbd/

to:

To see progress use http://[slug ip]:8080/sabnzbd/

October 13, 2007, at 10:32 AM by Marco Schellings --
Changed lines 17-18 from:

guest:scBiQ2b1qfa3E:2000:501::/home/user:/bin/sh

to:
    guest:scBiQ2b1qfa3E:2000:501::/home/user:/bin/sh
Changed lines 23-28 from:

su guest tar -xvzf SABnzbd-0.2.4.tar.gz [dir you like] exit

Then edit the SABnzbd.ini file and set it up to your liking. Make sure all dirs exists and are owned by guest.

to:
   su guest
   tar -xvzf SABnzbd-0.2.4.tar.gz [dir you like]
   exit

Then edit the SABnzbd.ini (in the unpack dir you just used) file and set it up to your liking. Make sure all dirs exists and are owned by guest.

Changed lines 39-40 from:

Test it using sh /opt/etc/init.d/S99SABnzbd?.

to:

Test it using

   sh /opt/etc/init.d/S99SABnzbd?.
October 13, 2007, at 10:31 AM by Marco Schellings --
Changed lines 33-38 from:

if [ -n "`pidof python`" ]; then

   /bin/killall python 2>/dev/null

fi

su -l guest -c "/usr/bin/python /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.py -f /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.ini -d"

to:
   if [ -n "`pidof python`" ]; then
     /bin/killall python 2>/dev/null
   fi

   su -l guest -c "/usr/bin/python /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.py -f /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.ini -d"
October 13, 2007, at 10:25 AM by Marco Schellings --
Changed lines 19-22 from:

To test the guest user, use su guest.

You need a guest account to 'own' the python process.

to:

To test the guest user, use su guest. If it doesn't work make sure the home dir exists (in the passwd file) and set the right properties. I have chmod 777 -R, chgrp everyone -R and chown guest -R the home dir.

Use the following to untar the SABnzbd-0.2.4 download:

su guest tar -xvzf SABnzbd-0.2.4.tar.gz [dir you like] exit

Then edit the SABnzbd.ini file and set it up to your liking. Make sure all dirs exists and are owned by guest.

You need a guest account to 'own' the python process, because thats the process that will create the download/temp/log files.

Changed lines 39-43 from:
to:

Test it using sh /opt/etc/init.d/S99SABnzbd?.

Then your off, download a nzb file and put it in the appropriate dir.

To see progress use http://[slug ip]:8080/sabnzbd/

October 13, 2007, at 10:18 AM by Marco Schellings --
October 13, 2007, at 10:17 AM by Marco Schellings --
Added lines 17-24:

guest:scBiQ2b1qfa3E:2000:501::/home/user:/bin/sh

To test the guest user, use su guest.

You need a guest account to 'own' the python process.

Set up a S99SABnzbd? file in /opt/etc/init.d

October 13, 2007, at 10:12 AM by Marco Schellings --
Added lines 15-23:

Edit the /etc/passwd file, my guest line looks like:

if [ -n "`pidof python`" ]; then

   /bin/killall python 2>/dev/null

fi

su -l guest -c "/usr/bin/python /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.py -f /opt/local/sabnzbd/SABnzbd-0.2.4/SABnzbd.ini -d"

October 13, 2007, at 10:11 AM by Marco Schellings --
Added lines 1-2:

I've got this working with the help of http://www.ed-x.demon.nl/sabnzbd.html and the help of John at http://tech.groups.yahoo.com/group/nslu2-linux.

Changed lines 6-12 from:

- ipkg upgrade - ipkg install coreutils - ipkg install python - ipkg install py-cheetah - ipkg install py-cherrypy - ipkg install py-elementtree

to:
  • ipkg upgrade
  • ipkg install coreutils
  • ipkg install python
  • ipkg install py-cheetah
  • ipkg install py-cherrypy
  • ipkg install py-elementtree
October 13, 2007, at 10:09 AM by Marco Schellings --
Changed lines 3-4 from:

- ipkg update

to:
  • ipkg update
October 13, 2007, at 10:09 AM by Marco Schellings --
Added line 4:
October 13, 2007, at 10:08 AM by Marco Schellings --
Changed lines 3-10 from:

ipkg update ipkg upgrade ipkg install coreutils ipkg install python ipkg install py-cheetah ipkg install py-cherrypy ipkg install py-elementtree

to:

- ipkg update - ipkg upgrade - ipkg install coreutils - ipkg install python - ipkg install py-cheetah - ipkg install py-cherrypy - ipkg install py-elementtree

October 13, 2007, at 10:07 AM by Marco Schellings -- How to SABnzbd
Added lines 1-12:

Firstly install

ipkg update ipkg upgrade ipkg install coreutils ipkg install python ipkg install py-cheetah ipkg install py-cherrypy ipkg install py-elementtree

Set up a guest account using the webinterface.

view · edit · print · history · Last edited by Rob Maas.
Based on work by Darek Sliwa, Pelders, BrianZhou, DigitalChaos, fcarolo, and Marco Schellings.
Originally by Marco Schellings.
Page last modified on October 08, 2008, at 06:33 PM