-
Notifications
You must be signed in to change notification settings - Fork 81
Install SickGear [2] CentOS
SickGear Wiki: Home | Reporting Issues | Frequently Answered Questions | > Install Guides <
- Method 1: Install
- Method 2: Install using Snap
- Method 3: Old guide: CentOS / RHEL
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.
Available for CentOS 7.6+, otherwise Install manually
-
Install Snap...
-
sudo yum install epel-release
-
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.
-
-
Install and run SickGear (you must
sudo
)...sudo snap install sickgear
-
sudo /snap/bin/sickgear
(usewhich 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