Jirafeau is a file sharing service that allows users to share files securely and easily over the internet. In this tutorial, we will guide you through the process of installing Jirafeau on Kali Linux.
Before we can install Jirafeau, we need to make sure that our operating system has all the necessary dependencies installed. To do this, we'll use the following command:
sudo apt-get update
sudo apt-get install nginx php-fpm php-mysql mariadb-server wget unzip php-zip
Now that we have all the necessary dependencies installed, we can proceed to download and install Jirafeau. Follow these steps:
wget https://gitlab.com/mojo42/Jirafeau/-/archive/master/Jirafeau-master.zip
unzip Jirafeau-master.zip
sudo mv Jirafeau-master /var/www/html/jirafeau
sudo chown -R www-data:www-data /var/www/html/jirafeau
Jirafeau requires a database to store user and file information. In this step, we'll create a database for Jirafeau and set up the necessary permissions.
sudo mysql -u root -p
CREATE DATABASE jirafeau;
CREATE USER 'jirafeau_user'@'localhost' IDENTIFIED BY 'jirafeau_password';
GRANT ALL PRIVILEGES ON jirafeau.* TO 'jirafeau_user'@'localhost';
FLUSH PRIVILEGES;
exit
In this step, we'll configure Nginx to serve Jirafeau from our web root directory.
sudo nano /etc/nginx/sites-available/default
server {
listen 80;
server_name your_domain.com;
root /var/www/html/jirafeau;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
log_not_found off;
access_log off;
allow all;
}
}
Replace your_domain.com
with your actual domain name, if you have one. Leave it as localhost
if you don't have a domain.
Save and exit the file by pressing Ctrl + X
, then Y
, then Enter
.
Restart Nginx by running the following command:
sudo service nginx restart
Now that we have Jirafeau installed and our web server configured, we need to set up the application itself.
Open your web browser and navigate to http://your_domain.com/jirafeau
(replace your_domain.com
with your actual domain name or localhost
).
You should see the Jirafeau setup wizard.
Follow the steps to set up your Jirafeau installation, entering the MariaDB database details that you set up earlier.
Once you've completed the setup, you'll be taken to the Jirafeau homepage.
In this tutorial, we showed you how to install Jirafeau and set it up on Kali Linux, along with the necessary dependencies and web server configuration. With Jirafeau, you can easily and securely share files over the internet. Enjoy!
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!