File Sharing is an open-source web application that allows you to share files with others via a web interface. It is available on GitHub, and this tutorial will guide you through the steps required to install it on OpenBSD.
Before you start, you need to ensure that your OpenBSD server meets the following prerequisites:
git clone https://github.com/axeloz/filesharing.git
cd filesharing
composer install
.env.example
file to .env
:mv .env.example .env
Edit the .env
file and change the database settings to match your OpenBSD server configuration.
Generate a new application key using the following command:
php artisan key:generate
php artisan migrate
php artisan storage:link
chmod -R 777 storage
chmod -R 777 bootstrap/cache
sudo vi /etc/httpd/conf/extra/filesharing.conf
<VirtualHost *:80>
ServerName filesharing.local
ServerAlias www.filesharing.local
DocumentRoot /path/to/filesharing/public
<Directory /path/to/filesharing/public>
AllowOverride All
</Directory>
</VirtualHost>
Replace /path/to/filesharing
with the actual path to the File Sharing directory.
sudo systemctl restart httpd
http://filesharing.local
in your web browser.You have successfully installed File Sharing from GitHub on OpenBSD. You can now easily share files with others via a web interface.
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!