I was searching for an alternative for github to host on my own computer / server because i dont want to pay 5000$ for enterprise github.

So i searched a little bit and found GitLab. It looks similar to Github, but it is completely free.

I installed GitLab on my Ubuntu 12.04 which is currently hosted in my VMWare Fusion installation. YES, im using a Mac 🙂

GitLab has a very good how-to, but it didnt work for me at all. So i modified it a little bit.


I will guide you through some Steps. Copy the code from here.


1. Step: Preparing for GitLab

2. Step: Install GitLab

3. Step: Config GitLab


Lets start with the 1. Step and prepare our computer for GitLab.


As the echo tells you, log in with your password to mysql and execute the following.


2. Step: Install GitLab


So, as the echo tells you, modify your database.yml file with correct username and password. Also modify the gitlab.yml file and change the localhost to your computer name. See my example (Note: my computername in host is called ubuntu.vm):


3. Step: Config GitLab


Now, as again the echo tells you, modify the file and Change **YOUR_SERVER_IP** and **YOUR_SERVER_FQDN** to the IP address and fully-qualified domain name (Note: my is ubuntu.vm) of the host serving GitLab.

After that restart and login in.




Create your ssh key and put it in to your settings. Go to a folder and do the following. Im so in the folder ~/.ssh, but you can do it in any folder. But be sure to have a good folder structure :): It will ask you for a file name, choose one. Common is id_rsa. Im creating folders and give them names such as id_rsa_gitlab and so on.

to be able to push to repo, add the created ssh key to the ~/.ssh folder if you did not created it in these folder.



Install GitLab Repository on your Ubuntu
Tagged on:             

Leave a Reply


Get every new post on this blog delivered to your Inbox.

Join other followers:

Welcome Damir Kusar

Log in

Lost your password?
%d bloggers like this: