How to install Tania on OpenSUSE

Tania is an open-source farming management system that allows you to manage your farm conveniently. Here are the steps to install Tania on OpenSUSE:

Step 1: Install Required Packages

Open a terminal and run the following command to install the required packages:

sudo zypper install git curl unzip nginx mariadb mariadb-client mariadb-tools php7 php7-fpm php7-mysqli php7-json php7-openssl php7-gd php7-mbstring php7-zip php7-curl

Step 2: Clone the Tania Repository

Next, clone the Tania repository using the following command:

git clone https://github.com/Tanibox/tania-core.git

This command will create a new directory named 'tania-core' in your current working directory.

Step 3: Install Composer

Composer is a dependency manager for PHP. You need to install Composer to manage Tania's dependencies. Run the following command to install Composer:

sudo curl -sS https://getcomposer.org/installer | php

Step 4: Install Dependencies

Navigate to the 'tania-core' directory and run the following command to install Tania's dependencies using Composer:

php composer.phar install

Step 5: Configure MySQL

Create a new MySQL database and user for Tania using the following commands:

mysql -u root -p

CREATE DATABASE tania;

GRANT ALL ON tania.* TO 'taniauser'@'localhost' IDENTIFIED BY 'password';

Replace 'taniauser' and 'password' with your desired username and password.

Step 6: Configure Tania

Copy the '.env.example' file to '.env' using the following command:

cp .env.example .env

Edit the '.env' file and update the MySQL database credentials:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=tania
DB_USERNAME=taniauser
DB_PASSWORD=password

Step 7: Install Tania

Run the following command to install Tania:

php artisan tania:install

This command will create the necessary tables in the MySQL database.

Step 8: Configure Nginx

Create a new Nginx configuration file for Tania using the following command:

sudo nano /etc/nginx/sites-available/tania.conf

Paste the following configuration into the file:

server {
    listen 80;
    server_name your-domain-name.com;
    root /path/to/tania-core/public;
    index index.php index.html;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass unix:/run/php-fpm7.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
    }
}

Replace 'your-domain-name.com' and '/path/to/tania-core' with your desired domain name and Tania installation directory.

Create a symbolic link to enable the new configuration:

sudo ln -s /etc/nginx/sites-available/tania.conf /etc/nginx/sites-enabled/

Finally, restart the Nginx server:

sudo systemctl restart nginx

That's it! You can now access the Tania web interface by visiting your domain name in a web browser.

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!