Skip to content

Install SickGear [2] CentOS RHEL old

SickGear edited this page Feb 25, 2023 · 2 revisions

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

CentOS / RHEL / Fedora : SickGear Install Guide

1.Feb.2016 The following guide installs a python version older than the now supported 2.7.9+, therefore, unless you know what to do, use this new guide


The installation should also be applicable to RHEL 6 and Fedora (12, 13, or 14) with minimal changes.

The installation assumes that you're not using the root user to install/run SickGear - the entries for user:group throughout the document will have to be modified to match your user configuration.

  1. Install rpmFusion non-free repository The repository is needed for unrar installation

    sudo rpm -ivh http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm
  2. Install prerequisites

     sudo yum install python-cheetah unrar wget git 
  3. Clone SickGear git repo

    sudo git clone https://github.com/SickGear/SickGear.git /usr/share/SickGear
  4. Set correct ownership

    chown -R user:group /usr/share/SickGear
  5. Copy init file to system init

    sudo cp /usr/share/SickGear/init-scripts/init.fedora /etc/init.d/SickGear
  6. Make init file executable

    sudo chmod +x /etc/init.d/SickGear
  7. Modify init file

    sudo sed 's|/etc/sysconfig/sickbeard|/etc/sysconfig/SickGear|' -i /etc/init.d/SickGear
  8. Create configuration file /etc/sysconfig/SickGear with the following content

    # SickGear service configuration
    
    #run SickGear as
    SB_USER=media
    SB_HOME=/usr/share/SickGear
    SB_DATA=/usr/share/SickGear
    SB_PIDFILE=/usr/share/SickGear/SickGear.pid
    
    #gui address, eg: \${protocol}://\${host}:\${port}/SickGear/
    protocol=http
    host='<<< hostname or IP >>>' #example host=mymachine
    port='<<<Desired Port>>>'     #example port=8081
    
    #leave blank if no username/password is required to access the gui
    username=
    password=
    
    #use nice, ionice, taskset to start SickGear
    nicecmd=
    #  example: nicecmd="nice -n 19 ionice -c3"
  9. Add the sickgear service to system services

    sudo chkconfig --add SickGear
  10. Configure SickGear service to start on system startup

    sudo chkconfig SickGear on
  11. Start SickGear service

    sudo service SickGear start

All done, verify that SickGear is accessible at gui address, eg: http://mymachine:8081/SickGear

Celebrate with some impromptu dancing!!

Thanks to stepjohn for donating this guide.


Clone this wiki locally