In this tutorial, we will be installing FileShelter on Manjaro via Github. FileShelter is an open-source file sharing platform written in PHP.
Before starting, you will need these prerequisites:
Before installing FileShelter, we need to make sure we have all the dependencies installed. Run the following command to install PHP and Composer.
sudo pacman -S php composer
We will clone the FileShelter repository from Github by running the following command in the terminal.
git clone https://github.com/epoupon/fileshelter.git
After cloning the repository, navigate to the FileShelter directory using the following command.
cd fileshelter
Next, we need to install all the required dependencies using Composer. Run the following command to install the required dependencies.
composer install
In the next step, we need to configure FileShelter to work with our environment. First, create a copy of the .env.example file and name it .env.
cp .env.example .env
Next, we need to configure the MySQL database. Open .env file using nano or vim editor and change the following database credentials.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=fileshelter
DB_USERNAME=root
DB_PASSWORD=
Save and close the file once you've made the changes.
After configuring the database, we need to run migrations to create the required tables. Run the following command in the terminal.
php artisan migrate
After completing all the above steps, we are ready to run the FileShelter application on our local machine. Run the following command to start the application.
php artisan serve
Now, open a web browser and type the following address in the search bar.
http://localhost:8000/
You should now see the FileShelter dashboard, where you can upload, download, and share files.
Congratulations! You have successfully installed FileShelter on Manjaro via Github.
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!