Latest interface: 0.2-beta8
Latest system: 9.1-005
MilesTeg
User

16 posts

Posted on 22 January 2011 @ 07:10edited 24 January 2011 @ 00:31
Here is part one of my ZFSguru software install guides. I managed to set up SABnzbd, CouchPotato, and Sick Beard and they are all running great. I know that many people are requesting these programs be integrated but I thought that some help installing them manually might be good in the meantime and increase adoption. I'm still not sure what I'm doing as far running programs under different user accounts in FreeBSD so please note that everything will be running as root. I know that most people advise against this but outside access is blocked through my router and I have password protected access to SABnzbd, CouchPotato, and SickBeard. With that said it would be great if someone more knowledgeable could figure out a more secure way to do this and re-post the guides.

SABnzbd on ZFSguru (FreeBSD 8.2)

1. Set ssh password under Services ---> OpenSSH in ZFSguru

2. SSH in to your server with username: ssh , password: whatever you just set.

3.At the command prompt type
su
without quotes and hit enter to get root access.

4.Install unzip, a required package which is not installed with the port:
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-stable/archivers/unzip-6.0.tbz


5. Install SABnzbd FreeBSD port, which also installs all the rest of the required packages:
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-stable/news/sabnzbdplus-0.5.6.tbz


6. Edit rc.conf to enable SABnzbd to start automatically:
ee /etc/rc.conf


Add these two lines somewhere at the bottom-
#SABnzbd
sabnzbd_enable="YES"

Press esc key----->leave editor----> save to save changes

7. Run SABnzbd for the first time:
/usr/local/bin/SABnzbd.py


Use a browser to go to http://ip-of-your-ZFSguru-server:8080 and proceed with configuring SABnzbd, after configuring an ini file will be created at /root/.sabnzbd/sabnzbd.ini

8. Edit the SABnzbd rc.d config file
ee /usr/local/etc/rc.d/sabnzbd


Modify the following lines from this:
: ${sabnzbd_user:="_sabnzbd"}
: ${sabnzbd_group:="_sabnzbd"}
: ${sabnzbd_conf_dir:="/usr/local/sabnzbd"}

to this:
: ${sabnzbd_user:="root"}
: ${sabnzbd_group:="wheel"}
: ${sabnzbd_conf_dir:="/root/.sabnzbd"}

9. Add this line just below those you just modified, they will help SABnzbd find the unzip, unrar, and par2 packages:
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"

10. Remove the spaces from around the equal sign in this line under the sabnzbd_stop function:
if [ ${host} = "0.0.0.0" ]

Press esc key----->leave editor----> save to save changes

11. Test things out with the following commands for starting and stopping SABnzbd
/usr/local/etc/rc.d/sabnzbd start
/usr/local/etc/rc.d/sabnzbd stop

That's it! Just restart your ZFSguru server and SABnzbd should start automatically and you can access it at http://ip-of-your-ZFSguru-server:8080. Remember to change the Permissions for completed downloads setting in SABnzbd to 777 to allow you to access,move, and delete files in your download directories through a samba share. Up next will be the Sick Beard install guide.
Jason
Developer

682 posts

Posted on 24 January 2011 @ 00:32
Thanks for your guide! I edited it slightly for formatting.
Jayden
User

6 posts

Posted on 24 January 2011 @ 17:51
Sadly I haven't had time to test ZFSguru, but if I understand correctly all the files are owned by the nfs user and the nfs group.
So my suggestion would be to make a sabnzbd user, add that to the nfs group and set the permissions in sab to 0770. Sab automatically removes the excecute permission from the files.
pespn2000
User

42 posts

Posted on 30 January 2011 @ 17:37
Thanks for putting that together. Works on my new ZFSGuru system.

Question: I assume you first download the incomplete files onto your OS drive (where sabnzbd runs from) and then unrar them into your main storage pool, but what if you want to access this incomplete folder? I can't seem to find it or get to those rar files.
Jason
Developer

682 posts

Posted on 31 January 2011 @ 12:48
I'm not sure but you may want to look in /root/.sabnzbd probably an "Incomplete" directory in here or something. You may need to use the root command line, try:
ls -la /root/.sabnzbd

Directories that begin with . are considered hidden (configuration-like) directories on UNIX/Linux systems.

Note that if you run Root-on-ZFS on flash stick, you may want to change the configuration to only store on your harddrive instead and not on the flash disk.

Once i get extensions working i will look at this software package and try to make a nice configuration frontend that let's you configure and install all this using the web-interface instead. For now you have to tinker with it a bit, feel free to ask for more help.
pespn2000
User

42 posts

Posted on 31 January 2011 @ 21:35
Thanks Jason. For the moment I've decided to store everything on the pool as you said, but then each new directory created in incompletes is restricted access. so can't open easily in Windows. Certainly not a big deal though as all of this is so transient and bound to change.

Really likin' ZFSGuru and can't wait for more developments!
Jason
Developer

682 posts

Posted on 1 February 2011 @ 03:47edited 03:47 36s
To prevent the permission issue, you can try this:


: ${sabnzbd_user:="nfs"}
: ${sabnzbd_group:="nfs"}
: ${sabnzbd_conf_dir:="/zfsvolume/SABNZBD"}


Note: change "zfsvolume" to your ZFS pool.
Note: i would remove the configuration directory contents (.sabnzbd) if you change the user it runs on.

By using the nfs user, you would be able to browse and write to the SABNZBD directory using both Samba and NFS.
nicholasa
User

158 posts

Posted on 21 March 2011 @ 05:23
MilesTeg: How did you install SickBeard and Couch Potato?
oebele
User

12 posts

Posted on 21 March 2011 @ 20:44edited 20:44 45s
There's really nothing to it, just download the files, extract and run as the same user you're running SABnzbd as. When you've installed SABnzbd, you should have all the necessary dependencies.
nicholasa
User

158 posts

Posted on 24 March 2011 @ 00:40
Got it working ;-)
Kriss
User

131 posts

Posted on 31 July 2011 @ 19:07edited 1 August 2011 @ 01:32
I'm writing a new updated manual for installing SABnzbd, Sickbeard and Couchpotato. Its almost finished. The only thing I can't get to work is the startup/shutdown script for Couchpotato. I've tried to adjust the Sickbeard script to the needs of Couchpotato but this isn't working. Because I don't know anything about scripting I'm not able to write one myself.

Is there someone willing to share his start/shutdown script for Couchpotato?


Have a start/shutdown script

The guide is finished
Last Page

Valid XHTML 1.1