Skip to content

Latest commit

 

History

History
109 lines (73 loc) · 3.33 KB

SickChill-installation-Debian-Ubuntu-14-15-16.md

File metadata and controls

109 lines (73 loc) · 3.33 KB

Ubuntu 14.x to 22.x

The following instructions are for installing SickChill on Ubuntu 14.x 15.x 16.x 18.x 20.x 22.x

The installation is applicable to up to and including Ubuntu 22.04 LTS, the provided script can distinguish the difference between systemd/init/upstart for you.

The installation assumes that you're not using the root user to install/run sickchill - the entries for user:group throughout the document will be set as sickchill:sickchill and you will have to modify if you want it to match your user configuration.

If you trust us and would like us to just do it for you just paste this:

curl https://raw.githubusercontent.com/SickChill/SickChill/master/contrib/debian-ubuntu-install.sh | sudo bash

Otherwise:

  1. Update repositories and install SickChill dependencies.
    This will give you unrar-free (guess) and git to pull the repo, as well as any other requirements for building the package. The name of the python3-venv package you need to install may be different to what is listed here - in this case you will be prompted with the updated version at a later step.
sudo apt-get update && sudo apt-get install unrar-free openssl libssl-dev python3 python3-pip python3.10-venv
  1. Create sickchill user and group, and switch to sickchill.
    This makes sure that sickchill is isolated and is best practice for security
sudo addgroup --system sickchill
sudo adduser --disabled-password --system --home /var/lib/sickchill --gecos "SickChill" --ingroup sickchill sickchill
sudo su sickchill
  1. Set up a Python virtual environment
python3 -m venv /opt/sickchill
  1. Install the required dependencies with pip
/opt/sickchill/bin/pip install -U pip setuptools wheel
  1. Install SickChill
/opt/sickchill/bin/pip install -U sickchill

For Init Systems
6. Copy init.d service

sudo curl https://raw.githubusercontent.com/SickChill/SickChill/master/contrib/runscripts/init.ubuntu -o /etc/init.d/sickchill
  1. Make sure your new service has correct permissions
sudo chown root:root /etc/init.d/sickchill && sudo chmod 644 /etc/init.d/sickchill
  1. Update and start your new service
sudo update-rc.d sickchill defaults && sudo service sickchill start

For Upstart Systems
6. Copy init.d service

sudo curl https://raw.githubusercontent.com/SickChill/SickChill/master/contrib/runscripts/init.upstart -o /etc/init/sickchill.conf
  1. Make sure your new service has correct permissions
sudo chown root:root /etc/init/sickchill.conf && sudo chmod 644 /etc/init/sickchill.conf
  1. Update and start your new service
sudo service sickchill start

For Systemd Systems
6. Copy systemd service

sudo curl https://raw.githubusercontent.com/SickChill/SickChill/master/contrib/runscripts/init.systemd -o /etc/systemd/system/sickchill.service
  1. Make sure your new service has correct permissions
sudo chown root:root /etc/systemd/system/sickchill.service && sudo chmod 644 /etc/systemd/system/sickchill.service
  1. Enable, start, and then check the status of your new service
sudo systemctl enable sickchill && sudo systemctl start sickchill && sudo systemctl status sickchill

All done, verify that SickChill is accessible at: http://localhost:8081/