In this tutorial, we will guide you through the process of installing FileShelter on NetBSD.
Before we get started, make sure that you have the following installed on your system:
FileShelter requires some dependencies to be installed on your system before we can build and install it. To install them, run the following command:
pkgin install ocaml opam sqlite3
Next, we need to initialize OPAM:
opam init
Follow the prompts to complete the initialization process.
Now that we have the dependencies installed on our system, we can proceed with cloning and building FileShelter from its GitHub repository.
git clone https://github.com/epoupon/fileshelter.git
cd fileshelter
sed -i 's/cc-opt = /cc-opt = -I\/usr\/pkg\/include /g' Makefile
make
fs
and fssync
. We need to copy them to a directory that is accessible to all users.sudo cp fs /usr/local/bin/
sudo cp fssync /usr/local/bin/
Now that we have FileShelter installed on our system, we need to configure it to use our desired settings.
cp config.ml.example config.ml
Note: You should configure at least the following options:
fileroot
: This is the directory where the files will be stored.signup
: Change this to false if you don't want to allow users to sign up on their own.admin_email
: This is the email address where notifications will be sent.We are now ready to start FileShelter on our system.
fs
[2022-01-01T10:00:00Z INFO fileshelter] Listening for HTTP requests on http://0.0.0.0:8080
--port
option.For example, to start FileShelter on port 9090, run the following command:
fs --port 9090
That's it! You have successfully installed and configured FileShelter on NetBSD. Happy sharing!
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!