Filebrowser is a web-based file manager that offers an intuitive interface for managing files on your server. This guide will walk you through the installation process on an Ubuntu Server.
Prerequisites
Before we begin, ensure you have the following:
- An Ubuntu Server with root access
- A web browser
Step 1: Update Ubuntu
Start by updating your Ubuntu Server using the command:
sudo apt-get update && sudo apt-get upgrade
This updates all packages and dependencies.
Step 2: Install Go
Since Filebrowser is built on Golang, install Go with:
sudo apt-get install golang
Step 3: Download Filebrowser
Get the latest Filebrowser version with:
wget https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz
Note: Adjust the filename to the current version.
Step 4: Extract Filebrowser
Extract the binary using:
tar -xvf linux-amd64-filebrowser.tar.gz
This will unpack the "filebrowser" binary and its web interface files.
Step 5: Create a User for Filebrowser
Enhance security by creating a dedicated user:
sudo useradd -r -s /bin/false filebrowser
Step 6: Move Filebrowser to /usr/local/bin
Move the Filebrowser binary with:
sudo mv filebrowser /usr/local/bin
Step 7: Set Permissions
Ensure protection from unauthorized access by changing ownership:
sudo chown -R filebrowser:filebrowser /usr/local/bin/filebrowser /usr/local/bin/public
Step 8: Create a Systemd Service
Create a systemd service file for Filebrowser:
sudo nano /etc/systemd/system/filebrowser.service
Add the following content:
[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
Then save and exit.
Step 9: Enable the Service
Enable and start the service using:
sudo systemctl daemon-reload
sudo systemctl enable filebrowser.service
sudo systemctl start filebrowser.service
Filebrowser is now running on your server!
Step 10: Access Filebrowser
Open your browser and visit "http://<your-server-ip>/filebrowser", replacing "<your-server-ip>" with your server's IP address. Ensure port 80 is open if using a firewall.
Conclusion
Following this guide, you should now have Filebrowser operating smoothly on your Ubuntu Server, ready to manage your files with ease.







