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.tgz

important: 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

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