Bruce Wilfong
Explorer
- Joined
- Mar 25, 2016
- Messages
- 85
As I have been converting over all my warden to IOCage, doing a ton of researching I never found a good Guide for SickChill (aka sickrage). Well its not pretty and could use some nice clean-up from someone with more experience but I got it working with my media share and sabnzbd
my path is /mnt/zp1/ similar to /mnt/tank/ use whatever you have as a path.
#SickChill
#Create a Jail Named SickChill - change IP, defaultrouter as needed
#In Freenas GUI - Add a user named sickchill ID as 8020 then add it to the media group that owns your Media share.
{someone could probably do some niffty code here but this is how I did it}
## Create Mounts & directories, this assumes you are using sabnzbd
## Mounts & directories
#Add a user and install sickchill
# This may not be necessary but when I downloaded and tar'ed the file it needed a name change from SickChill-master to just sickchill.
#Look in usr/local/ for SickChill-master, use the commands below to check
#Check to see what the naming is, then exit
#If you see anything other than /usr/local/sickchill then do the following:
# Enable SickChill
# Copy over the script.
# You can edit here if you like but not necessary. If someone wants to edit the script better so /config can be in the /apps/sickchill that would be nice, I couldnt figure it out.
# To exit edit press: ESC then ENTER to exit
# Start the service
#Go to your IP address: Port is 8081. then Update through the SickChill GUI
192.168.1.25:8081
my path is /mnt/zp1/ similar to /mnt/tank/ use whatever you have as a path.
#SickChill
#Create a Jail Named SickChill - change IP, defaultrouter as needed
Code:
echo '{"pkgs":["lang/python27","databases/py-sqlite3","security/ca_root_nss","curl"]}' > /tmp/pkg.json iocage create -n "sickchill" -p /tmp/pkg.json -r 11.2-RELEASE ip4_addr="vnet0|192.168.1.25/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on" rm /tmp/pkg.json
#In Freenas GUI - Add a user named sickchill ID as 8020 then add it to the media group that owns your Media share.
{someone could probably do some niffty code here but this is how I did it}
## Create Mounts & directories, this assumes you are using sabnzbd
Code:
iocage exec sickchill "mkdir -p /mnt/sabnzbd" iocage exec sickchill "mkdir -p /mnt/media"
## Mounts & directories
Code:
iocage fstab -a sickchill /mnt/zp1/sabnzbd /mnt/sabnzbd nullfs rw 0 0 iocage fstab -a sickchill /mnt/zp1/media /mnt/media nullfs rw 0 0
#Add a user and install sickchill
Code:
iocage exec sickchill "pw user add sickchill -c sickchill -u 8020 -d /nonexistent -s /usr/bin/nologin" iocage exec sickchill "fetch https://github.com/SickChill/SickChill/archive/master.tar.gz" iocage exec sickchill "tar xfz master.tar.gz -C /usr/local/"
# This may not be necessary but when I downloaded and tar'ed the file it needed a name change from SickChill-master to just sickchill.
#Look in usr/local/ for SickChill-master, use the commands below to check
Code:
iocage exec sickchill cd /usr/local/ ll
#Check to see what the naming is, then exit
Code:
cd / exit
#If you see anything other than /usr/local/sickchill then do the following:
Code:
iocage exec sickchill "mv /usr/local/SickChill-master /usr/local/sickchill" iocage exec sickchill chown -R sickchill:sickchill /usr/local/sickchill
# Enable SickChill
Code:
iocage exec sickchill mkdir /usr/local/etc/rc.d iocage exec sickchill sysrc -f /etc/rc.conf sickchill_enable="YES"
# Copy over the script.
Code:
iocage exec sickchill cp /usr/local/sickchill/runscripts/init.freebsd /usr/local/etc/rc.d/sickchill iocage exec sickchill chmod +x /usr/local/etc/rc.d/sickchill
# You can edit here if you like but not necessary. If someone wants to edit the script better so /config can be in the /apps/sickchill that would be nice, I couldnt figure it out.
Code:
iocage exec sickchill ee /usr/local/etc/rc.d/sickchill
# To exit edit press: ESC then ENTER to exit
# Start the service
Code:
iocage exec sickchill service sickchill start
#Go to your IP address: Port is 8081. then Update through the SickChill GUI
192.168.1.25:8081
Last edited: