How to Install Jirafeau on Manjaro

Jirafeau is a file sharing web application that allows you to securely share files with others. This step-by-step tutorial will guide you through the process of installing Jirafeau on Manjaro.

Prerequisites

Step 1: Install Git

Open the terminal and type the following command:

sudo pacman -S git

This will install the Git version control system on your Manjaro.

Step 2: Clone the Jirafeau Git repository

Run the following command to clone the Jirafeau Git repository:

git clone https://gitlab.com/mojo42/Jirafeau.git

This will download the Jirafeau source code to your local machine.

Step 3: Install Apache, PHP, and MySQL or MariaDB

Use the following command to install Apache, PHP, and MySQL or MariaDB:

sudo pacman -S apache php php-apache mariadb

This will install the necessary software packages to run the Jirafeau web application.

Step 4: Configure Apache

Create a new Apache virtual host configuration file for Jirafeau:

sudo nano /etc/httpd/conf/extra/jirafeau.conf

Add the following lines to the configuration file:

<VirtualHost *:80>
  ServerAdmin webmaster@localhost
  DocumentRoot "/var/www/jirafeau"
  ServerName jirafeau.example.com

  <Directory "/var/www/jirafeau">
    DirectoryIndex index.php
    AllowOverride All
    Require all granted
  </Directory>

  ErrorLog "/var/log/httpd/jirafeau-error_log"
  CustomLog "/var/log/httpd/jirafeau-access_log" combined
</VirtualHost>

Save and close the file.

Step 5: Create a MySQL or MariaDB Database

Create a new database for Jirafeau to use:

sudo mysql -u root -p

Enter your MySQL or MariaDB root password and execute the following SQL statements:

CREATE DATABASE jirafeau;
CREATE USER 'jirafeauuser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON jirafeau.* TO 'jirafeauuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Replace yourpassword with a strong password of your choice.

Step 6: Configure Jirafeau

Copy the config.inc.php.dist file to config.inc.php:

cd Jirafeau
cp config.inc.php.dist config.inc.php

Edit the config.inc.php file with your preferred text editor:

sudo nano config.inc.php

Change the following lines to reflect your MySQL or MariaDB database settings:

define('DBHOST', 'localhost');
define('DBNAME', 'jirafeau');
define('DBUSER', 'jirafeauuser');
define('DBPASS', 'yourpassword');

Save and close the file.

Step 7: Set Permissions

Set the correct permissions on the Jirafeau directory:

sudo chown -R http:http /var/www/jirafeau
sudo chmod -R 755 /var/www/jirafeau

Step 8: Restart Apache

Restart the Apache web server to apply the changes:

sudo systemctl restart httpd

Step 9: Access Jirafeau

Open a web browser and navigate to http://jirafeau.example.com. You should see the Jirafeau login page.

Congratulations! You have successfully installed Jirafeau on Manjaro. You can now securely share files with your friends and colleagues.

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!