You'll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).
Installation - bash script
You can copy and paste the following to run an installation script for Jackett and its dependencies:
wget -qO ~/install.jackett.sh https://bitbucket.org/feralio/wiki/raw/HEAD/src/wiki/software/jackett/jackett.sh && bash ~/install.jackett.sh
The script will also allow you to restart the software and uninstall it.
Installation - manual
Jackett requires mono to run. Please install mono first, then come back to this guide.
Once mono is installed, install Jackett by logging in via SSH, then copying and pasting the following:
wget -qO ~/Jackett.tar.gz $(curl -s https://api.github.com/repos/Jackett/Jackett/releases/latest | grep 'browser_' | cut -d\" -f4 | head -n 1) tar xf ~/Jackett.tar.gz rm -rf ~/Jackett.tar.gz
Configuring before starting Jackett
You need to start and then close Jackett so that it'll create the necessary configs. Do so with the following command:
mono --debug ~/Jackett/JackettConsole.exe
Jackett will then go through its launch procedure. Eventually you'll see a line which says Starting web server at http://*:9117/. At this point, press ctrl + c to close Jackett and create the config.
We also need to change the port number, since the default can naturally only be used once per server. To randomise it, run this command (the start command in the section below will tell you how to access Jackett):
sed -i 's|"Port": 9117,|"Port": '$(shuf -i 10001-59001 -n 1)',|g' ~/.config/Jackett/ServerConfig.json
Starting, stopping and restarting
This section covers the Jackett process - starting it, stopping it and restarting it. It also covers checking if the process is running, in case that becomes necessary.
- screen -dmS jackett mono --debug ~/Jackett/JackettConsole.exe && echo -e "\nhttp://$(hostname -f):$(sed -rn 's|(.*)"Port": (.*),|\2|p' ~/.config/Jackett/ServerConfig.json)"
- check running
- pgrep -fu "$(whoami)" "SCREEN -dmS jackett"
- kill "$(pgrep -fu "$(whoami)" "SCREEN -dmS jackett")"
- kill "$(pgrep -fu "$(whoami)" "SCREEN -dmS jackett")" && sleep 3 && screen -dmS jackett mono --debug ~/Jackett/JackettConsole.exe && echo -e "\nhttp://$(hostname -f):$(sed -rn 's|(.*)"Port": (.*),|\2|p' ~/.config/Jackett/ServerConfig.json)"
- kill (force stop)
- kill -9 "$(pgrep -fu "$(whoami)" "SCREEN -dmS jackett")"
The check command works as follows: if the process is running a list of relevant process ID numbers will be listed; if nothing is listed the process is not running.
Please note that the bash script at the top of the page can also be used for restarting Jackett.
Automatically restarting Jackett if it is not running
Cron jobs can be used to check if Jackett is running and start it up if it is not. There is a separate page on configuring cron jobs.
One of the first things you should probably do is password protect Jackett. You can do this by scrolling down on the Jackett dashboard to the section Jackett Configuration, enter your password in the field Admin password and press Set Password.
- Jackett gives an error whilst trying to add an indexer.
Please copy and paste the following commands:
wget -O ~/cacert.pem https://curl.haxx.se/ca/cacert.pem cert-sync --user ~/cacert.pem
Then, restart Jackett using the section above.
kill -9 "$(pgrep -fu "$(whoami)" "SCREEN -dmS jackett")" rm -rf ~/Jackett ~/.config/Jackett