How to Install Filebrowser on EndeavourOS Latest
In this tutorial, we will be guiding you through the process of installing Filebrowser on EndeavourOS Latest using the command line.
Prerequisites
Before we begin, you must have the following:
- EndeavourOS Latest installed on your system.
- A user account with administrative privileges.
- A stable internet connection.
Step 1: Install Dependencies
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 -Syuupdates the system package tool with the latest packages and applies them as well.pacman -S nginx unzipinstalls nginx, a free, open-source, high-performance HTTP server, and unzip, a utility for extracting compressed files in ZIP format.
Step 2: Download and Install Filebrowser
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
wgetdownloads the latest stable version of Filebrowser from the official website by specifying the URLhttps://github.com/filebrowser/filebrowser/releases/download/v2.24.2/linux-amd64-filebrowser.tar.gzand saves it asfilebrowser.tar.gz.tarextracts the contents of thefilebrowser.tar.gzfile to the/usr/local/bin/directory and sets its permissions withchmod.rmremoves the downloadedfilebrowser.tar.gzfile to save space.
Step 3: Configure NGINX for Filebrowser
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.
Step 4: Start Filebrowser
In this step, we will start the Filebrowser service using the following command:
filebrowser -r /home/user -p 8080 &
-r /home/userspecifies the root directory for Filebrowser. Replace/home/userwith the path to the folder you want to share.-p 8080specifies 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.
Step 5: Test Filebrowser
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.