Whatbox Logo
Login for certain variables to be updated with your slot's information

Wiki > Navidrome

"Navidrome is a self-hosted, open source music server and streamer." Navidrome runs on its own port; 11237 has been automatically generated for you, but you may choose another 5 digit port between 10000 and 32767.

Installation

  1. Connect to your slot through SSH

  2. Download the latest Linux x86_64 release

     wget https://github.com/navidrome/navidrome/releases/download/v0.57.0/navidrome_0.57.0_linux_amd64.tar.gz
    
  3. Make a directory for Navidrome

     mkdir -p ~/navidrome
    
  4. Extract the latest release archive

     tar zxvf navidrome_*.tar.gz -C ~/navidrome
    
  5. Create a configuration file and fill with the following. nano ~/navidrome/navidrome.toml

navidrome.toml

    DataFolder = '/home/user/navidrome'
    MusicFolder = '/home/user/files' # change this as needed
    LogLevel = 'INFO'
    Port = '11237'
    Address = '0.0.0.0'

Additional configuration file parameters can be found here.

  1. Start Navidrome in a background screen. You can change the music directory by changing ~/files to a different directory. Navidrome will scan all files and subdirectories in the specific directory.

     screen -dmS navidrome ~/navidrome/navidrome -c ~/navidrome/navidrome.toml
    
  2. Access Navidrome at http://server.whatbox.ca:11237 and create a new administrator account. You will use this account to log in and use Navidrome.

  3. (Optional) Remove unneeded data

     rm navidrome_*.gz
    

Automatically Restart

  1. Make a file to be used for the script. touch ~/navidrome_restart.cron
  2. Edit the file and enter the text below. nano -w ~/navidrome_restart.cron
#!/bin/bash
if pgrep -fx "/home/user/navidrome/navidrome -c /home/user/navidrome/navidrome.toml" > /dev/null
then
    echo "Navidrome is running."
else 
    echo "Navidrome is not running, starting Navidrome"
    screen -dmS navidrome /home/user/navidrome/navidrome -c /home/user/navidrome/navidrome.toml
fi
exit
  1. Save the file by pressing Ctrl+S then exit nano with Ctrl+X.
  2. Make the script executable. chmod +x ~/navidrome_restart.cron
  3. Open your crontab. EDITOR=nano crontab -e
  4. Enter the following text
@reboot /home/user/navidrome_restart.cron >/dev/null 2>&1
*/5 * * * * /home/user/navidrome_restart.cron >/dev/null 2>&1
  1. Save the file by pressing Ctrl+S then exit nano with Ctrl+X.