NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
fayraz
Jul 16, 2009Aspirant
How to install NZBGET?
Hi,
I have just received my ReadyNas Duo and want to install NZBGET so it can handle all my downloads.
Is there a step by step guide I can follow on how to install?
I have just received my ReadyNas Duo and want to install NZBGET so it can handle all my downloads.
Is there a step by step guide I can follow on how to install?
34 Replies
Replies have been turned off for this discussion
- str4ybulletAspirantYou also need unrar and par2 packages. You can install those via SSH. You need SSH access and apt-get addons, which you can get at the follow locations.
http://www.readynas.com/download/addons ... SH_1.0.bin
http://www.readynas.com/download/addons ... PT_1.0.bin
Code:
apt-get update
apt-get install par2
apt-get install unrar
-APT_1.0.bin does not work on NVX's; what do you suggest? Also, where does one get the par2 and unrar packages?
Thanks,
Josh - mischa1Aspirantthanks all for the excellent explanation on how to set this up on a NAS!!! I am a complete noob to this concept (NAS, not usenet, mind you) and after a lot of reading and trying I was able to install all the necessary 'tools'.
I am stuck at the level of setting up the usenet server.... the part that I thought should be the easiest as I've done that a 'zillion times' in regular usenet clients. My payserver is forteinc.com and for some reason I get the following error in the NAS webclient:
ERROR: NZBGetWeb could not process response received from NZBGet-Server (although successfully connected).
Possible reasons include:
Wrong port-settings, NZBGetWeb tries to communicate with a different kind of server (a web-server for example, but not nzbget-server). Check option "ServerPort" in config;
Not compatible server version.
I've done the right setup in the config file (at least I think so).... I have setup the same port as the usual one (119 is the default), so I am a bit at loss what this error message means.... I am even thinking that forteinc's server possibly does not support this? Is this something you conclude from the above error message as well? Or perhaps any other tips? Much appreciated!!! :-)
mischa - MichaelR64Aspirant
kid buu wrote: I have par checking / unrarring working with NZBget, I shall show you relevant parts of nzbget.conf.
##############################################################################
### PAR CHECK/REPAIR AND POSTPROCESSING ###
# Reload Post-processor-queue on start, if it exists (yes, no)
# For this option to work the options "SaveQueue" and "ReloadQueue" must
# be also enabled.
ReloadPostQueue=yes
# How many par2-files to load (none, all, one)
# none - all par2-files must be automatically paused
# all - all par2-files must be downloaded
# one - only one main par2-file must be dowloaded and other must be paused
# Paused files remain in queue and can be unpaused by parchecker when needed
LoadPars=one
# Automatic par-verification (yes, no)
# To download only needed par2-files (smart par-files loading) set also
# the option "loadpars" to "one". If option "loadpars" is set to "all",
# all par2-files will be downloaded before verification and repair starts.
# The option "renamebroken" must be set to "no", otherwise the par-checker
# may not find renamed files and fail
ParCheck=yes
# Automatic par-repair (yes, no)
# If option "parcheck" is enabled and "parrepair" is not, the program
# only verifies downloaded files and downloads needed par2-files, but does
# not start repair-process. This is useful if the server does not have
# enough CPU power, since repairing of large files may take too much
# resources and time on a slow computers.
# This option has effect only if the option "parcheck" is enabled
ParRepair=yes
# Use only par2-files with matching names (yes, no)
# If par-check needs extra par-blocks it searches for par2-files
# in download queue, which can be unpaused and used for restore.
# These par2-files should have the same base name as the main par2-file,
# currently loaded in par-checker. Sometimes extra par files (especially if
# they were uploaded by a different poster) have not matching names.
# Normally par-checker does not use these files, but you can allow it
# to use these files by setting "strictparname" to "no".
# This has however a side effect: if NZB-file contains more than one collection
# of files (with different par-sets), par-checker may download par-files from
# a wrong collection. This increases you traffic (but not harm par-check).
# NOTE: par-checker always uses only par-files added from the same NZB-file
# and the option "strictparname" does not change this behavior
StrictParName=yes
# Pause download queue during check/repair (yes, no)
# Enable the option to give CPU more time for par-check/repair. That helps
# to speed up check/repair on slow CPUs with fast connection (e.g. NAS-devices).
# NOTE: if parchecker needs additional par-files it temporary unpauses queue
# NOTE: See also option <PostPauseQueue>.
ParPauseQueue=yes
# Cleanup download queue after successful check/repair (yes, no)
# Enable this option for automatic deletion of unneeded (paused) par-files
# from download queue after successful check/repair.
# NOTE: before cleaning up the program checks if all paused files are par-files.
# If there are paused non-par-files (this means that you have paused them
# manually), the cleanup will be skipped for this collection.
ParCleanupQueue=yes
# Delete source nzb-file after successful check/repair (yes, no)
# Enable this option for automatic deletion of nzb-file from incoming directory
# after successful check/repair.
NzbCleanupDisk=yes
# Set path to program, that must be executed after the download of nzb-file
# or one collection in nzb-file (if par-check enabled and nzb-file contains
# multiple collections; see note below for the definition of "collection")
# is completed and possibly par-checked/repaired.
# Arguments passed to that program:
# 1 - path to destination dir, where downloaded files are located;
# 2 - name of nzb-file processed;
# 3 - name of par-file processed (if par-checked) or empty string (if not);
# 4 - result of par-check:
# 0 - not checked: par-check disabled or nzb-file does not contain any
# par-files;
# 1 - checked and failed to repair;
# 2 - checked and sucessfully repaired;
# 3 - checked and can be repaired but repair is disabled;
# 5 - state of nzb-job:
# 0 - there are more collections in this nzb-file queued;
# 1 - this was the last collection in nzb-file;
# 6 - indication of failed par-jobs for current nzb-file:
# 0 - no failed par-jobs;
# 1 - current par-job or any of the previous par-jobs for the
# same nzb-files failed;
# 7 - category assigned to nzb-file (can be empty string).
#
# NOTE: The parameter "state of nzb-job" is very important and MUST be checked
# even in the simplest scripts.
# If par-check is enabled and nzb-file contains more than one collection
# of files the postprocess-program is called after each collection is completed
# and par-checked. If you want to unpack files or clean up the directory
# (delete par-files, etc.) there are two possibilities, when you can do this:
# 1) you parse the "name of par-file processed" to find out the base name
# of collection and clean up only files from this collection (not reliable,
# because par-files sometimes have different names than rar-files);
# 2) or you just check the parameters "state of nzb-job" and "indication of
# failed par-jobs" and do the processing, only if they are set to "1"
# (which means, that this was the last collection in nzb-file and all files
# are now completed) and to "0" (no failed par-jobs) respectively;
# NOTE 2: if the option "ParCheck" is disabled nzbget calls PostProcess
# only once, not after every collection, because the detection of collection
# is disabled in this case;
# NOTE 3: the term "collection" in the above description actually means
# "par-set". To determine what "collections" are present in nzb-file nzbget
# looks for par-sets. If any collection of files within nzb-file does
# not have any par-files, this collection will not be detected.
# For example, for nzb-file containing three collections but only two par-sets,
# the postprocess will be called two times - after processing of each par-set.
# NOTE 4: an example script for unrarring is provided within distribution
# in file <postprocess-example.sh>
# NOTE 5: do not forget to uncomment the next line
PostProcess=/c/addons-config/Nzbget/unpak.sh
# Allow multiple post-processing for the same nzb-file (yes,no)
# After the post-processing (par-check and call of a postprocess-script) is
# completed, nzbget adds the nzb-file to a list of completed-jobs. The nzb-file
# stays in the list until the last file from that nzb-file is deleted from
# the download queue (it occurs straight away if the par-check was successful
# and the option "ParCleanupQueue" is enabled).
# That means, if a paused file from a nzb-collection becomes unpaused
# (manually or from a post-process-script) after the collection was allready
# postprocessed nzbget will not post-process nzb-file again.
# This prevents the unwanted multiple post-processings of the same nzb-file.
# But it might be needed if the par-check/-repair are performed not directly
# by nzbget but from a post-process-script.
# NOTE 1: enable this option only if you were advised to do that by the author
# of the post-process-script
# NOTE 2: by enabling "AllowReProcess" you should disable the option "ParCheck"
# to prevent multiple par-checking
AllowReProcess=yes
# Set the default message-kind for output received from postprocess-script
# (None, Detail, Info, Warning, Error, Debug).
# NZBGet checks if the line written by the script to stdout or stderr starts
# with special character-sequence, determining the message-kind, e.g.:
# [INFO] bla-bla
# [DETAIL] bla-bla
# [WARNING] bla-bla
# [ERROR] bla-bla
# [DEBUG] bla-bla
# If the message-kind was detected the text is added to log with detected type.
# Otherwise the message becomes the default kind, specified in this option.
ProcessLogKind=Detail
# Pause download queue during executing of postprocess-script (yes, no)
# Enable the option to give CPU more time for postprocess-script. That helps
# to speed up postprocess on slow CPUs with fast connection (e.g. NAS-devices).
# NOTE: See also option <ParPauseQueue>.
PostPauseQueue=yes
Also you will have to create a file called unpak.sh with the follow content. Don't forget to chmod it 777, place the file in the same directory as nzbget.conf. Which by default is /c/addons-config/Nzbget/.
#!/bin/sh
#
# NZBGet post-process script
# Script will unrar downloaded rar files, join ts-files and rename img-files to iso.
#
# Copyright (C) 2008 Peter Roubos <peterroubos @ hotmail.com>
# Copyright (C) 2008 Otmar Werner
# Copyright (C) 2008 Andrei Prygounkov <hugbug @ users.sourceforge.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
####################### Settings section #######################
# Set the full path to unrar if it is not in your PATH
UnrarCmd=unrar
# Delete rar-files after unpacking (1, 0)
DeleteRarFiles=1
# Joint TS-files (1, 0)
JoinTS=1
# Rename img-files to iso (1, 0)
RenameIMG=0
####################### End of settings section #######################
# Parameters passed to script by nzbget:
# 1 - path to destination dir, where downloaded files are located;
# 2 - name of nzb-file processed;
# 3 - name of par-file processed (if par-checked) or empty string (if not);
# 4 - result of par-check:
# 0 - not checked: par-check disabled or nzb-file does not contain any
# par-files;
# 1 - checked and failed to repair;
# 2 - checked and sucessfully repaired;
# 3 - checked and can be repaired but repair is disabled;
# 5 - state of nzb-job:
# 0 - there are more collections in this nzb-file queued;
# 1 - this was the last collection in nzb-file;
# 6 - indication of failed par-jobs for current nzb-file:
# 0 - no failed par-jobs;
# 1 - current par-job or any of the previous par-jobs for the
# same nzb-files failed;
DownloadDir="$1"
NzbFile="$2"
ParCheck=$4
NzbState=$5
ParFail=$6
# Check if all is downloaded and repaired
if [ "$#" -lt 6 ]
then
echo "*** NZBGet post-process script ***"
echo "This script is supposed to be called from nzbget."
exit
fi
echo "[INFO] Unpack: Post-process script successfully started"
echo "[INFO] Download Dir: $DownloadDir"
echo "[INFO] NZB File: $NzbFile"
# Check if all is downloaded and repaired
if [ ! "$NzbState" -eq 1 ]
then
echo "[INFO] Unpack: Not the last collection in nzb-file, exiting"
exit
fi
if [ ! "$ParCheck" -eq 2 ]
then
echo "[WARNING] Unpack: Par-check failed or disabled, exiting"
exit
fi
if [ ! "$ParFail" -eq 0 ]
then
echo "[WARNING] Unpack: Previous par-check failed, exiting"
exit
fi
# All OK, processing the files
cd "$DownloadDir"
# Make a temporary directory to store the unrarred files
mkdir extracted
# Remove the Par files
echo "[INFO] Unpack: Deleting par2-files"
rm *.[pP][aA][rR]2
# Unrar the files (if any) to the temporary directory, if there are no rar files this will do nothing
if (ls *.rar >/dev/null)
then
echo "[INFO] Unpack: Unraring"
$UnrarCmd x -y -p- -o+ "*.rar" ./extracted/
fi
if [ $JoinTS -eq 1 ]
then
# Join any split .ts files if they are named xxxx.0000.ts xxxx.0001.ts
# They will be joined together to a file called xxxx.0001.ts
if (ls *.ts >/dev/null)
then
echo "[INFO] Unpack: Joining ts-files"
tsname=`find . -name "*0001.ts" |awk -F/ '{print $NF}'`
cat *0???.ts > ./extracted/$tsname
fi
# Remove all the split .ts files
echo "[INFO] Unpack: Deleting source ts-files"
rm *0???.ts
fi
# Remove the rar files
if [ $DeleteRarFiles -eq 1 ]
then
echo "[INFO] Unpack: Deleting rar-files"
rm *.r[0-9][0-9]
rm *.rar
rm *.s[0-9][0-9]
fi
# Comment out don't unpack Rars in Rars
# Go to the temp directory and try to unrar again.
# If there are any rars inside the extracted rars then these will no also be unrarred
# cd extracted
# if (ls *.rar >/dev/null)
# then
# echo "[INFO] Unpack: Calling unrar (second pass)"
# $UnrarCmd x -y -p- -o+ "*.rar"
# Delete the Rar files
# if [ $DeleteRarFiles -eq 1 ]
# then
# echo "[INFO] Unpack: Deleting rar-files (second pass)"
# rm *.r[0-9][0-9]
# rm *.rar
# rm *.s[0-9][0-9]
# fi
# fi
# Move everything back to the Download folder
cd extracted
mv * ..
cd ..
# Clean up the temp folder
echo "[INFO] Unpack: Cleaning up"
rmdir extracted
chmod -R a+rw .
rm *.nzb
rm *.1
rm .sfv
rm _brokenlog.txt
if [ $RenameIMG -eq 1 ]
then
# Rename img file to iso
# It will be renamed to .img.iso so you can see that it has been renamed
if (ls *.img >/dev/null)
then
echo "[INFO] Unpack: Renaming img-files to iso"
imgname=`find . -name "*.img" |awk -F/ '{print $NF}'`
mv $imgname $imgname.iso
fi
fi
You also need unrar and par2 packages. You can install those via SSH. You need SSH access and apt-get addons, which you can get at the follow locations.
http://www.readynas.com/download/addons ... SH_1.0.bin
http://www.readynas.com/download/addons ... PT_1.0.bin
apt-get update
apt-get install par2
apt-get install unrar
This didnt work for me:
It gave an Error:
INFO Fri, 20 Aug 2010 00:31:53 +0200 Verifying file She-Hulk Special, De 01-11 (c).part25.rar
INFO Fri, 20 Aug 2010 00:31:54 +0200 Repair not needed for hulk (2)/She-Hulk Special, De 01-11 (c)
INFO Fri, 20 Aug 2010 00:31:54 +0200 Pausing queue before post-process-script
INFO Fri, 20 Aug 2010 00:31:54 +0200 Executing post-process-script for hulk (2)/She-Hulk Special, De 01-11 (c)
ERROR Fri, 20 Aug 2010 00:31:54 +0200 Could not start script: No such file or directory
INFO Fri, 20 Aug 2010 00:31:54 +0200 Completed post-process-script for hulk (2)/She-Hulk Special, De 01-11 (c)
INFO Fri, 20 Aug 2010 00:31:54 +0200 Unpausing queue after post-process-script
INFO Fri, 20 Aug 2010 00:31:54 +0200 Cleaning up download queue for hulk (2)
INFO Fri, 20 Aug 2010 00:31:54 +0200 Deleting file She-Hulk Special, De 01-11 (c).vol127+03.par2 from download queue
It doesn't unrar the rar files. I think parring goes well, although none was necessary
Does anybody have a clue what went wrong here ? - ourdaveAspirantNope - i've given up with lots of things on the readynas and just use it as a nas and a media streamer.
Access over the net (FTP) - uh uh
nzbget - uh uh
photo sharing for my family - uh uh
individual file/folder permissions - uh uh
support from netgear - uh uh
I'll accept I'm no expert anymore but have been in IT for 17 years and can still build and configure servers. If I find it too hard I reckon there's a case for it being too hard. - MichaelR64Aspirantwell it still doesn't work unfortunately.
I first thought that the unpak file could not be found.
If i however change the filename in the config file to something that doesn't exist it errors and tels me it cannot find the file.
If i set it back to the propervalue it just tells me it can't start it.
So i thought it had to be accessrights.
At first i had used win7 and set everybody and root etc. to full-controll.
Then i used the chmod 777 bit in ssh.
Then i used setacl to add the user nobody and the group nogroup to the unpak.sh script file with rwx rights.
This still gives me the same error.
I still think it has something to do with accesrights but am stumped at this point.
I cannot ftp in there as root although i used the EnableSSH package.
So i can not see all the files and poke around in the nzb folder.
I am also no Linux expert but willing to learn.
Can somebody please help me here ?
Is there some log somewhere that perhaps details better what is going on ? - MichaelR64AspirantIt finally works.
The problem was the non-unix file ending in the unpak.sh.
Use something like Notepad+ to save it as a Unix style file (with only LFs at the end).
Now it starts unpacking..
happy camper here. - veehexxAspirant
MichaelR64 wrote:
This didnt work for me:
It gave an Error:
INFO Fri, 20 Aug 2010 00:31:53 +0200 Verifying file She-Hulk Special, De 01-11 (c).part25.rar
INFO Fri, 20 Aug 2010 00:31:54 +0200 Repair not needed for hulk (2)/She-Hulk Special, De 01-11 (c)
INFO Fri, 20 Aug 2010 00:31:54 +0200 Pausing queue before post-process-script
INFO Fri, 20 Aug 2010 00:31:54 +0200 Executing post-process-script for hulk (2)/She-Hulk Special, De 01-11 (c)
ERROR Fri, 20 Aug 2010 00:31:54 +0200 Could not start script: No such file or directory
INFO Fri, 20 Aug 2010 00:31:54 +0200 Completed post-process-script for hulk (2)/She-Hulk Special, De 01-11 (c)
INFO Fri, 20 Aug 2010 00:31:54 +0200 Unpausing queue after post-process-script
INFO Fri, 20 Aug 2010 00:31:54 +0200 Cleaning up download queue for hulk (2)
INFO Fri, 20 Aug 2010 00:31:54 +0200 Deleting file She-Hulk Special, De 01-11 (c).vol127+03.par2 from download queue
It doesn't unrar the rar files. I think parring goes well, although none was necessary
Does anybody have a clue what went wrong here ?
i found unrar and par worked natively on my DUO. hence not mentioning the requirement for it in my guide.
i think the unrar thing could well be down to the ERROR your getting. not knowing where your files are stored, or the folder structure of the x86 nas's, then i cant be of much help. while i catch up on this thread, it might be worth double checking the files exist/accessible in the location you've stored them.
permissions were an issue for me, as were the odd typo :) - veehexxAspirantok, ignore that post ^^
looks like autopager wasnt working right and loading the last page of this thread :P
glad your sorted. i found notepad useless for doing scripting - i've had exact same issue than you with it, hence i now use notepad++. - CabamaruAspirant
kid buu wrote:
You also need unrar and par2 packages. You can install those via SSH. You need SSH access and apt-get addons, which you can get at the follow locations.
http://www.readynas.com/download/addons ... SH_1.0.bin
http://www.readynas.com/download/addons ... PT_1.0.bin
apt-get update
apt-get install par2
apt-get install unrar
Could you please explain this last step? I have installed the SSH and apt-get addons but I don't know how to use apt-get.
Many thanks in advance - MichaelR64Aspirantuse Putty as a client to connect to your readynas tru SSH.
This is where you installed EnableSSH for.
You'll get a terminal window(resembles a dos box)
Type the mentioned apt-get commands in this window.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!