Filebrowser is a web-based file manager that allows you to manage files on your server with an easy-to-use web interface. In this tutorial, we will guide you through the process of installing Filebrowser on an Ubuntu Server.
Before starting with the installation process, make sure you have the following:
The first step is to update your Ubuntu Server by running the following command:
sudo apt-get update && sudo apt-get upgrade
This will update all the packages and dependencies of your Ubuntu Server.
Filebrowser is written in Golang, so you need to install the Go programming language to run it. You can install Go on Ubuntu by running the following commands:
sudo apt-get install golang
Download the latest version of Filebrowser from the official website. You can use the following command to download the binary:
wget https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz
Note: You will need to replace the filename with the latest version of Filebrowser.
After downloading the binary, extract it by running the following command:
tar -xvf linux-amd64-filebrowser.tar.gz
This will extract the binary file "filebrowser" and a "public" folder containing its web interface files.
To secure the installation, we'll create a user for Filebrowser. Run the following command to create the user:
sudo useradd -r -s /bin/false filebrowser
Now move the Filebrowser binary to the "/usr/local/bin" directory by running the following command:
sudo mv filebrowser /usr/local/bin
To protect Filebrowser from unauthorized access, change the ownership of the binary and the public folder to the user "filebrowser":
sudo chown -R filebrowser:filebrowser /usr/local/bin/filebrowser /usr/local/bin/public
To start Filebrowser as a service, create a systemd service file:
sudo nano /etc/systemd/system/filebrowser.service
Add the following lines to the file.
[Unit]
Description=Filebrowser Service
After=network.target
[Service]
Restart=on-failure
User=filebrowser
Group=filebrowser
ExecStart=/usr/local/bin/filebrowser --port 80 --root /var/www/html --baseurl /filebrowser
[Install]
WantedBy=multi-user.target
Save and exit the file.
Next, enable the service by running the following commands:
sudo systemctl daemon-reload
sudo systemctl enable filebrowser.service
sudo systemctl start filebrowser.service
Filebrowser is now running as a service on your Ubuntu Server!
To access the web interface of Filebrowser, open your browser and go to "http://
Note: If you're using a firewall, make sure to allow incoming traffic on port 80.
With Filebrowser, you can easily manage your files on your Ubuntu Server through a simple web interface. By following this tutorial, you should now have Filebrowser installed and running on your Ubuntu Server!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!