GitPrep is a simple and lightweight Git repository hosting solution with YAML and Markdown support. It allows you to quickly and easily manage your Git repositories on your own server. In this tutorial, we will show you how to install GitPrep on Ubuntu Server Latest.
Before we begin, you will need the following:
We recommend updating your Ubuntu system before installing GitPrep.
sudo apt-get update && sudo apt-get upgrade
GitPrep requires Git, Perl, and some Perl modules to work properly. Use the following command to install these packages:
sudo apt-get install git perl libgd-text-perl libgd-graph-perl libdbi-perl libdbd-sqlite3-perl liboauth-lite-perl libcache-memcached-perl libjson-any-perl libnet-oauth-perl libdigest-md5-perl libcrypt-passwdmd5-perl libtext-markdown-perl
Clone the GitPrep repository from GitHub:
cd /var/www
sudo git clone https://github.com/yuki-kimoto/gitprep.git
Copy the example configuration file to create your own:
cd gitprep/
sudo cp gitprep.conf.example gitprep.conf
Edit the configuration file with your preferred text editor:
sudo nano gitprep.conf
Set your administrator username and password, as well as other settings such as Git repositories directory, and permissions.
Save and close the file when done.
Create a new Apache virtual host configuration file for GitPrep:
sudo touch /etc/apache2/sites-available/gitprep.conf
sudo nano /etc/apache2/sites-available/gitprep.conf
Copy and paste the following configuration into the file:
<VirtualHost *:80>
ServerName your_domain_name.com
DocumentRoot /var/www/gitprep/
<Directory /var/www/gitprep/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/gitprep_error.log
CustomLog ${APACHE_LOG_DIR}/gitprep_access.log combined
</VirtualHost>
Replace your_domain_name.com
with your domain name or server IP address.
Save and close the file when done.
Enable Apache rewrite modules required for GitPrep to work:
sudo a2enmod rewrite
Enable the new GitPrep virtual host:
sudo a2ensite gitprep.conf
Restart Apache to apply changes:
sudo service apache2 restart
Access GitPrep via your web browser by visiting http://your_domain_name.com
or http://your_server_IP_address
.
You will be prompted to enter your administrator username and password.
Congratulations, you have successfully installed GitPrep on Ubuntu Server Latest!
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!