Gitblit is a Git-based source control management system that is very lightweight and user friendly. In this tutorial, we will show you how to install Gitblit on OpenSUSE Latest.
To install Gitblit on OpenSUSE, you will need:
First, download Gitblit from the following link: https://github.com/gitblit/gitblit/releases/tag/v1.9.0
Once downloaded, extract the Gitblit archive to a directory of your choice.
$ tar -xf gitblit-1.9.0.tar.gz
Next, set up Gitblit by creating a new user:
$ sudo useradd -s /bin/bash -m gitblit
$ sudo passwd gitblit
<Set a password for the gitblit user>
Then, move the extracted Gitblit files to the gitblit user's home directory:
$ sudo mv gitblit-1.9.0/* /home/gitblit/
Finally, make sure the gitblit user has read and write permissions on the Gitblit files:
$ sudo chown gitblit:gitblit /home/gitblit -R
Create a new configuration file for Gitblit:
$ sudo cp /home/gitblit/data/default.properties /home/gitblit/data/custom.properties
$ sudo nano /home/gitblit/data/custom.properties
In the custom.properties file, change the following settings:
server.httpBind = 0.0.0.0 # Bind to all available interfaces
server.port = 8080 # Use port 8080 (or any other port you prefer)
server.redirectToHttpsPort = -1 # Disable HTTPS redirection
git.repositoriesFolder = /srv/git # Set the repository storage directory to /srv/git
Save and close the custom.properties file.
To start Gitblit, run the following command:
$ sudo -u gitblit /home/gitblit/gitblit start
You can now access Gitblit by opening a web browser and navigating to:
http://<IP_address>:8080
In this tutorial, we have shown you how to install Gitblit on OpenSUSE Latest. You can now start using Gitblit as your Git-based source control management system.
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!