[HOW-TO] Installing NZBGet on QNAP

Get help, report and discuss bugs.
Post Reply
emieln
Posts: 10
Joined: 26 Jan 2009, 22:52

[HOW-TO] Installing NZBGet on QNAP

Post by emieln » 26 Jan 2009, 11:47

Hi phil-t, if you don't mind me asking, how did you manage to get nzbget-0.5 installed and working on the QNAP?

I installed nzbget-0.4 using the qpkg for it, but when i run it i get this error:
/share/MD0_DATA/.qpkg/nzbget/nzbget: relocation error: /usr/local/lib/libsigc-2.0.so.0: symbol __aeabi_atexit, version GLIBC_2.4 not defined in file libc.so.6 with link time reference

Then I installed ipkg and used that to install nzbget-0.5, but running it results in this error:
/opt/bin/nzbget: relocation error: /opt/lib/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Then I tried to install make and gcc, but running 'make' results in this error as well:
make: relocation error: /opt/lib/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Basically, none of the ipkg installed packages work, and i installed ipkg using qpkg. Is there some other way? (i have a QNAP TS-209 Pro II)

phil-t
Posts: 31
Joined: 27 Jan 2009, 08:24

Re: [QUESTION] Direction/Future of NZBGet

Post by phil-t » 26 Jan 2009, 20:44

Hi,

Yeah, being a Linux noob, and also struggling to get the ipkg working, I went for the tried and trusted method of

1. Downloaded the ipk's manually (In windows)
Browse to: http://nslu2-linux.dyoung-mirror.net/fe ... ss/stable/

2. Download
unrar_3.7.8-1_arm.ipk
nzbget_0.5.1-1_arm.ipk
libpar2_0.2-5_arm.ipk
libsigc++_2.0.18-1_arm.ipk

3. Using Unrar, (I did this in windows)

From unrar_3.7.xxx.ipk
Take the unrar binary from the
located by drilling down through the ipkg -> unrar_3.7.8-1.arm\data.tar.gz\opt\bin\

libpar2.so.0.0.1
located at libpar2_0.2-5.arm\data.tar.gz\opt\lib\

libsigc-2.0.so.0.0.0
located at libsigc++_2.0.18-1.arm\data.tar.gz\opt\lib\

nzbget
located at nzbget_0.5.1-1_arm\data.tar.gz\opt\bin\nzbget

then
nzbget.conf.example
postprocess-example.sh
located at nzbget_0.5.1-1_arm\data.tar.gz\opt\share\doc\nzbget

4. Get all the files in one directory
So, you should have
libpar2.so.0.0.1
libsigc-2.0.so.0.0.0
nzbget
nzbget.conf.example
postprocess-example.sh

5.Copy/Rename Conf/Post process files
Copy and rename nzbget.conf.example -> nzbget.conf
and postprocess-example.sh -> postprocess.sh
(Copy them, then rename, you want to keep the original examples should it all go pete tong)


OK...

6. Copy to NAS..
(Oh remember to disable nzbget from the QNAP Admin web interface (QPKG))
then I used WinSCP for this..
On my box (Non-raid)
/share/HDA_DATA/.qpkg/
In there, rename the existing nzbget dir to nzbget.old (or whatever!)
make a new dir 'nzbget'
Copy the files you created above..
Then copy the following from the nzbget.old directory to the new one
nzbget.sh
nzbget-main.sh
(These are the shell scripts QNAP use)
Finally, you need to set file permissions, I just set everything to 0755 (this is how QNAP had set theirs)
(nzbget-conf is 0666 on mine)
The actual nzbget directory, I set it's permissions to 777 (full access)



Configure NZBGet
Open the nzbget-conf file in the new directory, and
The main changes are

Code: Select all

$MAINDIR=/share/Qdownload/nzbget

Code: Select all

ServerPassword=admin

Then I just used the QPKG page of the QNAP Admin web interface to enable nzbget

(If you aren't sure, you can telnet in (PuTTY or similar can be used), and manually run the nzbget-main script and you will see if there are any errors!

phil-t
Posts: 31
Joined: 27 Jan 2009, 08:24

Re: [QUESTION] Direction/Future of NZBGet

Post by phil-t » 26 Jan 2009, 21:04

And of course the Web Interface!

Slightly easier..
1. Download Web Interface 1.3-testing-2 from the announcements section of this forum!

2. Unzip the nzbget directory from the downloaded file (nzbgetweb-1.3-testing-2.zip)

3. Rename the old nzbget directory on the NAS
- Browse to /share/HDA_DATA/QWeb and rename nzbget to nzbget.old

4. Copy the new nzbget directory from step 2 into the /share/HDA_DATA/QWeb

5. And most importantly (This bit me in the ass), change file permissions
Now, this is where my advice falls down, I had loads of issues, so in the end set the directory, and all files therein with the permission value of 0777 which means anything/one can change the data.. but it seemed the easiest way to get it working, I may try tightening these up shortly.. (Don't forget to set the nzbget directory permissions as well!

6. I think I then just used a web browser and went to //NAS/nzbgetweb/
This created the settings.php from the template file..

7.From the main webpage, I then went to 'config' and changed the following (Under COMMUNICATION WITH NZBGET SERVER)
ServerPassword: admin (This should match the Server Password set in the previous post)
ServerConfigFile: /share/HDA_DATA/.qpkg/nzbget/nzbget.conf
ServerConfigTemplate: /share/HDA_DATA/.qpkg/nzbget/nzbget.conf.example
NzbDir: /share/Qdownload/nzbget/nzb

I then closed the browser, re-opened, and it was then able to connect to the server, so under 'config' you get more options..
PARCHECK/REPAIR and PROCESSING
PostProcess: /share/HDA_DATA/.qpkg/nzbget/postprocess.sh

And then check the PATHS section etc,


IMPORTANT
I nearly forgot, a couple of gotcha's I found
1. The settings.php (Web config file) needs to have the following changed

Code: Select all

$CheckSpaceDir='/share/Qdownload/nzbget/dst';
(This isn't accessible via the config page, but needs to be set)


2. Postprocess.sh

Code: Select all

# Set the full path to unrar if it is not in your PATH
UnrarCmd=/share/HDA_DATA/.qpkg/nzbget/unrar

# Delete rar-files after unpacking (1, 0)
DeleteRarFiles=1
and I'd suggest changing

Code: Select all

if [ "$ParCheck" -eq 1 ] 
then
	echo "[WARNING] Unpack: Par-check failed or disabled, exiting"
	exit
fi
(or any downloads with no PAR files won't unpack)...


SUMMARY
Well, I have to say, it took a little while to set it all up.. and I'm sure I'll forget it in a week, and never update again!
It does largely all work though, and it certainly seems fast/stable :)

emieln
Posts: 10
Joined: 26 Jan 2009, 22:52

Re: [QUESTION] Direction/Future of NZBGet

Post by emieln » 28 Jan 2009, 13:43

Thanks for the explanation. Apparently it works when you use the web interface the way you described. I looked over the code that the web interface uses to start it and it turns out it copies the libs to a different rootfs and chroots into it. Chrooting into /mnt/HDA_ROOT/rootfs_2_3_6 enables you to use nzbget-0.4.0 qpkg, and chrooting into /mnt/MD0_DATA/optware enables the use of nzbget-0.5.0 ipkg :)

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: HOW-TO: Installing NZBGet on QNAP

Post by hugbug » 28 Jan 2009, 14:07

I see QNAP can run the packages compiled for cs05q3armel optware target.
In this case you can also use the latest testing packages from nzbget download secion.

Post Reply

Who is online

Users browsing this forum: No registered users and 48 guests