Wiki > whisparr
A random port number between 10000 and 32767 is needed and will be used to access Whisparr. The port number 18729 has automatically been generated and will be used throughout this article, but can be changed if needed.
Installing Whisparr
Connect to your slot using SSH
-
Create
~/whisparr/whisparr.ymlmkdir -p ~/whisparr && touch ~/whisparr/whisparr.yml -
Open the file with
nano ~/whisparr/whisparr.ymland add the text in this text box to the fileservices: whisparr: container_name: whisparr image: ghcr.io/hotio/whisparr network_mode: host environment: - PUID=0 - PGID=0 - UMASK=002 - TZ=UTC volumes: - /home/user/whisparr:/config - /home/user:/home/user pull_policy: always restart: unless-stoppedSave the file by pressing
Ctrl+Sthen exit nano withCtrl+X -
Run the Whisparr container briefly
podman-compose -f ~/whisparr/whisparr.yml upWait until you see "Press Ctrl+C to shut down"
Press Ctrl+C
-
Edit the port used by Whisparr
sed -i 's/6969/18729/' ~/whisparr/config.xml -
Start Whisparr
podman-compose -f ~/whisparr/whisparr.yml up -d
After returning to your shell prompt, Whisparr will be accessible at http://server.whatbox.ca:18729 (it may take several seconds to start responding) You must add authentication immediately when prompted - select "Forms" and fill in a username and password.
Updating Whisparr
To update Whisparr, run this command to restart into the latest version: podman-compose -f ~/whisparr/whisparr.yml down && podman-compose -f ~/whisparr/whisparr.yml up -d
Automatically Restart (Whisparr)
Below are steps to take to have your Whisparr instance automatically restart if it crashes, or if the server is rebooted.
-
Make a file to be used for the script.
touch ~/whisparr_restart.cron -
Edit the file and enter the text below.
nano -w ~/whisparr_restart.cron#!/bin/bash # Simple check: is a container named "whisparr" currently running? if podman ps --format "{{.Names}}" | grep -q "^whisparr$" then echo "whisparr is running." else echo "whisparr is not running, starting whisparr" # change to the folder with your compose file and start it in detached mode cd ~/whisparr/ || exit podman-compose -f ~/whisparr/whisparr.yml up -d fi exit -
Save the file with
Ctrl+xand theyandEnterto accept overwriting. -
Make the script executable.
chmod +x ~/whisparr_restart.cron -
Open your crontab.
EDITOR=nano crontab -e -
Enter the following text
@reboot /home/user/whisparr_restart.cron >/dev/null 2>&1 */5 * * * * /home/user/whisparr_restart.cron >/dev/null 2>&1 -
Save the crontab with
Ctrl+xand theyandEnterto accept overwriting.