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

Wiki > File Browser

File Browser is an alternative file manager, similar to Whatbox's Helm.

A random port number between 10000 and 32767 is needed and will be used to access File Browser. The port number 17403 has automatically been generated and will be used throughout this article, but can be changed if needed.

Installation

Connect to your slot through SSH.

File Browser

  1. Download the latest Linux AMD64 release of File Browser

     wget https://github.com/filebrowser/filebrowser/releases/download/v2.30.0/linux-amd64-filebrowser.tar.gz
    
  2. Extract the archive

     tar -xzf linux-amd64-filebrowser.tar.gz
    
  3. Launch the program.

     screen -dmS filebrowser /home/user/filebrowser -r /home/user -a 0.0.0.0 -p 17403
    
  4. Access File Browser at http://server.whatbox.ca:17403

  5. Login with the default username admin and default password admin

  6. Edit the admin user at http://server.whatbox.ca:17403/settings/users/1

    Change the username to user and password to a unique password

  7. Click SAVE at the bottom of the page.

You can now log in and use File Browser at http://server.whatbox.ca:17403

Automatically restart

  1. Connect to your slot via SSH

  2. Make a file to be used for the script. touch ~/filebrowser_restart.cron

  3. Edit the file and enter the text below. nano -w ~/filebrowser_restart.cron

#!/bin/bash
if pgrep -x "filebrowser" > /dev/null
then
    echo "File Browser is running."
else
    echo "File Browser is not running, starting File Browser"
    screen -dmS filebrowser /home/user/filebrowser -r /home/user -a 0.0.0.0 -p 17403
fi
exit
  1. Save the file with Ctrl+x and "y" and Enter to accept overwriting.

  2. Make the script executable. chmod +x ~/filebrowser_restart.cron

  3. Open your crontab. EDITOR=nano crontab -e

  4. Append the following text to the bottom of the document

@reboot /home/user/filebrowser_restart.cron >/dev/null 2>&1
*/5 * * * * /home/user/filebrowser_restart.cron >/dev/null 2>&1
  1. Save the crontab with Ctrl+x and "y" and Enter to accept overwriting.