How to Install Chibisafe on MXLinux Latest

Chibisafe is a simple file-hosting website where you can upload and share files with others. If you are using MXLinux Latest and want to install Chibisafe, follow the steps in this tutorial.

Prerequisites:

Steps:

  1. Open the Terminal.

    Open the Terminal by pressing Ctrl+Alt+T or by clicking on the Terminal icon in the application launcher.

  2. Install the required dependencies:

    Use the following command to install the required dependencies that include Apache, PHP, and MariaDB.

    sudo apt-get install apache2 mariadb-server mariadb-client php libapache2-mod-php php-mysql
    

    During the installation, you may be prompted to enter your password as sudo privileges are required to complete the installation.

  3. Download and extract Chibisafe:

    To download Chibisafe, use the following command:

    wget https://github.com/arkem/pyChibisafe/archive/master.zip
    

    Once the download process completes, extract the downloaded file using the following command:

    unzip master.zip
    
  4. Move the extracted files to the webserver directory:

    Use the following command to move the extracted files to the /var/www/html/ directory.

    sudo mv pyChibisafe-master/* /var/www/html/
    

    If it prompts for confirmation, enter y.

  5. Configure MariaDB for Chibisafe:

    The default configuration of MariaDB is not sufficient for running Chibisafe. Therefore, you need to configure it.

    To configure MariaDB, enter the following command in the Terminal:

    sudo mysql_secure_installation
    

    Follow the on-screen instructions and answer the questions as per your preferences. If you are unsure what to set, choose the default option by pressing the Enter key.

  6. Create a new database for Chibisafe:

    To create a new database for Chibisafe, first, log in to the MariaDB console using the following command:

    sudo mysql -u root -p
    

    It will ask for your password. Enter the password you set during the MariaDB configuration.

    Once you are in the MariaDB console, use the following command to create a new database for Chibisafe:

    CREATE DATABASE chibisafe;
    

    If it executes successfully, it will show a message like Query OK, 1 row affected.

  7. Create a new user and grant privileges to the database:

    To create a new user for Chibisafe and grant privileges to the database, use the following command:

    GRANT ALL PRIVILEGES ON chibisafe.* TO ‘newuser’@‘localhost’ IDENTIFIED BY ‘password’;
    

    Replace newuser with your desired username and password with your desired password. It is recommended to use a strong password.

    Once you have executed this command, use the following command to refresh the privileges:

    FLUSH PRIVILEGES;
    
  8. Configure Chibisafe:

    To configure Chibisafe, create a new file named config.ini in the Chibisafe directory using the following command:

    sudo nano /var/www/html/inc/config.ini
    

    Add the following lines to the file:

    [database]
    engine=mysql
    host=localhost
    user=newuser
    pass=password
    name=chibisafe
    

    Replace newuser and password with the username and password you created earlier for the database.

    Once you have entered the credentials, save and close the file by pressing Ctrl + X, then Y, and then Enter.

  9. Restart the Apache server:

    To restart the Apache server, enter the following command in the Terminal:

    sudo systemctl restart apache2
    
  10. Access Chibisafe:

Now that you have installed and configured Chibisafe, you can access it using your web browser. Type http://localhost in your web browser's address bar and press Enter. If everything has been set up correctly, you should see the Chibisafe home screen.

Congratulations! You have successfully installed and configured Chibisafe on MXLinux Latest. You can now upload and share files using Chibisafe.

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!