I am cross posting this guide from my ZFS Build thread so it can get some more eyes. I would appreciate if some folks could test it out and let me know how it goes:
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'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:
5. Install SABnzbd FreeBSD port, which also installs all the rest of the required packages:
6. Edit rc.conf to enable SABnzbd to start automatically:
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:
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
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
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. Up next will be the Sick Beard install guide.
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'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:
Code:
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:
Code:
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:
Code:
ee /etc/rc.conf
#SABnzbd
sabnzbd_enable="YES"
Press esc key----->leave editor----> save to save changes
7. Run SABnzbd for the first time:
Code:
/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
Code:
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
Code:
/usr/local/etc/rc.d/sabnzbd start
Code:
/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. Up next will be the Sick Beard install guide.
Last edited: