In this tutorial, we will be guiding you through the process of installing Filebrowser on EndeavourOS Latest using the command line.
Before we begin, you must have the following:
The first thing you need to do is update the system package tool and install the necessary dependencies for Filebrowser by running the following command in the terminal:
sudo pacman -Syu
sudo pacman -S nginx unzip
pacman -Syu
updates the system package tool with the latest packages and applies them as well.pacman -S nginx unzip
installs nginx, a free, open-source, high-performance HTTP server, and unzip, a utility for extracting compressed files in ZIP format.In this step, we will download, extract, and install Filebrowser. Run the following command to do so:
wget -O filebrowser.tar.gz https://github.com/filebrowser/filebrowser/releases/download/v2.24.2/linux-amd64-filebrowser.tar.gz
sudo tar -C /usr/local/bin/ -xvf filebrowser.tar.gz
sudo chmod +x /usr/local/bin/filebrowser
sudo rm filebrowser.tar.gz
wget
downloads the latest stable version of Filebrowser from the official website by specifying the URL https://github.com/filebrowser/filebrowser/releases/download/v2.24.2/linux-amd64-filebrowser.tar.gz
and saves it as filebrowser.tar.gz
.tar
extracts the contents of the filebrowser.tar.gz
file to the /usr/local/bin/
directory and sets its permissions with chmod
.rm
removes the downloaded filebrowser.tar.gz
file to save space.Now, we need to configure NGINX to redirect HTTP requests to Filebrowser. Run the following commands to do so:
sudo nano /etc/nginx/nginx.conf
This opens the nginx.conf
configuration file in the Nano text editor.
Under the http
block, add the following lines:
server {
listen 80 default_server;
server_name _;
location / {
proxy_pass http://127.0.0.1:8080;
}
}
listen 80 default_server;
enables NGINX to listen for HTTP requests on port 80.server_name _;
indicates a catch-all domain name, so all requests to the server without an explicit domain name will be redirected to Filebrowser.location / { proxy_pass http://127.0.0.1:8080; }
directs all requests to Filebrowser via the proxy pass.Save the file by pressing Ctrl+O
, then Ctrl+X
to exit the editor.
In this step, we will start the Filebrowser service using the following command:
filebrowser -r /home/user -p 8080 &
-r /home/user
specifies the root directory for Filebrowser. Replace /home/user
with the path to the folder you want to share.-p 8080
specifies the port number that Filebrowser will listen on.The &
at the end runs the command in the background, allowing you to continue using the terminal.
Open a web browser and navigate to http://localhost/
. You should see the Filebrowser login page.
Log in using your system username and password, and you should see the Filebrowser user interface.
Congratulations! You have successfully installed and configured Filebrowser on EndeavourOS Latest.
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!