How to Install Filebrowser on Manjaro
Filebrowser is a web-based file manager written in Go. In this tutorial, we will guide you on how to install Filebrowser on Manjaro.
Prerequisites
- You need to have a Manjaro system up and running with root privileges or access to a user account with sudo privileges.
Steps to Install Filebrowser on Manjaro
You need to open a terminal on your Manjaro system. You can do this by pressing "Ctrl + Alt + T" or by searching for "Terminal" from the applications menu.
Once the terminal is open, you need to update your Manjaro system's packages to ensure that you have the latest version of the required dependencies installed. Run the following command to do so:
sudo pacman -SyuAfter updating the system packages, we need to install Go. We can use the official Manjaro package for Go. Use the following command to install it:
sudo pacman -S goNow, we will download the latest stable release of Filebrowser from its official website. Run the following command to download it:
cd ~/ wget https://github.com/filebrowser/filebrowser/releases/download/v2.16.0/linux-amd64-filebrowser.tar.gzYou can check for the latest release version of Filebrowser from its official website: https://filebrowser.org/installation/.
Now that we have downloaded the package, extract it in the
usr/local/bindirectory to make it accessible system-wide. Use the following command to extract the downloaded package:sudo tar -xzvf linux-amd64-filebrowser.tar.gz -C /usr/local/binNext, we need to create a system user for Filebrowser. You can create it using the following command:
sudo useradd -r -s /bin/false filebrowserNow, we need to create a systemd service file to manage the Filebrowser service. Create a new systemd service file called
filebrowser.serviceusing your favorite text editor:sudo nano /etc/systemd/system/filebrowser.serviceCopy and paste the following contents into the file:
[Unit] Description=Filebrowser [Service] ExecStart=/usr/local/bin/filebrowser -r /home -d /etc/filebrowser/filebrowser.db --log /var/log/filebrowser.log --port 80 User=filebrowser Group=filebrowser [Install] WantedBy=multi-user.targetHere, we have set some parameters for the service:
-rspecifies the root directory for Filebrowser.-dspecifies the path to the database.-logspecifies the path to the log file.--portspecifies the port number.
You can customize these parameters based on your requirements.
Save and close the file. Now, reload the systemd daemon and enable the Filebrowser service using the following command:
sudo systemctl daemon-reload sudo systemctl enable filebrowser.serviceFinally, start the Filebrowser service using the following command:
sudo systemctl start filebrowser.serviceFilebrowser should now be accessible from any web browser using the IP address of your Manjaro system. It will be available at http://
:80.
Note: If you're using a firewall, make sure the port is open for incoming traffic.
Congratulations! You have successfully installed Filebrowser on your Manjaro system. You can now use it to manage files and directories through a web-based interface.