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 17909
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
-
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
-
Extract the archive
tar -xzf linux-amd64-filebrowser.tar.gz
-
Launch the program.
screen -dmS filebrowser /home/user/filebrowser -r /home/user -a 0.0.0.0 -p 17909
-
Access File Browser at http://server.whatbox.ca:17909
-
Login with the default username admin and default password admin
-
Edit the
admin
user at http://server.whatbox.ca:17909/settings/users/1Change the username to
user
and password to a unique password -
Click
SAVE
at the bottom of the page.
You can now log in and use File Browser at http://server.whatbox.ca:17909
Automatically restart
-
Connect to your slot via SSH
-
Make a file to be used for the script.
touch ~/filebrowser_restart.cron
-
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 17909
fi
exit
-
Save the file with Ctrl+x and "y" and Enter to accept overwriting.
-
Make the script executable.
chmod +x ~/filebrowser_restart.cron
-
Open your crontab.
EDITOR=nano crontab -e
-
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
- Save the crontab with Ctrl+x and "y" and Enter to accept overwriting.