Filebrowser is an open-source app that provides a web-based file manager. In this tutorial, we will teach you how to install Filebrowser on OpenBSD using the command line. Here's a step-by-step guide.
Open the terminal and log in as root.
Install Git using the command below.
pkg_add git
Create a new user that will run Filebrowser, let's call it filebrowser
.
adduser
Make the filebrowser
user the owner of /usr/local
.
chown -R filebrowser /usr/local
Switch to the filebrowser
user.
su - filebrowser
Clone the Filebrowser repository using Git.
git clone https://github.com/filebrowser/filebrowser.git
Change the current directory to the cloned Filebrowser repository.
cd filebrowser
Build Filebrowser using the make command.
GOOS=OpenBSD GOARCH=amd64 make build
You will now have a binary in the dist/
directory. Copy the binary to the /usr/local/bin/
directory.
cp dist/filebrowser /usr/local/bin/
Exit the filebrowser
user.
exit
rc.local
file to start Filebrowser on boot.vi /etc/rc.local
Add the following line to the file.
su filebrowser -c "/usr/local/bin/filebrowser -r /usr/local -p 8080 >/dev/null 2>&1 &"
Save and close the file.
reboot
http://localhost:8080
.Congratulations! You have successfully installed Filebrowser on OpenBSD.
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!