[9 June 2010] C-200/A-200 NMJ UI PREVIEW (under development) | 18. Jan 2010 Popcornhour C-200 Manual

Firmware Updates C-200 [26 Aug 2010] | A-200 [14 May 2010] | A-100 [13 Aug. 2010] | A-110 [18 Aug. 2010] | B-110 [23 Apr. 2010]

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


1 user browsing this thread: (0 members, and 1 guest).

Thread Closed 
 
Thread Rating:
  • 3 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[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 Fan-less case apps on USB stick
TV: Samsung LE40F71b
AUDIO: JVC RX-6000R (coax)
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
  Transmission is not accesible from PC after latest firmware update P_Cherry 1 483 09-07-2010 09:21 PM
Last Post: subbase
Brick [NewzBook] 1.2.8 Newzbin Bookmark + Mobile Search Utility + NZBget interface joshua.lyon 191 20,035 09-06-2010 01:34 PM
Last Post: moddigi
  NZBGET speed drop MeneerDeMan 10 283 09-02-2010 06:51 PM
Last Post: Willem53
  [nzbget] NZBget 0.7.0 download and discussion Ger Teunis 395 62,642 08-28-2010 12:17 AM
Last Post: JeeBee
  Cant log in to NZBget client after 0.7 upgrade sprogger 1 210 08-20-2010 05:43 AM
Last Post: sprogger
  NZBget hangs the NMT (HDX1000) sprogger 1 205 08-18-2010 12:46 AM
Last Post: lordy
  NZBGet Web Interface v 1.3 Problem. ooze_orb 5 721 08-10-2010 09:21 AM
Last Post: hugbug
  NZBGET - Error-message reported by OS: Connection refused (146) tocheeba 0 277 08-09-2010 05:41 AM
Last Post: tocheeba
  Can't access NZBget mrjaffa 0 332 08-06-2010 05:41 PM
Last Post: mrjaffa
  Oversight Unpak problem after re-install PrairieSailor 1 242 08-06-2010 02:19 PM
Last Post: Atinkler

Forum Jump: