Alternative to eXtplorer
File Browser Installation and Configuration Guide
This guide provides step-by-step instructions to install and configure File Browser as an alternative to eXtplorer. It covers installation, service configuration, firewall settings, and troubleshooting.
Installation
Step 1: Update System Packages
Run the following command to update and upgrade your system packages:
sudo apt update && sudo apt upgrade -y
Step 2: Install File Browser
Use the following command to download and install File Browser:
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
Step 3: Verify Installation
Check if File Browser is installed correctly:
filebrowser version
Configuration
Step 4: Set Up the Working Directory
Create the necessary directory and assign proper permissions:
sudo mkdir -p /var/www
sudo chmod 755 /var/www
sudo chown $(whoami):$(whoami) /var/www
Step 5: Start File Browser Manually (For Testing)
Run the following command to start File Browser:
filebrowser -r /var/www/ -d /var/www/filebrowser.db -a 0.0.0.0 -p 8081
If it works correctly, press Ctrl+C to stop and proceed with configuring it as a service.
Running File Browser as a Service
Step 6: Create a Systemd Service File
Open the systemd service configuration file:
sudo nano /etc/systemd/system/filebrowser.service
Add the following content:
[Unit]
Description=File Browser
After=network.target
[Service]
ExecStart=/usr/local/bin/filebrowser -r /var/www/ -d /var/www/filebrowser.db -a 0.0.0.0 -p 8081
Restart=always
User=root
[Install]
WantedBy=multi-user.target
Step 7: Enable and Start the Service
Run the following commands to apply and start the service:
sudo systemctl daemon-reload
sudo systemctl enable filebrowser
sudo systemctl start filebrowser
sudo systemctl status filebrowser
You should see the status as active (running).
Firewall Configuration
Step 8: Check Firewall Status
sudo ufw status
Step 9: Allow Access from Specific IPs
Replace the IP addresses with your own:
sudo ufw allow from 111.222.33.444 to any port 8081
Step 10: Reload Firewall Rules
sudo ufw reload
Troubleshooting
Restarting and Stopping File Browser Service
sudo systemctl restart filebrowser
sudo systemctl stop filebrowser
sudo journalctl -u filebrowser
sudo systemctl restart filebrowser
Following these steps, you will have a fully functional File Browser instance running as an alternative to eXtplorer. Ensure you configure the firewall settings properly for secure access. If you encounter issues, refer to the logs for debugging.