[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread:
Thread Closed 
[NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
08-31-2008, 07:50 PM (This post was last modified: 04-07-2009 07:59 AM by hugbug.)
Post: #1
[NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
This topic is outdated. Recent firmwares include nzbget 0.5.1 with SSL-support.

Introduction
The latest PCH firmware includes the latest stable version of nzbget - 0.4.1. The recent development versions of nzbget have few new features you may want to test on your PCH:
  • TLS/SSL support;
  • Categories;
  • IPv6 support;
  • New options "ParPauseQueue" and "PostPauseQueue", "ServerX.JoinGroup", "AppendCategoryDir";

Follow this guide to install the latest version 0.5.0-testing revision r219. Please note, that since that is a development version, it may have serious bugs.


Prerequisites
1) Firmware and NMT Apps from 22 August 2008:
Firmware Version : 01-17-080812-15-POP-402-000
NMT Apps Version : 00-17-080808-15-POP-402
Also works with later beta-versions.

2) Telnet-access to PCH.


PART I: Updating nzbget-server

1) Login via telnet to PCH.

2) Create temporary directory:
Code:
mkdir /share/temp

3) Change to the temporary directory:
Code:
cd /share/temp

4) Download nzbget-server version 0.5.0-testing revision 219:
Code:
wget http://ufpr.dl.sourceforge.net/sourceforge/nzbget/nzbget-0.5.0-testing-r219-bin-nmt-mipsel.tar.gz

5) Unpack archive:
Code:
tar -xzf nzbget-0.5.0-testing-r219-bin-nmt-mipsel.tar.gz

6) Replace existing binary with a new one:
Code:
cp nzbget /mnt/syb8634/bin

Check if all steps worked:
Code:
ls -l /mnt/syb8634/bin/nzbget

You should have the following output:
Code:
-rwxr-xr-x    1 root     root      1310620 Aug 31 18:48 /mnt/syb8634/bin/nzbget

Look at the timestamp of the file.


PART 2: Updating nzbget web-interface

1) Change to the temporary directory:
Code:
cd /share/temp

2) Download web-interface package version 1.1-testing-2 special archive configured for NMT:
Code:
wget http://ufpr.dl.sourceforge.net/sourceforge/nzbget/nzbgetweb-1.1-testing-2-nmt.zip

3) Change to the directory where nzbgetweb is installed on NMT:
Code:
cd /mnt/syb8634

4) Unpack archive, overwriting existing files:
Code:
unzip -o /share/temp/nzbgetweb-1.1-testing-2-nmt.zip

Check if all steps worked:
Code:
ls -l /mnt/syb8634/nzbgetweb

You should have the following output:
Code:
-rwxr-xr--    1 508      500         18009 Aug 31 18:59 COPYING
-rw-r--r--    1 root     root          340 Aug 31 18:59 ChangeLog
-rwxr-xr--    1 508      500          3053 Aug 31 18:59 README
-rwxr-xr--    1 508      500         13734 Aug 31 18:59 functions.php5
drwxr-xr-x    2 508      500          4096 Aug 31 10:53 images
-rwxr-xr--    1 508      500          5311 Aug 31 18:59 index.php5
-rwxr-xr--    1 508      500          1986 Aug 31 18:59 login.php5
-rwxr-xr--    1 508      500           458 Aug 31 18:59 logout.php5
-rwxr-xr--    1 508      500         22053 Jul 31 09:46 nzbget.conf_sample
-rwxr-xr--    1 508      500          4249 Aug 31 18:59 settings.php5
-rwxr-xr--    1 508      500         21372 Aug 31 18:59 status.php5
-rwxr-xr--    1 508      500          1698 Aug 31 18:59 style.css
-rwxr-xr--    1 508      500          1894 Jul 24 08:57 unpak.sh

Look at the timestamps of files.


PART 3: Configuring nzbget for encrypted connections

1) Open nzbget.conf in your favorite editor the same way you did this before;

2) Comment out the option DaemonUserName:
Code:
#DaemonUserName=nmt

This will cause nzbget-server to run under root account. This is neccessary, because OpenSSL-library creates temporary files in user's home directory. However the account "nmt" does not have a properly configured home directory.

3) Add option server1.encryption near other newsserver options:
Code:
# Encrypted server connection (TLS/SSL) (yes, no)
server1.encryption=yes

4) Change host and port according to your news-provider's documentation. In most cases you need to use port 563; the host-address may be the same as used for unencrypted connections or may be different. For example:
Code:
server1.host=nhxl.newshosting.com
server1.port=563


PART 4: Testing new setup

1) Restart nzbget-server by stopping it:
Code:
/mnt/syb8634/server/nzb stop

2) then starting it again:
Code:
/mnt/syb8634/server/nzb start

3) Use web-interface as usual to test if nzbget works.

PART 5: Q. and A.
Q) The timestamps in web-interface are in UTC-format. How can I change the format or remove timestamps at all?
A) Edit the option $log_time_format in the nzbgetweb configuration file (the file /mnt/syb8634/nzbgetweb/settings.php5);

Q) The combobox with categories has only two of them "video" and "music". How to add other categories?
A) Edit the option $categories in the nzbgetweb configuration file (the file /mnt/syb8634/nzbgetweb/settings.php5).

Q) Where do I get more info on new options "ParPauseQueue" and "PostPauseQueue", "ServerX.JoinGroup", "AppendCategoryDir"?
A) Look in description in file nzbget.conf.example. You should have the recent version in /share/temp or here.

Edit: corrected typos.
Visit this user's website Find all posts by this user
09-01-2008, 07:15 AM
Post: #2
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
Put a link to this HowTo in the genaral HowTo

C200 1.5 TB Hdd HDMI
A200 Metal apps on USB stick
TV: Samsung LE40C650

Visit my Personal Website
Visit this user's website Find all posts by this user
09-01-2008, 09:39 PM
Post: #3
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
Working my way through this, noticed a couple of typos (which cause a problem if cutting and pasting):

/share/temp in first few lines and /share/Temp later - Part 2, 4)
extra wget in Part 2 2)

Also, is there an easy way to go back to 0.4.1 (I am making copies of the original files)
Find all posts by this user
09-01-2008, 09:48 PM
Post: #4
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
(09-01-2008 09:39 PM)robm Wrote:  Working my way through this, noticed a couple of typos
Thanks, corrected the post.

Quote:Also, is there an easy way to go back to 0.4.1 (I am making copies of the original files)
If you made a copy of original nzbget-binary and of nzbgetweb-directory, you just need to restore them and remove new options from nzbget.conf.
Another solution were to reinstall NMT Apps.
Visit this user's website Find all posts by this user
09-01-2008, 10:03 PM
Post: #5
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
Working great!
A request though, allow category subdirectories of the nzb folder (i.e. allow category to be chosen by location of nzb)
Find all posts by this user
09-01-2008, 10:05 PM
Post: #6
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
Anyone tried this on the A110 yet please?
Find all posts by this user
09-01-2008, 10:15 PM
Post: #7
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
(09-01-2008 10:03 PM)robm Wrote:  A request though, allow category subdirectories of the nzb folder (i.e. allow category to be chosen by location of nzb)

Doesn't it work? It should.
Visit this user's website Find all posts by this user
09-01-2008, 10:26 PM
Post: #8
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
Doh!

It does indeed work, just assumed it wouldn't as it wasn't documented (anywhere I could find anyway).
Excellent work hugbug!
Find all posts by this user
09-10-2008, 07:43 PM
Post: #9
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
Hugbug - nzbget has 'hung' a couple of times with the following error in the web interface:

ERROR: NZBGetWeb could not connect to NZBGet-Server.

Possible reasons include:
# NZBGet-Server is not running;
# IP/Port-settings are incorrect. Check "settings.php";
# Firewall is not properly configured.

Error-message reported by OS: Connection refused (146)


If I restart nzb via telnet, the download continues ok.

Anything worth checking, or is there a new test release worth trying?
Find all posts by this user
09-10-2008, 11:53 PM
Post: #10
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
(09-10-2008 07:43 PM)robm Wrote:  nzbget has 'hung' a couple of times

A bug in system library libuClibc-0.9.28.so causes crashes in nzbget. That affects also the nzbget-binary included with firmware, not only the testing-version.

The solution is to install a different set of libraries as described in this guide - HOW-TO: Install nzbget from optware repository.

That will certainly fix the problem.
Visit this user's website Find all posts by this user
09-11-2008, 06:53 PM
Post: #11
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
Thanks hugbug - I will load the new libraries
Find all posts by this user
09-28-2008, 08:05 PM (This post was last modified: 09-28-2008 08:20 PM by simonantonanton.)
Post: #12
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
I get the following error:
ERROR Sun, 28 Sep 2008 19:06:08 +0000 Could not initialize TLS library: //.rnd: input error

How can I solve this problem?

Update: When I try to download the following error appears "Could not establish secure connection: TLS handshake failed: Success"
Find all posts by this user
09-28-2008, 08:54 PM
Post: #13
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
(09-28-2008 08:05 PM)simonantonanton Wrote:  How can I solve this problem?

Please folow the guide carefully. You need to comment out the option "DaemonUserName" (part 3 of how-to).
Visit this user's website Find all posts by this user
09-28-2008, 09:04 PM (This post was last modified: 09-29-2008 08:10 PM by simonantonanton.)
Post: #14
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
(09-28-2008 08:54 PM)hugbug Wrote:  
(09-28-2008 08:05 PM)simonantonanton Wrote:  How can I solve this problem?

Please folow the guide carefully. You need to comment out the option "DaemonUserName" (part 3 of how-to).

I thought I did. But I missed something. :-) Solved!!!
Find all posts by this user
09-29-2008, 08:06 PM (This post was last modified: 09-29-2008 08:11 PM by simonantonanton.)
Post: #15
RE: [NZBGET] HOW-TO: Install the latest (testing) version of nzbget with TLS/SSL support
Since NZBGet has been updated the free disc space stays zero.

How is this possible?
===========================

NZBGet version 0.5.0-testing

uptime: 5:08:12
download time: 0:06:28
average download rate: 436 KB/s
total downloaded: 165 MB
free disk space: 0 MB
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Star NZBGet 9.0/10.0 discussion hugbug 473 38,118 05-21-2013 06:45 PM
Last Post: say170
  Installing Sabnzb fails - SSL issue nicovanl 0 108 05-19-2013 06:55 AM
Last Post: nicovanl
  Can't save NZBGet Web Interface settings jurjongo 0 463 04-15-2013 09:57 PM
Last Post: jurjongo
  NZBGet download x pars instead of one/all/none shazada 0 465 04-07-2013 03:46 PM
Last Post: shazada
  NZBGet on the PCH/NMT Manual and F.A.Q. Philos 147 176,226 03-10-2013 11:33 AM
Last Post: blobe
Tongue Script to send NZB(url) to NZBGet using iOS mrmaximum 18 6,992 03-05-2013 12:23 AM
Last Post: rvdet
  NZBGET postprocess to specified folder Goldrolly 2 1,058 02-15-2013 06:09 PM
Last Post: jhmiller
  nzbget config giovan39 0 659 02-15-2013 11:27 AM
Last Post: giovan39
  nzbget unrar script popcorn a400 giovan39 0 754 02-15-2013 08:17 AM
Last Post: giovan39
Question Keep the Original NZBget webui? jhmiller 5 844 01-30-2013 02:39 PM
Last Post: hugbug

Forum Jump: