Vous êtes sur la page 1sur 7

Howto SABnzbd, SickBeard, CouchPotato, HeadPhones and Transmission on ZFSguru.

v2.2

Kriss1981 6-2-2012

Introduction
This guide covers the installation of the following applications on ZFSguru with FreeBSD 9 as system image. SABnzbd SickBeard CouchPotato HeadPhones Transmission and all the dependencies required to run these applications.

Ill only discuss the installation procedure of these apps. The configuration is up to you and, in most cases, is pretty straightforward. All the commands used in this guide, are very basic. This means everybody should be able, to get all the software up and running, without a hassle. I assume you have ZFSguru installed and know how to ssh into the system. FreeBSD uses two different systems to install software. The packages system and the ports collection. In this guide well be using the ports collection. Using the ports collection means, the software will be compiled on your system. Prior to the compilation, you will often, be asked to configure the installation of the package. If you dont know what youre doing, just use the defaults, unless youre told otherwise. For more info please refer to: http://www.freebsd.org/doc/handbook/

1. Update FreeBSD
1.1 Set ssh password using the ZFSguru webinterface: Services Internal OpenSSH Reset password 1.2 SSH in to your server with username: ssh 1.3 Root acces: su 1.4 ZFSguru uses a FreeBSD core installation, which means the ports tree isnt present. The first thing we have to do is install the ports tree:
# portsnap fetch extract

The previous command is used to make a first time install, of the ports tree. If you, in the future, need to install other software using the ports tree. You can run this command, to update the ports tree:
# portsnap fetch update

1.5 FreeBSD doent come with a ports manager by default. Lets install Portmanager:
# cd /usr/ports/ports-mgmt/portmanager # make install clean

1.6 Upgrade all ports using portmanager (this may take some time):
# portmanager u

Howto SABnzbd, SickBeard, CouchPotato, HeadPhones and Transmission on ZFSguru

2. Install SABnzbd
SABnzbd is in the ports collection. This makes it easy to install including all dependencies. 2.1 Now lets install SABnzbd:
# cd /usr/ports/news/sabnzbdplus # make install clean

2.2 Edit rc.conf to enable SABnzbd to start automatically:


# ee /etc/rc.conf

add this line somewhere at the bottom:


sabnzbd_enable="YES"

Press esc key ---> leave editor ---> save to save changes 2.3 Edit the SABnzbd rc.d config file:
# ee /usr/local/etc/rc.d/sabnzbd

Modify/add the following lines, replace this:


: ${sabnzbd_user:="_sabnzbd"} : ${sabnzbd_group:="_sabnzbd"} : ${sabnzbd_conf_dir:="/usr/local/sabnzbd"}

with this:
: ${sabnzbd_user:="share"} : ${sabnzbd_group:="share"} : ${sabnzbd_conf_dir:="/usr/local/sabnzbd"} PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"

REMOVE the SPACES from around the equal sign(=) in this line under the sabnzbd_stop function. Change this:
if [ ${host} = "0.0.0.0" ]

To this:
if [ ${host}="0.0.0.0" ]

Press esc key -----> leave editor ----> save 2.4 Now you have SABnzbd installed. Run SABnzbd for the first time:
# /usr/local/etc/rc.d/sabnzbd start

Use a browser to go to http://ip.of.your.server:8080 and start configuring SABnzbd. After configuring, an ini file will be created at /home/nfs/sabnzbd/sabnzbd.ini Remember to change the Permissions for completed downloads setting in SABnzbd to 777 This allows you to access, move, and delete files in your download directories, through a Samba share and Midnight Commander.

Howto SABnzbd, SickBeard, CouchPotato, HeadPhones and Transmission on ZFSguru

2.5 Troubleshooting SABnzbd+


2.5.1 SABnzbd doesnt load at: http://ip.of.your.server:8080/
Try this:
# /usr/local/etc/rc.d/sabnzbd stop # ee /usr/home/nfs/sabnzbd/sabnzbd.ini

look for the line:


host = localhost

and change it to:


host = 0.0.0.0

Press esc key ----> leave editor ----> save Start SABnzbd again and check your browser:
# /usr/local/etc/rc.d/sabnzbd start

2.5.2 Errors after updating SABnzbd with portmanager


After updating SABnzbd with portmanager the sabnzbd rc.d script will be overwritten. You need to edit the script again, according step 2.3. You can safe a backup of the rc.d script: # cp /usr/local/etc/rc.d/sabnzbd /usr/local/etc/rc.d/sabnzbd.backup

Howto SABnzbd, SickBeard, CouchPotato, HeadPhones and Transmission on ZFSguru

3. Install SickBeard, CouchPotato and HeadPhones.


Youre free to skip an app if you dont need it. This wont affect the others. These apps are downloaded using git, thus we need to install this first. 3.1 Install git-core:
# cd /usr/ports/devel/git # make install clean

3.2 Download Sickbeard, Couchpotato and Headphones:


# # # # # git clone https://github.com/midgetspy/Sick-Beard.git /usr/local/sickbeard git clone https://github.com/RuudBurger/CouchPotato.git /usr/local/couchpotato git clone https://github.com/rembo10/headphones.git /usr/local/headphones rm -rf /usr/local/headphones/.git <== to enable updating with webinterface rm -rf /usr/local/couchpotato/.git <== to enable updating with webinterface

3.3 Copy sickbeard autoProcessTV.cfg


# cd /usr/local/sickbeard/autoProcessTV # cp autoProcessTV.cfg.sample autoProcessTV.cfg # chmod 555 /usr/local/sickbeard/autoProcessTV

3.4 Install wget (this is needed to shutdown sickbeard and couchpotato):


# cd /usr/ports/ftp/wget # make install clean

3.5 Edit rc.conf to enable Sickbeard, Coucpotato and Headphones to start automatically:
# ee /etc/rc.conf

add the lines of the installed apps below the sabnzbd_enable line:
sickbeard_enable="YES" couchpotato_enable="YES" headphones_enable="YES"

Press esc key----->leave editor----> save to save changes 3.6 Download rc.d scripts and run the programs:
# # # # # cd /usr/local/etc/rc.d fetch http://dl.dropbox.com/u/36835219/sickbeard fetch http://dl.dropbox.com/u/36835219/couchpotato fetch http://dl.dropbox.com/u/36835219/headphones chmod 555 sickbeard couchpotato headphones

# /usr/local/etc/rc.d/sickbeard start # /usr/local/etc/rc.d/couchpotato start # /usr/local/etc/rc.d/headphones start

3.7 Now you can start configuring the previous installed applications, browse to the following locations: SickBeard: http://ip.of.your.server:8081 CouchPotato: http://ip.of.your.server:5000 HeadPhones: http://ip.of.your.server:8181

Howto SABnzbd, SickBeard, CouchPotato, HeadPhones and Transmission on ZFSguru

4. Install Transmission
4.1 Just like SABnzbd, we can use the ports tree to install Transmission:
# cd /usr/ports/net-p2p/transmission-daemon # make install clean

4.2 Edit the Transmissions rc.d config startup file:


# ee /usr/local/etc/rc.d/transmission

Modify/add the following lines (starting at line 34):


: : : : : : ${transmission_enable:="NO"} ${transmission_user:="share"} ${transmission_conf_dir="/usr/local/transmission/"} ${transmission_download_dir="/tank/data/Torrents/Complete"} ${transmission_incomplete_dir="/tank/data/Torrents/Incomplete"} ${transmission_flags="-a 192.168.10.*"}

transmission_flags=" \ ${transmission_watch_dir:+-c ${transmission_watch_dir}} \ ${transmission_conf_dir:+-g ${transmission_conf_dir}} \ ${transmission_download_dir:+-w ${transmission_download_dir}} \ ${transmission_incomplete_dir:+- ${transmission_incomplete_dir}} \ ${transmission_flags}"

Press esc key----->leave editor----> save to save change NOTE: The above assumes you have a pool named 'tank' with a filesystem 'data' where the torrents should be stored. Change the 'transmission_download_dir' and 'transmission_incomplete_dir' variables according to your own setup/wishes. The above also assumes your local LAN network is in the 192.168.10.* range, change this IP according to your own network. 4.3 Edit rc.conf to enable Transmission to start automatically:
# ee /etc/rc.conf

add the line of the installed app at the end of the file:
transmission_enable="YES"

Press esc key----->leave editor----> save to save change 4.4 Start transmission:
# /usr/local/etc/rc.d/transmission start

4.5 Now point a browser to: http://ip.of.your.server:9091

Howto SABnzbd, SickBeard, CouchPotato, HeadPhones and Transmission on ZFSguru

That's it! Youre ready. You can start configuring all the apps to create the ultimate media NAS.
Special thanks to: Mar2zz from the Tweakers.net forum (dutch) for the excellent information.
http://gathering.tweakers.net/forum/list_messages/1482797

Sleepie from the ZFSguru forum, for the Transmission guide http://zfsguru.com/forum/softwarepackages/172 And of course Jason, for creating ZFSguru! http://zfsguru.com/

Howto SABnzbd, SickBeard, CouchPotato, HeadPhones and Transmission on ZFSguru

Vous aimerez peut-être aussi