Page 1 of 2

Dlink DNS 323 NAS install instructions

Posted: July 7th, 2009, 5:44 pm
by mc625569
Hello friends,

I've been a loyal SAB fan for a while now, and I just got things working on a DLINK DNS 323 NAS box. THis presents a low power alternative to a dedicated newzbin server.

Here is an english version of some basic install instructions. Im a linux newb, so I am SURE there are better more secure ways to do this (runn as a sep account etc...) but for what its worth, this is one way to get it working

Installing SABnzbd on a Dlink DNS 323 for the complete NOOB

PREREQ's

-Dlink NAS running 1.06
(others may work, but I used 1.06)

-DebNas
A linux distro specifically for this DLINK box.
http://sourceforge.net/projects/debnas/

(debnas-0.5.tar.b2)

-Some type of unzipping utility to unzip tar, bz2 and tar files.
if you have a mac you can do this at the cli, windows users may need to
get 7zip or winrar? not sure.


-Make sure your NAS works, ie that you can map a file share in windows or mac.
in windows
\\\Volume_1

-ssh client: putty is a free one for windows

mac
smb://
connect to Volume_1 when it asks


INSTRUCTIONS:

First: we have to get Debian running on this thing , once we have this running we can
easily install the other software tools we need to get things running (python, sab, etc..)


1. unzip debnas
if you have a mac or linux

tar -xjvf debnas-xx.tar.bz2

if you have windows, it should be pretty simple using winrar or 7zip (both free)
you should be left with 2 files

fun_plug
linux.tar


2. Copy fun_plug and linux.tar to the root of your DLINK nas. I started with an empty drive
so when I looked at volume_1 I saw no files or folders, just plop the 2 files

3. Reboot, you can use the web console on the device to do this , i think its in the tools menu

4. Wait, it can take a few minutes to reboot....

5. Once its up ssh into the box using u: root p: 12345678

6. you should be at a command line. There is more software to install. Enter the following 2 commands.

apt-get update
apt-get -y install unzip par2 python-dev python-cheetah python-cherrypy python-elementtree unrar


7. Next download the latest version of SABnzbd SOURCE. you can use a wget command to get the software
from the command line of your NAS but I downloaded SAB to my laptop then moved it over.

here is where I got the file 4.11 at the time of this writing. This may change , check the SABnzb website
for the latest SOURCE .

http://sourceforge.net/projects/sabnzbd ... src.tar.gz

8. Next we have to move the SABnzbd-0.4.11-src.tar.gz file to the NAS box
You should be able to drag and drop into your shared Volume_1.  NOTE
you will want to put it somewhere like
Volume_1/Linux/opt/

9. Now from your SSH session navigate to where you placed the SAB file, in our case its
(note: volume_1/linux/opt corresponds to just /opt when we ssh in since we are chrooted. )

cd /opt 

10. Now unzip SABNZBD . From the SSH session in the opt directory
tar -zxvf /opt/SABnzbd-0.4.11-src.tar.gz

11. Now you'll need to edit a file in your /root directory . I loathe vi so I use pico

pico /root/.sabnzbd/sabnzbd.ini

change the line
host=localhost

to
host= for example mine ishost=192.168.1.10


12. Now you should be able to start the process and run it.
python  /opt/SABnzbd-0.4.11/SABnzbd.py -d -f ~/.sabnzbd/sabnnbd.ini


13. on your web browser go to :8080/sabnzbd  and you should be clear to
enter your newsgroup settings.



if you have a question about this, you can PM me and Ill try to answer.

thanks to this community for producing great software !

Re: Dlink DNS 323 NAS install instructions

Posted: September 6th, 2009, 8:00 am
by ravedog
Hey!

Just checked out this guide and installed after it and it all went smooth. It works like a charm.

However, there is a small bit of instruction forgotten between these steps above:

___________________________________________________________________

10. Now unzip SABNZBD . From the SSH session in the opt directory
tar -zxvf /opt/SABnzbd-0.4.11-src.tar.gz

11. Now you'll need to edit a file in your /root directory . I loathe vi so I use pico

pico /root/.sabnzbd/sabnzbd.ini

change the line
host=localhost

to
host= for example mine ishost=192.168.1.10

___________________________________________________________________

You will find that there is no sabnzbd.ini file in your root dir and this is due to that its created upon the first run of SABnzbd. So add this in between the above steps:

Step 10.5:
start the SABnzb in the foreground with the following command:

Code: Select all

python  /opt/SABnzbd-0.4.11/SABnzbd.py
after a few seconds you will see that it stops listing text of what it just did, and you can stop the process with CTRL+C.


Thanks for a good guide mc625569.

br,

RavedoG

Re: Dlink DNS 323 NAS install instructions

Posted: November 9th, 2009, 12:05 pm
by tomella
Hello,

i tried "apt-get update"

and got the following error:

W: GPG error: http://ftp.de.debian.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: You may want to run apt-get update to correct these problems


Can anybody help me ?

Thanks
Best Regards
tomella

Re: Dlink DNS 323 NAS install instructions

Posted: February 20th, 2010, 7:05 pm
by captainfoots
Hi,

Thank you for this great guide  :D

I've 21 questions for finish my settings of SABnzbd+ on my DNS 323 ...

-How autoload the process (python  /opt/SABnzbd-0.4.12/SABnzbd.py) after reboot the NAS ?

-How to enable SSL in Servers of Config menu (it's disable and i'm unable to find any option for activate it !) ?
I've just find in this thread http://forums.sabnzbd.org/http://forums ... 2517#p2517 the solution ;D apt-get install python-pyopenssl from console ssh, shutdown SABnzbd+ and restart the process python  /opt/SABnzbd-0.4.12/SABnzbd.py!

Thanks & regards

Re: Dlink DNS 323 NAS install instructions

Posted: August 19th, 2010, 9:29 pm
by dboon78
Hey, total NOOB here..

I followed steps 1-6, but when i try to copy the sab source file into the /linux/opt directory it gives me an access denied message.  I tried changing the permissions in explorer and no luck.  any advice?

Re: Dlink DNS 323 NAS install instructions

Posted: August 21st, 2010, 4:56 am
by mollydog
To download it directly to your NAS use the cd command to change directory (folder in windows language) followed by the wget command to download it, then follow on with the  tar command as shown to unzip it

Code: Select all

cd /opt
wget http://puzzle.dl.sourceforge.net/project/sabnzbdplus/sabnzbdplus/sabnzbd-0.5.3/SABnzbd-0.5.3-src.tar.gz
tar -zxvf sabnzbd-0.5.3/SABnzbd-0.5.3-src.tar.gz

Re: Dlink DNS 323 NAS install instructions

Posted: August 21st, 2010, 12:53 pm
by dboon78
THANKS!!!

Re: Dlink DNS 323 NAS install instructions

Posted: August 21st, 2010, 2:49 pm
by dboon78
K well at least i got Sabnzbd downloaded, but i'm having the hardest time installing python.  
apt-get install python-pyopenssl
gave me a long list of 'unable to fetch ...'  with a long list of python .deb files it couldn't reach..

i've tried to download a bunch of different .deb files directly from the ftp, and in the end i keep getting the message about 'unmet dependencies' seemingly stemming from not having python2.4 installed..  as well as python2.4-tk or python-tk.

i get the feeling that these instructions are old and so a lot of the files are out of date and have been moved to archives, but i'm just too noob to figure it out.

Re: Dlink DNS 323 NAS install instructions

Posted: August 22nd, 2010, 4:32 pm
by dboon78
okay.. forget that last question..  now my question is different.  I have sabnzbd running and downloading and reading RSS and everything.  WOOT!!  but how do I get it to download outside of the /linux/ directory?

I tried entereing //[ip of nas]/volume1/[directory for download] but all it does is create a directory inside the /linux/ directory that i can't read outside of putty..  what to do?

Re: Dlink DNS 323 NAS install instructions

Posted: August 23rd, 2010, 9:38 am
by shypike
External volumes need to be be "mounted" to the file system.
This means, mapping them to /mnt/some_name.
Check your OS's documentation for instructions.

Re: Dlink DNS 323 NAS install instructions

Posted: April 19th, 2011, 6:40 am
by Red Arrow
Sorry for bumping up an old thread but I need some advice in relation to installing this on my D-Link 323.

I followed the full guide, it installed fine and am able to access sabnzbd via my browser. Only problem is when I start up sabnzbd using the command python  /opt/SABnzbd-0.5.6/SABnzbd.py, it appears to hang at the stage where is says something along the lines of Running RSS scan (sorry I'm currently unable to copy the exact message right now).

While it's hanging at this line I'm able to access sabnzbd via the browser, but as soon as I close putty or interrupt the command running it's no longer reachable via the browser.

Any advice? I'm a bit of a Linux newbie so please keep that in mind if you respond.

Re: Dlink DNS 323 NAS install instructions

Posted: April 19th, 2011, 7:40 pm
by shypike
If you start SABnzbd through a SSH session, make sure you run it it daemon mode (-d)
otherwise the operating system will kill SABnzbd as soon as you disconnect.
Other than that, I don't know anything about the D-Link package.
Another party creates that, so ask them.

Re: Dlink DNS 323 NAS install instructions

Posted: June 7th, 2011, 2:48 pm
by mgori
I tried to SSH into the box after rebooted and I get "Connection Refused". Any ideas?

Re: Dlink DNS 323 NAS install instructions

Posted: November 26th, 2011, 2:18 pm
by mickeys
mgori , i have a same probleme

any ideas ?

ok i find the solution
i install firmware 1.09

Re: Dlink DNS 323 NAS install instructions

Posted: January 28th, 2012, 8:53 am
by hotbaws
Hi All,

Sorry to bump this old thread again but I've been having issues trying to get SABnzbd 0.6.14 running on my DNS 323.

I followed the OP's instructions but got stuck trying to install Python, like someone previously mentioned using the apt-get install python-pyopenssl instructions I kept getting 'unable to fetch' error.

I did manage to get Python-2.5.4 installed onto my Nas but I'm not sure if I put it in the correct place with regards to running SABnzbd via it.

I put the SAB into the /OPT folder as per the instructions but I didn't put the python into the /OPT folder and I'm wondering if I should have?

dlink-93903C:~# dir
Python-2.5.4 Python-2.5.4.tar

And SAB in the /opt folder

dlink-93903C:/opt# dir
SABnzbd-0.6.14 SABnzbd-0.6.14-src.tar.gz SABnzbd-0.6.14-src.tar.gz.1


I'm lost now as I've tried to run the python command from above but changed it to try and match what I've got installed?

dlink-93903C:~# python-2.5.4 /opt/SABnzbd-0.6.14/SABnzbd.py
-bash: python-2.5.4: command not found


I'm hoping this will make sense to someone and you'll be able to point me in the right direction as you've probably guested I'm new to linux programming.

Thanks in advance for any help and advise.

cheers
Baws