Skip to content

Install SickGear [2] RHEL

SickGear edited this page Feb 25, 2023 · 1 revision

SickGear Wiki: Home | Reporting Issues | Frequently Answered Questions | > Install Guides <

RHEL: SickGear Install Guide


Method 1: Install

Pyenv : SickGear Install Guide

Clone the repository to where you want to install it, in this case /opt/sickgear
Run the commands with the user you wish to run SickGear as.
In this case it's going to be user1.

The commands below are run as as user1.

sudo git clone https://github.com/SickGear/SickGear.git /opt/sickgear
sudo chown user1 -R /opt/sickgear
Expand (To build Python using Pyenv)

First, follow suggested Pyenv build environment

then...

git clone https://github.com/yyuu/pyenv /opt/sickgear/.pyenv

Install the desired python version

PYENV_ROOT=/opt/sickgear/.pyenv /opt/sickgear/.pyenv/bin/pyenv install 3.9.13

Note: a systemd file must be edited with the path to the pyenv Python
^^^^^

Install SickGear dependencies

cd /opt/sickgear  
/opt/sickgear/.pyenv/versions/3.9.13/bin/pip install -r requirements.txt  
/opt/sickgear/.pyenv/versions/3.9.13/bin/pip install -r recommended.txt  

Start SickGear

/opt/sickgear/.pyenv/versions/3.9.13/bin/python /opt/sickgear/sickgear.py

(Note: python3 users must explicitly specify <path_to>/python3 binary to run SickGear)

You should be able to access SickGear at http://localhost:8081.

If you want SickGear to start at boot.
[Ubuntu] example, you will change this to fit your OS (init.debian)...

sudo cp /opt/sickgear/init-scripts/init.ubuntu /etc/init.d/sickgear

then,

echo "PYTHON_BIN=/opt/sickgear/.pyenv/versions/3.9.13/bin/python" | sudo tee /etc/default/sickgear
echo "RUN_AS=user1" | sudo tee -a /etc/default/sickgear
update-rc.d sickgear defaults

Now make sure SickGear isn't running and start the service.

Run the service

sudo service SickGear start

All done, you can access SickGear at http://localhost:8081

Thanks to zanaga for donating this guide.


Method 2: Install using Snap

Available for Red Hat Enterprise Linux 7.6+ (via EPEL repo), otherwise Install manually

2019.12.03 It is only available on RHEL 8 if you build the RPM yourself.

  1. Add EPEL to your system...

    • sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  2. Add the optional and extras (recommended)

    • sudo subscription-manager repos --
    • enable "rhel-*-optional-rpms" --
    • enable "rhel-*-extras-rpms"
    • sudo yum update
  3. Install Snap...

    • sudo yum install snapd

    • sudo systemctl enable --now snapd.socket

    • sudo ln -s /var/lib/snapd/snap /snap

      Either log out and back in again, or restart your system, to ensure snap's paths are updated.

  4. Install and run SickGear (you must sudo)...

    • sudo snap install sickgear
    • sudo /snap/bin/sickgear (use which sickgear to find path, e.g. /snap/bin/sickgear)

SickGear will exit with a data directory write permission fail message if you do not use sudo

All done, you can access SickGear at http://localhost:8081


Clone this wiki locally