FileShelter is an open-source web application that enables you to share large files safely and securely. It uses client-side encryption to protect your files while they are being uploaded, and server-side encryption to store them securely on the server. In this tutorial, we'll guide you through the process of installing FileShelter on Linux Mint Latest.
Before installing FileShelter, make sure that you have the following prerequisites:
First, we need to install some required packages for FileShelter. Open the terminal and run the following command:
sudo apt-get update
sudo apt-get install git php7.2-mbstring php7.2-zip php7.2-mysql php7.2-curl
The commands above will update the package list and install git, mbstring, zip, mysql, and curl PHP extensions.
Next, we need to clone the FileShelter repository from GitHub. To do this, run the following command:
cd /var/www/html
sudo git clone https://github.com/epoupon/fileshelter.git
The command above will change the directory to Apache's default web root directory and clone the FileShelter repository.
Before we can install and run FileShelter, we need to create a database and user for it. To do this, follow the steps below:
sudo mysql -u root -p
CREATE DATABASE fileshelter;
CREATE USER 'fileshelter'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON fileshelter.* TO 'fileshelter'@'localhost';
FLUSH PRIVILEGES;
Make sure to replace the password
above with a strong, secure password.
exit
Next, we need to configure FileShelter. Copy the .env.example
file to .env
:
cp /var/www/html/fileshelter/.env.example /var/www/html/fileshelter/.env
Edit the .env
file using your preferred text editor:
sudo nano /var/www/html/fileshelter/.env
Set the necessary parameters for the application:
APP_ENV=production
APP_KEY=base64:3qOF4YKkVNcMc7J1bCE+8J7VQtwdBafJn7fTccT2PDI=
APP_DEBUG=false
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=fileshelter
DB_USERNAME=fileshelter
DB_PASSWORD=password
SESSION_DRIVER=file
SESSION_LIFETIME=120
Make sure to replace the password
above with the one you set earlier for the MySQL user.
Next, we need to install the dependencies for FileShelter and run the database migrations. To do this, run the following commands:
cd /var/www/html/fileshelter
sudo composer install
php artisan key:generate
php artisan migrate
The commands above will change the directory to the FileShelter directory, install the dependencies, create a new application key, and run the database migrations.
Finally, we need to start the PHP development server to run FileShelter. To do this, run the following command:
php artisan serve --port=8000
The command above will start the PHP development server on port 8000.
That's it! You can now access FileShelter by opening your web browser and going to http://localhost:8000
.
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!