Sick-Beard

Software version830b3b1
Operating SystemDebian 7
WebsiteSick-Beard Website

Introduction

This tool relies on SABnzbd and allows for easy management of TV series episodes.

Installation

To install it, we need the following package:

1
aptitude install python-cheetah

Then we install Sick-Beard:

1
2
3
4
5
cd /tmp
wget -O sickbeard.tgz "https://nodeload.github.com/midgetspy/Sick-Beard/tarball/master"
tar -xzf sickbeard.tgz -C /usr/share/
mv /usr/share/midgetspy-Sick-Beard-* /usr/share/sick-beard
chown -Rf www-data. /usr/share/sick-beard/

And set up the init file:

1
2
cp /usr/share/sick-beard/init.ubuntu /etc/init.d/sickbeard
update-rc.d sickbeard defaults

Configuration

We’ll use a configuration file for default values:

1
2
3
4
5
# SickBeard configuration
SB_USER=www-data
SB_HOME=/usr/share/sick-beard
SB_DATA=/usr/share/sick-beard
SB_OPTS=/usr/share/sick-beard/config.ini

You can then start the service:

1
2
3
> /etc/init.d/sickbeard start
Removing stale /var/run/sickbeard/sickbeard.pid
Starting SickBeard

Apache Redirection

You might want to have a simple URL for using this service, so let’s create our configuration (/etc/apache2/sites-enabled/000-default):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<VirtualHost *:80>
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ErrorLog ${APACHE_LOG_DIR}/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # Sabnzb
    <Location /sabnzbd>
    	order deny,allow
   	deny from all
    	allow from all
    	ProxyPass http://server:8080/sabnzbd
    	ProxyPassReverse http://server:8080/sabnzbd
    </Location>

    # Sickbeard
    <Location /sickbeard/>
    	order deny,allow
   	deny from all
    	allow from all
    	ProxyPass http://server:8081/sickbeard/
    	ProxyPassReverse http://server:8081/sickbeard/
    </Location>
</VirtualHost>

Next, stop Sickbeard if it’s still running:

1
/etc/init.d/sickbeard stop

Then edit the configuration file to modify the web-root like this (/usr/share/sick-beard/config.ini):

1
2
3
[...]
web_root = "/sickbeard"
[...]

Finally, start Sickbeard and reload Apache:

1
2
/etc/init.d/sickbeard start
/etc/init.d/apache2 reload

Usage

All you have to do now is type the URL: http://server/sickbeard/ and configure the software through the interface. It’s quite simple, so I won’t go into details.

Last updated 26 Sep 2012, 19:26 CEST. history