How to Install Tania on Fedora Server

Tania is an open-source farming management system that can help farmers, growers, and horticulturists manage their crops, livestock, and operations more efficiently. In this tutorial, we will show you how to install Tania on your Fedora server.

Requirements

Before we start, make sure that you have:

Step 1: Install Dependencies

First, we need to install some dependencies that Tania requires to run. Open a terminal window and run the following command:

sudo dnf install -y python3 python3-pip python3-devel mysql mysql-devel gcc virtualenvwrapper

Step 2: Create a Virtual Environment

We should install Tania in a virtual environment to ensure that it does not interfere with the system's other packages. Run the following command to create a virtual environment:

mkvirtualenv tania

This command will create a new virtual environment named "tania" and activate it automatically.

Step 3: Install Tania

To install Tania, we need to clone the Tania repository from GitHub. Run the following command to clone the repository:

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

Once the repository is cloned, navigate to the tania-core directory with the commands below.

cd tania-core

Now, let's install Tania with the following command in the tania-core directory.

pip3 install -r requirements.txt

Step 4: Configure Tania

To configure Tania, we need to create a new configuration file from the template file provided. Let's copy the template file with the following command:

cp .env.example .env

Now, let's edit the configuration file with the following command:

nano .env

You can replace the placeholders with your own values. For example, set the MYSQL_DATABASE value to tania and the MYSQL_USER value to tania. You can also set a random value for the SECRET_KEY variable.

MYSQL_DATABASE=tania
MYSQL_USER=tania
MYSQL_PASSWORD=StrongPassword
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
SECRET_KEY=SoME_rAnD0m_VaLuE

Step 5: Create a MySQL Database

Before we can run Tania, we need to create a MySQL database and grant necessary privileges to the database user. Run the following commands to create a database and a user for Tania:

mysql -u root -p
CREATE DATABASE tania;
CREATE USER 'tania'@'localhost' IDENTIFIED WITH mysql_native_password BY 'StrongPassword';
GRANT ALL PRIVILEGES ON tania.* TO 'tania'@'localhost';
FLUSH PRIVILEGES;
EXIT

Step 6: Run Migrations

We are almost there. Let's run the migration commands below to create the tables and fields required for the Tania system.

python manage.py migrate

Step 7: Create an Admin User

Finally, let's create an admin user account to access the Tania system with the following command.

python manage.py createsuperuser

You will be prompted for details about the admin account, such as username, email, and password. By default, the admin interface is available at http://your_server_ip:8000/admin. You can access the Tania interface on http://your_server_ip:8000.

Conclusion

Tania should now be installed on your Fedora server. You can use this farming management system to manage your crops, livestock, and operations in a more accessible way.

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!