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

Steps to Install Filebrowser on Manjaro

  1. 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.

  2. 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 -Syu
    
  3. After 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 go
    
  4. Now, 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.gz
    

    You can check for the latest release version of Filebrowser from its official website: https://filebrowser.org/installation/.

  5. Now that we have downloaded the package, extract it in the usr/local/bin directory 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/bin
    
  6. Next, we need to create a system user for Filebrowser. You can create it using the following command:

    sudo useradd -r -s /bin/false filebrowser
    
  7. Now, we need to create a systemd service file to manage the Filebrowser service. Create a new systemd service file called filebrowser.service using your favorite text editor:

    sudo nano /etc/systemd/system/filebrowser.service
    
  8. Copy 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.target
    

    Here, we have set some parameters for the service:

    • -r specifies the root directory for Filebrowser.
    • -d specifies the path to the database.
    • -log specifies the path to the log file.
    • --port specifies the port number.

    You can customize these parameters based on your requirements.

  9. 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.service
    
  10. Finally, start the Filebrowser service using the following command:

    sudo systemctl start filebrowser.service
    
  11. Filebrowser 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.

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!