| 1 |
===================================== |
| 2 |
NZBGet ReadMe |
| 3 |
===================================== |
| 4 |
|
| 5 |
This is a short documentation. For more information please |
| 6 |
visit NZBGet home page at |
| 7 |
http://nzbget.net |
| 8 |
|
| 9 |
Contents |
| 10 |
-------- |
| 11 |
1. About NZBGet |
| 12 |
2. Supported OS |
| 13 |
3. Prerequisites on POSIX |
| 14 |
4. Installation on POSIX |
| 15 |
5. Compiling on Windows |
| 16 |
6. Configuration |
| 17 |
7. Usage |
| 18 |
8. Authors |
| 19 |
9. Copyright |
| 20 |
10. Contact |
| 21 |
|
| 22 |
===================================== |
| 23 |
1. About NZBGet |
| 24 |
===================================== |
| 25 |
|
| 26 |
NZBGet is a binary newsgrabber, which downloads files from usenet |
| 27 |
based on information given in nzb-files. NZBGet can be used in |
| 28 |
standalone and in server/client modes. In standalone mode you |
| 29 |
pass a nzb-file as parameter in command-line, NZBGet downloads |
| 30 |
listed files and then exits. |
| 31 |
|
| 32 |
In server/client mode NZBGet runs as server in background. |
| 33 |
Then you use client to send requests to server. The sample requests |
| 34 |
are: download nzb-file, list files in queue, etc. |
| 35 |
|
| 36 |
There is also a built-in web-interface. The server has RPC-support |
| 37 |
and can be controlled from third party applications too. |
| 38 |
|
| 39 |
Standalone-tool, server and client are all contained in only one |
| 40 |
executable file "nzbget". The mode in which the program works |
| 41 |
depends on command-line parameters passed to the program. |
| 42 |
|
| 43 |
===================================== |
| 44 |
2. Supported OS |
| 45 |
===================================== |
| 46 |
|
| 47 |
NZBGet is written in C++ and works on Windows, OS X, Linux and |
| 48 |
most POSIX-conform OS'es. |
| 49 |
|
| 50 |
Clients and servers running on different OS'es may communicate with |
| 51 |
each other. For example, you can use NZBGet as client on Windows to |
| 52 |
control your NZBGet-server running on Linux. |
| 53 |
|
| 54 |
The download-section of NZBGet web-site provides binary files |
| 55 |
for Windows, OS X and Linux. For most POSIX-systems you need to compile |
| 56 |
the program yourself. |
| 57 |
|
| 58 |
If you have downloaded binaries you can just jump to section |
| 59 |
"Configuration". |
| 60 |
|
| 61 |
===================================== |
| 62 |
3. Prerequisites on POSIX |
| 63 |
===================================== |
| 64 |
|
| 65 |
NZBGet is developed on a linux-system, but it runs on other |
| 66 |
POSIX platforms. |
| 67 |
|
| 68 |
NZBGet absolutely needs the following libraries: |
| 69 |
|
| 70 |
- libstdc++ (usually part of compiler) |
| 71 |
- libxml2 (http://www.xmlsoft.org) |
| 72 |
|
| 73 |
And the following libraries are optional: |
| 74 |
|
| 75 |
- for curses-output-mode (enabled by default): |
| 76 |
- libcurses (usually part of commercial systems) |
| 77 |
or (better) |
| 78 |
- libncurses (http://invisible-island.net/ncurses) |
| 79 |
|
| 80 |
- for encrypted connections (TLS/SSL): |
| 81 |
- OpenSSL (http://www.openssl.org) |
| 82 |
or |
| 83 |
- GnuTLS (http://www.gnu.org/software/gnutls) |
| 84 |
|
| 85 |
- for gzip support in web-server and web-client (enabled by default): |
| 86 |
- zlib (http://www.zlib.net) |
| 87 |
|
| 88 |
All these libraries are included in modern POSIX distributions and |
| 89 |
should be available as installable packages. Please note that you also |
| 90 |
need the developer packages for these libraries too, they package names |
| 91 |
have often suffix "dev" or "devel". On other systems you may need to |
| 92 |
download the libraries at the given URLs and compile them (see hints below). |
| 93 |
|
| 94 |
===================================== |
| 95 |
4. Installation on POSIX |
| 96 |
===================================== |
| 97 |
|
| 98 |
Installation from the source distribution archive (nzbget-VERSION.tar.gz): |
| 99 |
|
| 100 |
- untar the nzbget-source via |
| 101 |
tar -zxf nzbget-VERSION.tar.gz |
| 102 |
|
| 103 |
- change into nzbget-directory via |
| 104 |
cd nzbget-VERSION |
| 105 |
|
| 106 |
- configure it via |
| 107 |
./configure |
| 108 |
|
| 109 |
(maybe you have to tell configure, where to find some libraries. |
| 110 |
./configure --help is your friend! |
| 111 |
also see "Configure-options" later) |
| 112 |
|
| 113 |
- in a case you don't have root access or want to install the program |
| 114 |
in your home directory use the configure parameter --prefix, e. g.: |
| 115 |
|
| 116 |
./configure --prefix ~/usr |
| 117 |
|
| 118 |
- compile it via |
| 119 |
make |
| 120 |
|
| 121 |
- to install system wide become root via: |
| 122 |
su |
| 123 |
|
| 124 |
- install it via: |
| 125 |
make install |
| 126 |
|
| 127 |
- install configuration files into <prefix>/etc via: |
| 128 |
make install-conf |
| 129 |
|
| 130 |
(you can skip this step if you intend to store configuration |
| 131 |
files in a non-standard location) |
| 132 |
|
| 133 |
Configure-options |
| 134 |
----------------- |
| 135 |
You may run configure with additional arguments: |
| 136 |
|
| 137 |
--disable-curses - to make without curses-support. Use this option |
| 138 |
if you can not use curses/ncurses. |
| 139 |
|
| 140 |
--disable-parcheck - to make without parcheck-support. Use this option |
| 141 |
if you have troubles when compiling par2-module. |
| 142 |
|
| 143 |
--with-tlslib=(OpenSSL, GnuTLS) - to select which TLS/SSL library |
| 144 |
should be used for encrypted server connections. |
| 145 |
|
| 146 |
--disable-tls - to make without TLS/SSL support. Use this option if |
| 147 |
you can not neither OpenSSL nor GnuTLS. |
| 148 |
|
| 149 |
--disable-gzip - to make without gzip support. Use this option |
| 150 |
if you can not use zlib. |
| 151 |
|
| 152 |
--enable-debug - to build in debug-mode, if you want to see and log |
| 153 |
debug-messages. |
| 154 |
|
| 155 |
Optional package: par-check |
| 156 |
--------------------------- |
| 157 |
NZBGet can check and repair downloaded files for you. For this purpose |
| 158 |
it uses library par2. |
| 159 |
|
| 160 |
For your convenience the source code of libpar2 is integrated into |
| 161 |
NZBGet’s source tree and is compiled automatically when you make NZBGet. |
| 162 |
|
| 163 |
In a case errors occur during this process the inclusion of par2-module |
| 164 |
can be disabled using configure option "--disable-parcheck": |
| 165 |
|
| 166 |
./configure --disable-parcheck |
| 167 |
|
| 168 |
Optional package: curses |
| 169 |
------------------------- |
| 170 |
For curses-outputmode you need ncurses or curses on your system. |
| 171 |
If you do not have one of them you can download and compile ncurses yourself. |
| 172 |
Following configure-parameters may be useful: |
| 173 |
|
| 174 |
--with-libcurses-includes=/path/to/curses/includes |
| 175 |
--with-libcurses-libraries=/path/to/curses/libraries |
| 176 |
|
| 177 |
If you are not able to use curses or ncurses or do not want them you can |
| 178 |
make the program without support for curses using option "--disable-curses": |
| 179 |
|
| 180 |
./configure --disable-curses |
| 181 |
|
| 182 |
Optional package: TLS |
| 183 |
------------------------- |
| 184 |
To enable encrypted server connections (TLS/SSL) you need to build the program |
| 185 |
with TLS/SSL support. NZBGet can use two libraries: OpenSSL or GnuTLS. |
| 186 |
Configure-script checks which library is installed and use it. If both are |
| 187 |
available it gives the precedence to OpenSSL. You may override that with |
| 188 |
the option --with-tlslib=(OpenSSL, GnuTLS). For example to build with GnuTLS: |
| 189 |
|
| 190 |
./configure --with-tlslib= GnuTLS |
| 191 |
|
| 192 |
Following configure-parameters may be useful: |
| 193 |
|
| 194 |
--with-libtls-includess=/path/to/gnutls/includes |
| 195 |
--with-libtls-libraries=/path/to/gnutls/libraries |
| 196 |
|
| 197 |
--with-openssl-includess=/path/to/openssl/includes |
| 198 |
--with-openssl-libraries=/path/to/openssl/libraries |
| 199 |
|
| 200 |
If none of these libraries is available you can make the program without |
| 201 |
TLS/SSL support using option "--disable-tls": |
| 202 |
|
| 203 |
./configure --disable-tls |
| 204 |
|
| 205 |
===================================== |
| 206 |
5. Compiling on Windows |
| 207 |
===================================== |
| 208 |
|
| 209 |
NZBGet is developed using MS Visual Studio 2015 (Community Edition). The project |
| 210 |
file is provided. |
| 211 |
|
| 212 |
To compile the program with TLS/SSL support you need either OpenSSL or GnuTLS: |
| 213 |
- OpenSSL (http://www.openssl.org) |
| 214 |
or |
| 215 |
- GnuTLS (http://www.gnu.org/software/gnutls) |
| 216 |
|
| 217 |
Also required are: |
| 218 |
- Regex (http://gnuwin32.sourceforge.net/packages/regex.htm) |
| 219 |
- Zlib (http://gnuwin32.sourceforge.net/packages/zlib.htm) |
| 220 |
|
| 221 |
===================================== |
| 222 |
6. Configuration |
| 223 |
===================================== |
| 224 |
|
| 225 |
NZBGet needs a configuration file. |
| 226 |
|
| 227 |
An example configuration file is provided in "nzbget.conf", which |
| 228 |
is installed into "<prefix>/share/nzbget" (where <prefix> depends on |
| 229 |
system configuration and configure options - typically "/usr/local", |
| 230 |
"/usr" or "/opt"). The installer adjusts the file according to your |
| 231 |
system paths. If you have performed the installation step |
| 232 |
"make install-conf" this file is already copied to "<prefix>/etc" and |
| 233 |
NZBGet finds it automatically. If you install the program manually |
| 234 |
from a binary archive you have to copy the file from "<prefix>/share/nzbget" |
| 235 |
to one of the locations listed below. |
| 236 |
|
| 237 |
Open the file in a text editor and modify it accodring to your needs. |
| 238 |
|
| 239 |
You need to set at least the option "MAINDIR" and one news server in |
| 240 |
configuration file. The file has comments on how to use each option. |
| 241 |
|
| 242 |
The program looks for configuration file in following standard |
| 243 |
locations (in this order): |
| 244 |
|
| 245 |
On POSIX systems: |
| 246 |
<EXE-DIR>/nzbget.conf |
| 247 |
~/.nzbget |
| 248 |
/etc/nzbget.conf |
| 249 |
/usr/etc/nzbget.conf |
| 250 |
/usr/local/etc/nzbget.conf |
| 251 |
/opt/etc/nzbget.conf |
| 252 |
|
| 253 |
On Windows: |
| 254 |
<EXE-DIR>\nzbget.conf |
| 255 |
|
| 256 |
If you put the configuration file in other place, you can use command- |
| 257 |
line switch "-c <filename>" to point the program to correct location. |
| 258 |
|
| 259 |
In special cases you can run program without configuration file using |
| 260 |
switch "-n". You need to use switch "-o" to pass required configuration |
| 261 |
options via command-line. |
| 262 |
|
| 263 |
===================================== |
| 264 |
7. Usage |
| 265 |
===================================== |
| 266 |
|
| 267 |
NZBGet can be used in either standalone mode which downloads a single file |
| 268 |
or as a server which is able to queue up numerous download requests. |
| 269 |
|
| 270 |
TIP for Windows users: NZBGet is controlled via various command line |
| 271 |
parameters. For easier using there is a simple shell script included |
| 272 |
in "nzbget-shell.bat". Start this script from Windows Explorer and you will |
| 273 |
be running a command shell with PATH adjusted to find NZBGet executable. |
| 274 |
Then you can type all commands without full path to nzbget.exe. |
| 275 |
|
| 276 |
Standalone mode: |
| 277 |
---------------- |
| 278 |
|
| 279 |
nzbget <nzb-file> |
| 280 |
|
| 281 |
Server mode: |
| 282 |
------------ |
| 283 |
|
| 284 |
First start the nzbget-server: |
| 285 |
|
| 286 |
- in console mode: |
| 287 |
|
| 288 |
nzbget -s |
| 289 |
|
| 290 |
- or in daemon mode (POSIX only): |
| 291 |
|
| 292 |
nzbget -D |
| 293 |
|
| 294 |
- or as a service (Windowx only, firstly install the service with command |
| 295 |
"nzbget -install"): |
| 296 |
|
| 297 |
net start NZBGet |
| 298 |
|
| 299 |
To stop server use: |
| 300 |
|
| 301 |
nzbget -Q |
| 302 |
|
| 303 |
TIP for POSIX users: with included script "nzbgetd" you can use standard |
| 304 |
commands to control daemon: |
| 305 |
|
| 306 |
nzbgetd start |
| 307 |
nzbgetd stop |
| 308 |
etc. |
| 309 |
|
| 310 |
When NZBGet is started in console server mode it displays a message that |
| 311 |
it is ready to receive download requests. In daemon mode it doesn't print any |
| 312 |
messages to console since it runs in background. |
| 313 |
|
| 314 |
When the server is running it is possible to queue up downloads. This can be |
| 315 |
done either in terminal with "nzbget -A <nzb-file>" or by uploading |
| 316 |
a nzb-file into server's monitor-directory (<MAINDIR>/nzb by default). |
| 317 |
|
| 318 |
To check the status of server start client and connect it to server: |
| 319 |
|
| 320 |
nzbget -C |
| 321 |
|
| 322 |
The client have three different (display) outputmodes, which you can select |
| 323 |
in configuration file (on client computer) or in command line. Try them: |
| 324 |
|
| 325 |
nzbget -o outputmode=log -C |
| 326 |
|
| 327 |
nzbget -o outputmode=color -C |
| 328 |
|
| 329 |
nzbget -o outputmode=curses -C |
| 330 |
|
| 331 |
To list files in server's queue: |
| 332 |
|
| 333 |
nzbget -L |
| 334 |
|
| 335 |
It prints something like: |
| 336 |
|
| 337 |
[1] nzbname\filename1.rar (50.00 MB) |
| 338 |
[2] nzbname\filename1.r01 (50.00 MB) |
| 339 |
[3] another-nzb\filename3.r01 (100.00 MB) |
| 340 |
[4] another-nzb\filename3.r02 (100.00 MB) |
| 341 |
|
| 342 |
This is the list of individual files listed within nzb-file. To print |
| 343 |
the list of nzb-files (without content) add G-modifier to the list command: |
| 344 |
|
| 345 |
[1] nzbname (4.56 GB) |
| 346 |
[2] another-nzb (4.20 GB) |
| 347 |
|
| 348 |
The numbers in square braces are ID's of files or groups in queue. |
| 349 |
They can be used in edit-command. For example to move file with |
| 350 |
ID 2 to the top of queue: |
| 351 |
|
| 352 |
nzbget -E T 2 |
| 353 |
|
| 354 |
or to pause files with IDs from 10 to 20: |
| 355 |
|
| 356 |
nzbget -E P 10-20 |
| 357 |
|
| 358 |
or to delete files from queue: |
| 359 |
|
| 360 |
nzbget -E D 3 10-15 20-21 16 |
| 361 |
|
| 362 |
The edit-command has also a group-mode which affects all files from the |
| 363 |
same nzb-file. You need to pass an ID of the group. For example to delete |
| 364 |
the whole group 1: |
| 365 |
|
| 366 |
nzbget -E G D 1 |
| 367 |
|
| 368 |
The switch "o" is useful to override options in configuration files. |
| 369 |
For example: |
| 370 |
|
| 371 |
nzbget -o reloadqueue=no -o dupecheck=no -o parcheck=yes -s |
| 372 |
|
| 373 |
or: |
| 374 |
|
| 375 |
nzbget -o createlog=no -C |
| 376 |
|
| 377 |
Running client & server on seperate machines: |
| 378 |
--------------------------------------------- |
| 379 |
|
| 380 |
Since nzbget communicates via TCP/IP it's possible to have a server running on |
| 381 |
one computer and adding downloads via a client on another computer. |
| 382 |
|
| 383 |
Do this by setting the "ControlIP" option in the nzbget.conf file to point to the |
| 384 |
IP of the server (default is localhost which means client and server runs on |
| 385 |
same computer) |
| 386 |
|
| 387 |
Security warning |
| 388 |
---------------- |
| 389 |
|
| 390 |
NZBGet communicates via unsecured socket connections. This makes it vulnerable. |
| 391 |
Although server checks the password passed by client, this password is still |
| 392 |
transmitted in unsecured way. For this reason it is highly recommended |
| 393 |
to configure your Firewall to not expose the port used by NZBGet to WAN. |
| 394 |
|
| 395 |
If you need to control server from WAN it is better to connect to server's |
| 396 |
terminal via SSH (POSIX) or remote desktop (Windows) and then run |
| 397 |
nzbget-client-commands in this terminal. |
| 398 |
|
| 399 |
Post processing scripts |
| 400 |
----------------------- |
| 401 |
|
| 402 |
After the download of nzb-file is completed nzbget can call post-processing |
| 403 |
scripts, defined in configuration file. |
| 404 |
|
| 405 |
Example post-processing scripts are provided in directory "scripts". |
| 406 |
|
| 407 |
To use the scripts copy them into your local directory and set options |
| 408 |
<ScriptDir>, <PostScript> and <ScriptOrder>. |
| 409 |
|
| 410 |
For information on writing your own post-processing scripts please |
| 411 |
visit NZBGet web site. |
| 412 |
|
| 413 |
Web-interface |
| 414 |
------------- |
| 415 |
|
| 416 |
NZBGet has a built-in web-server providing the access to the program |
| 417 |
functions via web-interface. |
| 418 |
|
| 419 |
To activate web-interface set the option "WebDir" to the path with |
| 420 |
web-interface files. If you install using "make install-conf" as |
| 421 |
described above the option is set automatically. If you install using |
| 422 |
binary files you should check if the option is set correctly. |
| 423 |
|
| 424 |
To access web-interface from your web-browser use the server address |
| 425 |
and port defined in NZBGet configuration file in options "ControlIP" and |
| 426 |
"ControlPort". For example: |
| 427 |
|
| 428 |
http://localhost:6789/ |
| 429 |
|
| 430 |
For login credentials type username and the password defined by |
| 431 |
options "ControlUsername" (default "nzbget") and "ControlPassword" |
| 432 |
(default "tegbzn6789"). |
| 433 |
|
| 434 |
In a case your browser forget credentials, to prevent typing them each |
| 435 |
time, there is a workaround - use URL in the form: |
| 436 |
|
| 437 |
http://localhost:6789/username:password/ |
| 438 |
|
| 439 |
Please note, that in this case the password is saved in a bookmark or in |
| 440 |
browser history in plain text and is easy to find by persons having |
| 441 |
access to your computer. |
| 442 |
|
| 443 |
===================================== |
| 444 |
8. Authors |
| 445 |
===================================== |
| 446 |
|
| 447 |
NZBGet is developed and maintained by Andrey Prygunkov |
| 448 |
([email protected]). |
| 449 |
|
| 450 |
The original project was initially created by Sven Henkel |
| 451 |
([email protected]) in 2004 and later developed by |
| 452 |
Bo Cordes Petersen ([email protected]) until 2005. |
| 453 |
In 2007 the abandoned project was overtaken by Andrey Prygunkov. |
| 454 |
Since then the program has been completely rewritten. |
| 455 |
|
| 456 |
NZBGet distribution archive includes additional components |
| 457 |
written by other authors: |
| 458 |
|
| 459 |
Par2: |
| 460 |
Peter Brian Clements <[email protected]> |
| 461 |
|
| 462 |
Par2 library API: |
| 463 |
Francois Lesueur <[email protected]> |
| 464 |
|
| 465 |
Catch: |
| 466 |
Two Blue Cubes Ltd <https://github.com/philsquared/Catch> |
| 467 |
|
| 468 |
jQuery: |
| 469 |
John Resig <http://jquery.com> |
| 470 |
The Dojo Foundation <http://sizzlejs.com> |
| 471 |
|
| 472 |
Bootstrap: |
| 473 |
Twitter, Inc <http://twitter.github.com/bootstrap> |
| 474 |
|
| 475 |
Raphaël: |
| 476 |
Dmitry Baranovskiy <http://raphaeljs.com> |
| 477 |
Sencha Labs <http://sencha.com> |
| 478 |
|
| 479 |
Elycharts: |
| 480 |
Void Labs s.n.c. <http://void.it> |
| 481 |
|
| 482 |
iconSweets: |
| 483 |
Yummygum <http://yummygum.com> |
| 484 |
|
| 485 |
===================================== |
| 486 |
9. Copyright |
| 487 |
===================================== |
| 488 |
|
| 489 |
This program is free software; you can redistribute it and/or modify |
| 490 |
it under the terms of the GNU General Public License as published by |
| 491 |
the Free Software Foundation; either version 2 of the License, or |
| 492 |
(at your option) any later version. |
| 493 |
|
| 494 |
The complete content of license is provided in file COPYING. |
| 495 |
|
| 496 |
Additional exemption: compiling, linking, and/or using OpenSSL is allowed. |
| 497 |
|
| 498 |
===================================== |
| 499 |
10. Contact |
| 500 |
===================================== |
| 501 |
|
| 502 |
If you encounter any problem, feel free to use the forum |
| 503 |
|
| 504 |
nzbget.net/forum |
| 505 |
|
| 506 |
or contact me at |
| 507 |
|
| 508 |
[email protected] |