Gitea is an open-source, git-based platform for managing software projects. This tutorial will guide you through the process of installing Gitea on Windows 11.
Prerequisites
- A Windows 11 machine with administrative access
- Git installed
- SQLite or MariaDB installed (we will be using SQLite in this tutorial)
Step 1: Download Gitea
Go to https://gitea.io/en-us/downloads/ and download the latest Windows binary release of Gitea. Extract the downloaded file to a location of your choice.
Step 2: Setup Gitea Environment Variables
To run Gitea, you have to set up some environment variables. Here are the steps:
- Open the Start menu and search for "Environment Variables".
- Click on "Edit the system environment variables".
- In the System Properties window, click on the "Environment Variables" button.
- Under "System variables", click on the "New" button.
- Enter "GITEA_ROOT" as the variable name and the path to the Gitea installation directory as the variable value.
- Click on the "OK" button to save the changes.
Step 3: Initialize Gitea
In this step, we'll initialize Gitea and set up the database. Here are the steps:
- Open the command prompt with administrative access.
- Navigate to the Gitea installation directory using the
cd
command.
- Run the following command to initialize Gitea:
gitea.exe web
- Gitea will prompt you to set up the database. Select "SQLite3" as the database and fill in the required database details.
- Once the database is set up, Gitea will start running.
Step 4: Accessing Gitea Web Interface
To access the Gitea web interface, open your web browser and navigate to http://localhost:3000
. You should see the Gitea login page.
Conclusion
At this point, you should have successfully installed Gitea on your Windows 11 machine. Congratulations!
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!