Install SickRage Debian via command line

In This SickRage install Debian tutorial. We are going to install SickRage via the command line. Next, we’ll configure SickRage. To download tv shows from the newsgroups.

Install required software for SickRage

First we nee to do an update. Do an update.

sudo apt-get update

Next, we are going to update all software.

sudo apt-get upgrade -y

We will now install the requirements for SickRage. So as Python.

sudo apt-get install python-pip python-dev git-core libssl-dev libxslt1-dev libxslt1.1 libxml2-dev libxml2 libssl-dev libffi-dev -y

We are now going to install PIP.

sudo pip install pyopenssl

Now we only have to install the Unrar program.

Unrar Install for Debian

We need Unrar. To extract the downloaded files.

sudo apt-get install build-essential -y

We are now going to download Unrar. You can find the latest version on https://rarlab.com/download.htm. Adjust this, if necessary.

wget http://rarlab.com/rar/unrarsrc-5.2.7.tar.gz

Now we are going to extract Unrar.

tar -xvf unrarsrc-5.2.7.tar.gz

Then. We go to the Unrar folder.

cd unrar

We will now create the file.

sudo make -f makefile

We are now going to install Unrar.

sudo install -v -m755 unrar /usr/bin

Unrar installation. Is now complete.

Install SickRage Debian

We are now going to download and install SickRage. We do this in the hidden folder “sickrage”.

sudo git clone https://github.com/SickRage/SickRage.git /sickrage

Now we need to change the map rights. Beware! Customize the user name. to your own username.

sudo chown -R username:username /sickrage

Now we have to check if it has gone well. So now we start SickRage. We do this in the following way.

python ./sickrage/SickBeard.py -d

The installation of SickRage, is now ready.

Start SickRage automatically

It is of course very useful. That SickRage starts automatically, during the boot process. Before we can do this. You need to know which Debian version you are using.

You do this by executing the command below.

sudo stat /proc/1/exe

If you are using Debian Jessie. or higher. Then you should use the systemd script.

If you are using Debian Wheezy. Then you must. use the init. D script.

Systemd script

Create the default file for SickRage.

sudo nano /etc/default/sickrage

Onderstaande hierin plakken. and copy. Beware! Customize the user name.

SR_USER=yourusername
SR_HOME=./sickrage
SR_DATA=./sickrage
SR_PIDFILE=/home/user/.sickrage.pid

Now press the CTRL + X key. and y to confirm.

Now we are going to copy the script.

sudo cp /./sickrage/runscripts/init.ubuntu /etc/init.d/sickrage

Now we have to make the script executable.

sudo chmod +x /etc/init.d/sickrage

Default value of SickRage script update

sudo update-rc.d sickrage defaults

Now you can start Sickrage. In the following way.

sudo service sickrage start

You’re done now. SickRage will now start automatically. During the boot process.

Init.d script

Now we need to create a standard file.

sudo nano /etc/systemd/system/sickrage.service

Copy and paste. Beware! Change the user name here. to your own username.

[Unit]
Description=SickRage Daemon

[Service]
User=yourusername
Group = your user Name
Type=forking
GuessMainPID=no
ExecStart=/usr/bin/python ./sickrage/SickBeard.py -q –daemon –nolaunch –datadir=./sickrage

[Install]
WantedBy=multi-user.target

Press the CTRL + X key. And then press the y key. To save this file.

Now we need to activate the script.

Enable the SickRage systemd script

Now you can SickRage. in the following way.

sudo service sickrage start

SickRage will now start automatically. During the Debian startup process.

Share This

1 comment

  1. Mario Koch

    Dude, don’t work, when I will go install PIP, I received this error:

    Collecting pyopenssl
    Downloading https://files.pythonhosted.org/packages/01/c8/ceb170d81bd3941cbeb9940fc6cc2ef2ca4288d0ca8929ea4db5905d904d/pyOpenSSL-19.0.0-py2.py3-none-any.whl (53kB)
    100% |████████████████████████████████| 61kB 728kB/s
    Collecting cryptography>=2.3 (from pyopenssl)
    Downloading https://files.pythonhosted.org/packages/c2/95/f43d02315f4ec074219c6e3124a87eba1d2d12196c2767fadfdc07a83884/cryptography-2.7.tar.gz (495kB)
    100% |████████████████████████████████| 501kB 210kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
    File “”, line 1, in
    ImportError: No module named setuptools

    —————————————-
    Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-1PGUEm/cryptography/

Leave a Reply