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 15271
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.40.2/linux-amd64-filebrowser.tar.gz
-
Extract the archive
tar -xzf linux-amd64-filebrowser.tar.gz
-
Launch the program.
/home/user/filebrowser -r /home/user -a 0.0.0.0 -p 15271
-
Access File Browser at http://server.whatbox.ca:15271
-
Login with the default username admin and the randomly generated password shown in your SSH client
-
Edit the
admin
user at http://server.whatbox.ca:15271/settings/users/1Change the username to
user
and password to a unique password -
Click
SAVE
at the bottom of the page. -
In your SSH session, press Ctrl+C to close File Browser.
-
Launch the program in the background.
screen -dmS filebrowser /home/user/filebrowser -r /home/user -a 0.0.0.0 -p 15271
You can now log in and use File Browser at http://server.whatbox.ca:15271
HTTPS
Add your File Browser port 15271
as a custom app on your Manage Links page.
Once your managed link is set up, for added security, replace -a 0.0.0.0
with -a 127.0.0.1
in your launch command and automatic restart script.
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 15271
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.