Do not use this howto if you are using fun_plug or nzbget already! [updated 01-03-2010]
this howto is a first test for me to see if I can write a howto out of experience and without the need to do a complete install myself (No NAS available to do it).
updated: 17-11-2009
Enjoy!, This howto should be working now.
Trying to create a howto without installing fun_plug, nzbgeta nd more ..
How we start:
Download first the two Fun_Plug files,
copy them in the Volume_1. Do not change filenames
http://www.inreto.de/dns323/fun-plug/0.5/fun_plug
http://www.inreto.de/dns323/fun-plug/0.5/fun_plug.tgz
after copying fun_plug and fun_plug.tgz reboot the NAS
after a while: telnet is available and you will see in your Volume_1 a new folder: ffp
The file fun_plug.tgz does not exist anymore
Download Putty
http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
telnet to ‘CH3SNAS’
/ #
first we will make sure ALL packages will be downloaded and installed to create a working environment
Using rsync, you can download and install additional packages with:
cd /mnt/HD_a2
rsync -av inreto.de::dns323/fun-plug/0.5/packages .
cd packages(install with funpkg -i *.tgz)
Also download in this folder the latest versions of PHP and a texteditor & unrar
(note it is possible that after some time these links are outdated)
wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/All/php-5.2.9-1.tgzimportant: php is compiled with CURL support so you have to support the curl package as well:
wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/All/curl-7.19.4-1.tgz
wget http://ffp.wolf-u.li/additional/app-editors/nano-2.0.9-2.tgz
wget http://ffp.wolf-u.li/additional/app-arch (do not use this link but find the unrar package and than use the complete URL for that package)get latest unrar (make sure you use: unrar-3.9.8-1.tgz or later), cause otherwise it is possible that the postprocessing script will fail on certain rar files and cause the nzbget to crash!
install php, nano and unrar and do not forget to install CURL !!!! (Many times downloaded, many times forget to install)
funpkg -i php-5.2.9-1.tgz
funpkg -i curl-7.19.4-1.tgz
funpkg -i nano-2.0.9-2.tgz
funpkg -i unrar-3.9.6-1.tgz
the only thing we have to do now is make sure that PHP.INI is copied to the correct folder and gets the correct filename
cp /mnt/HD_a2/ffp/etc/examples/php.ini-recommended /ffp/etc/php.ini
Okay, now the main functions for FFP are installed we can install NZGET, NZBGETTER and NZBGETWEB
download the latest version of the newsbin package containing: a nzbget version, nzbgetweb, nzbgetter and unpak.sh
from this location: http://www.aroundmyroom.com/newsbin
in this how-to I use this version:
http://www.aroundmyroom.com/newsbin/newsbinch3snas-v31.tgz
put the correct file into the root of the Harddisk of the NAS, this is /mnt/HD_a2 (or in Volume_1)
untar the tgz file with the command:
tar -xvzf newsbinch3snas-v31.tgz, a folder newsbin will be created in \Volume_1
if you are using a CH3MNAS than the filename is different but a \Volume_1\newsbin is also created.
Than there are a few files you have to copy manually into the correct folders so that everything is started correctly
go into the newsbin folder:
cd /mnt/HD_a2/newsbin
than copy the 2 shell script files (extension SH) to the startup folder of Fun_Plug
cp *.sh /ffp/start
2 files are being copied: startnzbget.sh and startweb.sh
startnzbget.sh will start nzbget with this command
/mnt/HD_a2/newsbin/bin/nzbget -D -c /mnt/HD_a2/newsbin/conf/nzbget.conf
startweb.sh will start lighttpd with it’s own configuration file found in /newsbin/conf/
the webserver is started with this command:
/ffp/sbin/lighttpd -f /mnt/HD_a2/newsbin/conf/lighttpd.conf
with next reboot nzbget and nzbgetweb will be started automatically.
optional you can copy from /conf/editcron.sh the cronfile into /ffp/start as well to have nzbgetter auto-download your nzb files, it is possible you already installed it, so do not copy it cause your old crontab file will be overwritten.
it’s also possible to add this task into the scheduler function within nzbgetweb with this commandline function:
/ffp/bin/php /mnt/HD_a2/newsbin/web/nzbgetter/__exec__/run.php
if you do not reboot you have to make sure you start the two shell scripts manually.
cd /ffp/start
sh startnzbget.sh start
sh startweb.sh start
the first script starts nzbget for downloading from usenet, the 2nd script will run lighttpd with the correct configurations
upload your nzbfiles manually into /mnt/HD_a2/newsbin/nzb or use nzbgetter.
to access nzbgetweb interface: http://[ip-of-nas]:8000
to access nzbgetter web interface: http://[ip-of-nas]:8000/nzbgetter or access it through the nzbgetweb interface
Please make sure you configure nzbget with your usenet account and password!!!
This can be done through the webinterface of nzbgetweb or otherwise you have to edit the nzget.conf
nano -w /mnt/HD_a2/newsbin/conf/nzbget.conf
press: CTRL-W and search for: Server1
here you have to enter your Usenet Server Address, Account and Password
Save the configuration file with CTRL-0 and with CTRL-X you go back to the shell
When you change some configuration a restart of the application is often necessary
the unpak.sh script will make sure that downloaded stuff will be put in the correct folder after download.
this short how-to is far from perfect and a quick reference next to the normal manual of the various tools


Following this guide I found myself unable to run a seperate lighttp daemon for serving pages. Maybe you should add a note about it ;)
It’s indeed different when you already have lighttpd configured. What I did was move the newsbin/web folder to the lighttpd web folder (/usb/www/pages in my case).
Great how-to! Thanks.
Hi,
I get the following error when accessing the web interface. Any ideas?
ERROR: NZBGetWeb could not connect to NZBGet-Server.
Possible reasons include:
# NZBGet-Server is not running (start);
# IP/Port-settings are incorrect. Check config;
# Firewall is not properly configured (if nzbget-server and web-interface run on different computer).
Error-message reported by OS: Connection refused (111)
and when clicking Server Control > Start
ERROR: Could not start server. Errorcode: 16.
Output:
/mnt/HD_a2/newsbin/bin/nzbget: can\’t load library \’libssl.so.0.9.7\’
volgens mij ben je afgestapt van mijn configuratie
want ssl ondersteun ik niet noch heb ik nooit zelf geprobeerd om aan de gang te krijgen.
maw. ik heb geen idee hoe je dit kan oplossen.
Even this n00b managed to get his newsbin working… :) happy puppy here!
@rick: Kewl !!! ..
b.t.w. now you have also the possibility to download automatically with nzbgetter ;_)
Thanx Dennis for keeping NZBGET up to date for this fine NAS.
Considering the SSL question: I never tried SSL on nzbget, but i use SSL for nzbweb to make it a little more secure, as i’m supplying my credentials to it over the internet.
Its actually rather simple to configure SSL:
1) Generate an SSL certificate using openSSL, for example:
# openssl req -new -x509 -keyout /conf/server.pem -out /server.pem -days 4380 -nodes
(This certificate will be valid for 10 years.)
2) modify /conf/lighttpd.conf for the following lines:
#### SSL engine
ssl.engine = “enable”
ssl.pemfile = “/conf/server.pem”
And that should be it. Hope this helps.
funpkg -i unrar-3.9.6-1.tgz klopt niet met de unrar versie, maakt verder niet zoveel uit.
Ik zie alleen dat er een nieuwere versie uit is van nzbget web interface.
http://nzbget.sourceforge.net/Download
Is er een howto van hoe ik deze kan installeren, of is dit niet verstandig?
mitch, that is correct
i forgot to update the unrar link, what should revert to the folder not the file due to the updates.
I know there is a new version of nzbget, but it has some impact on my whole script and this new version does not add anything else new
also I am waiting for a nzbgetter update. But no idea if there will be one.
Is het ook mogelijk om na het uitpakken en repareren van de bestanden, de avi bestanden automatisch om te laten zetten naar mpeg2. Mijn DM800HD speelt namelijk geen AVI af, en omzetten via de PC duur namelijk behoorlijk lang.
@steneker: nee dat kan niet, en dan zou het nog langer duren dan op je PC.
Bij het runnen van nzbget gaat het bij mij mis, zelfs het runnen met de hand:
root@nas:/mnt/HD_a2/newsbin/bin# nzbget
-sh: nzbget: not found
ook na chmod 755 nzbget
Iemand een idee?
Oppie, wat voor nas heb je en welke binary heb je gepakt?
Heb de ch3snas en alle files uit je how to hier gebruikt.
Aha ik snap m, heb deze gepakt: newsbinch3mnas-v31-a.tgz 13-Dec-2009 14:35
Zal ik maar de ch3snas pakken? ;)
@oppie: yep ;-)
Dan gaat het wel lukken, had al een eerdere versie draaien voorheen. Dank voor de tip en sterkte met het privé gebeuren.
great how to! as far as i can see now, it’s up and running (well, at least the NZBGet web interface is showing…)
thanks for helping this noob!