[GUIDE] Install NZBGet 10.2

This program is a nice alternative to SABnzb but not quite as powerful

This program does give you a nice speed boost over SABnzb

It maxed out my 30Mb connection without breaking a sweat

Connect to the MBL with PuTTY or Terminal and install optware

wget http://mybookworld.wikidot.com/local--files/optware/setup-mybooklive.sh
sh setup-mybooklive.sh

Issue the following commands to ensure that we can use the command “ipkg” from any directory

echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /root/.bashrc
echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /etc/profile

Close PuTTY or Terminal (Very Important)

Open PuTTY or Terminal and connect to the MBL again

ipkg update
ipkg install nzbget

 Copy example configuration file to /etc or /opt/etc

cp /opt/share/nzbget/nzbget.conf /opt/etc/nzbget.conf

 Start NZBGet

nzbget -s -o outputmode=curses

Login to NZBGet using your browser at MBL Network Name or IP:6789

For authorization to the web-interface use predefined username " nzbget" (not configurable)
Password: tegbzn6789

Setup your download folders

Go to Settings/Paths and change it to /DataVolume/shares/ whatever share you would like

Click save all Changes

Click Reload NZBGet

Set the path to unrar

Go to Settings/unpack/UnrarCmd and change it to /opt/bin/unrar

Setup your news servers

Go to Settings/News-Servers and setup your News-Servers

Click save all Changes

Click Reload NZBGet

Change the WEB UI password

Go to Settings/Remote Control/Control Password to change the Web UI password

Click save all Changes

Click Reload NZBGet

Browse around settings and make any other changes you might want to

Close out the web browser and go back to your PuTTY or Terminal Window

Click in the window and hit Q to quit NZBGet from running

Add NZBGet to auto start on a MBL reboot

nano /etc/init.d/nzbget

Paste this into the window (right click your mouse button)

#!/bin/sh
# Start/stop the NZBget daemon.
#
case "$1" in
start) echo -n "Start services: NZBget"
   /opt/bin/nzbget -D
   ;;
stop) echo -n "Stop services: NZBget"
   /opt/bin/nzbget -Q
   ;;
restart)
   $0 stop
   $0 start
        ;;
*) echo "Usage: $0 start|stop|restart"
        exit 1
        ;;
esac
exit 0

Hit control and o

Hit enter

Hit control and x

This will save your edited file

Set the script permissions and add it to all the rc folders

chmod 755 /etc/init.d/nzbget
update-rc.d nzbget defaults

Start NZBGet again

/etc/init.d/nzbget start

 DONE!

2 Likes

Thanks! Although I don’t use or know about binary news, please keep making this great guides as they are awesomely helpful.

Thanks Timmy :slight_smile:

Guide updated with instructions to point properly to unrar

 

Set the path to unrar

Go to settings/unpack/UnrarCmd and change it to /opt/bin/unrar

1 Like

Hi nfodiz,
Thanks for this great post, everything works like a charm. But there are two questions i have: 1. I didn’t change the unrar path, but it still unpacks the files. Is it still necessary to point to the unrar path, maybe for better performance?
2. I downloaded a file to the the following folder: shares/public/shared videos/movies. But i can’t acces the file from my windows machines. It says i don’t have permission, even though it is the public folder that was allready on the nas. Whenn i try to play the file with xbmc it works for 2/3 minutes but then the playback stops. Cabled and wireless.
Do you have any suggestions what might be the problem?

zawaponga wrote:
Hi nfodiz,
Thanks for this great post, everything works like a charm. But there are two questions i have:

  1. I didn’t change the unrar path, but it still unpacks the files. Is it still necessary to point to the unrar path, maybe for better performance?

You should be good. I can’t actually remember why I changed the path as it’s been awhile lol and I can’t remember what the default path was. If you can check and let me know what the default path is it may help me remember.

  1. I downloaded a file to the the following folder: shares/public/shared videos/movies. But i can’t acces the file from my windows machines. It says i don’t have permission, even though it is the public folder that was allready on the nas. Whenn i try to play the file with xbmc it works for 2/3 minutes but then the playback stops. Cabled and wireless.
    Do you have any suggestions what might be the problem?

Did you create the folder “movies” by yourself or did you let NZBGet create it? If NZBGet created it, move your files out of there then delete the share and recreate it yourself and try another download.

I have my paths setup as follows and haven’t run into any permissions issues

 

MainDir = /DataVolume/shares/Television

DestDir = ${MainDir}

InterDir = ${MainDir}/NZBGet

NzbDir = ${MainDir}/NZBGet/nzb

QueueDir = ${MainDir}/NZBGet/queue

Temp Dir = ${MainDir}/NZBGet/tmp

LockFile = ${MainDir}/NZBGet/nzbget.lock

LogFile = ${DestDir}/NZBGet/nzbget.log

WebDir = /opt/share/nzbget/webui

 

I will try to recreate your setup if you want me to and see why the program is messing with the file permissioms

 

Thank you for the quick reply. I think the default path is the opt folder where all the programs are installed. The box in the settings just says “unrar” but i think by default it takes the path opt/bin/unrar.

I created the movies folder myself and the strange thing is, i can’t delete the folder. When i try to delete it nothing  happens. Then i used putty to see what kind of access is allowed with the ls -la command.

NASftw:~# ls -la /shares/Public
total 704
drwxrwxr-x 10 nobody share 65536 May 9 16:34 .
drwxrwxr-x 5 root share 65536 May 8 22:04 ..
drwxr-xr-x 5 root root 65536 May 8 23:27 .nflc_data
-rw-r--r-- 1 root root 0 May 8 22:05 .tickle
-rwxrw-r-- 1 nobody share 862 Feb 15 19:48 .vftTestData.xml
drwxrwxr-x 2 root share 65536 Jan 1 1970 Shared Music
drwxrwxr-x 2 root share 65536 Jan 1 1970 Shared Pictures
drwxrwxr-x 3 root share 65536 May 11 17:12 Shared Videos
drwxrwxr-x 2 root share 65536 Jan 1 1970 Software
drwxrwxrw- 2 nobody share 65536 May 9 16:42 incomplete
drwxrwxr-x 2 nobody share 65536 May 9 16:16 log
drwxrwxrw- 2 root root 65536 May 9 16:42 tmp

After that i tried to do the same command with:

NASftw:~# ls -la /shares/Public/Shared Videos/Moviesls: cannot access /shares/Public/Shared: No such file or directory

Why does it say no such file or directory?

While i was typing this i opened the directory with winscp and i found this:

Knipsel2.PNG

Knipsel.PNG

So obviously i don’t have permission8), i wonder why.

I can’t see your pictures until a mod approves them. I will try to reproduce this when I get some free time. Kinda swamped at the moment.

OK first you need to run the command like this because the directory name has a space

MyBookLive:~# ls -la /shares/Public/Shared\ Videos/Movies

Second, I changed my setup to mimic yours and have absolutely no problems with permissions

drwxrwxrw- 4 root root 65536 May 12 09:31 .
drwxrwxr-x 3 root share 65536 May 12 09:27 ..
drwxrwxrw- 2 root root 65536 May 12 09:31 TEST DOWNLOAD
drwxrwxrw- 5 root root 65536 May 12 09:31 NZBGet

I’m not sure what’s going on and I still can’t see your pictures

1 Like

Ok, i problaly should have known that, but thanks anyway for pointing that out. Also on putty it shows that i don’t have the necessary permissions. So i used putty to delete the Movies directory and its subdirectories. I downloaded another file in to the Shared Videos folder and now it had rw-rw-rw- permisions, so i should be good now right?

Yes sir I think those permissions will work

Nfodiz, i found out why you changed the unrarcmd path in the nzbget settings. You changed your main path from opt/share/nzbget to /DataVolume/shares/Television. Now the unrarcmd points to the main path and there is no unrar file in your new main path.

I recently changed my main path and after that nzbget didn’t unpack my downloads. It drove me crazy. Especially when i changed it to  opt/bin/unrar  and thought yes i got it! and forgot the first slash:laughing:

That’s it!! Thanks for reminding me lol

Thanks for the post. Just what i looking for.

My knwoledge about linux is up to zero so i needed your guide.

There is only a little problem. I followed al the steps succesfull, i config nzbget, restarted my device but nzbget won’t auto start. When i start manual it works perfect, so the installation is succesfull.

What am i doing wrong?

Edit:

It seems like nzbget is running under root, i found some other likewise issues but i cannot resolve. Anyhelp is appreciated