How to Install Filebrowser on Ubuntu Server

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.

Prerequisites

Before starting with the installation process, make sure you have the following:

Step 1: Update Ubuntu

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.

Step 2: Install Go

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

Step 3: Download Filebrowser

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.

Step 4: Extract 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.

Step 5: Create a User for Filebrowser

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

Step 6: Move Filebrowser to /usr/local/bin

Now move the Filebrowser binary to the "/usr/local/bin" directory by running the following command:

sudo mv filebrowser /usr/local/bin

Step 7: Set Permissions

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

Step 8: Create a Systemd Service

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.

Step 9: Enable the Service

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!

Step 10: Access Filebrowser

To access the web interface of Filebrowser, open your browser and go to "http:///filebrowser". Replace "" with the IP address of your Ubuntu Server.

Note: If you're using a firewall, make sure to allow incoming traffic on port 80.

Conclusion

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!