-
Notifications
You must be signed in to change notification settings - Fork 81
Install SickGear [2] CentOS RHEL old
SickGear Wiki: Home | Reporting Issues | Frequently Answered Questions | > Install Guides <
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.
-
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
-
Install prerequisites
sudo yum install python-cheetah unrar wget git
-
Clone SickGear git repo
sudo git clone https://github.com/SickGear/SickGear.git /usr/share/SickGear
-
Set correct ownership
chown -R user:group /usr/share/SickGear
-
Copy init file to system init
sudo cp /usr/share/SickGear/init-scripts/init.fedora /etc/init.d/SickGear
-
Make init file executable
sudo chmod +x /etc/init.d/SickGear
-
Modify init file
sudo sed 's|/etc/sysconfig/sickbeard|/etc/sysconfig/SickGear|' -i /etc/init.d/SickGear
-
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"
-
Add the sickgear service to system services
sudo chkconfig --add SickGear
-
Configure SickGear service to start on system startup
sudo chkconfig SickGear on
-
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.