How to Install and Configure GitLab on Ubuntu 18.04 LTS

GitLab is an open source GIT vault chief dependent on Rails and created by GitLab Inc. It is an online GIT archive administrator that permits your group to deal with code, perform include demands, track bugs, and test and actualize applications. GitLab gives highlights, for example, a wiki, issue following, code audits, movement takes care of, and combine the executives. It can have numerous undertakings.

 In this post, We will install and setup the GitLab server on ubuntu 18.04.

Step 1: Update and upgrade the System

First you need to update the Ubuntu current repository and packages by using the following command.  

$ sudo apt-get update && sudo apt-get upgrade -y

Step 2: Installing Dependencies

Now you need to install the git-lab dependencies by using the following command.

$ sudo apt-get install curl postfix  openssh-server ca-certificates -y

Step 3: Adding Repository

Here we need to install the GitLab server by following the given command, first we need to add the repository.

$ curl -sS | sudo bash 

Step 4: Installing GitLab

Now we are ready to install GitLab packages by using the following command.

$ sudo apt-get install gitlab-ce -y 

Step 5: Configuration of GitLab

Before use the GitLab, We need to make changes in GitLab configuration for access url, use the following steps.

$ sudo nano /etc/gitlab/gitlab.rb 

Here you need to update the your server local ip address like this.

Save and close the configuration file and Run the accompanying order to reconfigure Gitlab:

$ sudo gitlab-ctl reconfigure 

Step 6: Port Testing

Once the process is completed So then we need to verify the running to verify GitLab service and access, Use the following command.

$ netstat -plntu 

Step 7: UFW Rules

Its time add the firewall rule to open the port 80 to access through browser, Use the following command for that.

$ sudo ufw status
$ sudo ufw allow 80

Step 8: GitLab Web interface

Now you can open the gitLab on your browser http://IP_Address and You need to update the password as well.

After this you will get the login web page to gitLab web page, By default your username is root with your updated password.

Finally now we have got the GitLab dashboard, Here You can create a project and add the user to work on it.


You should now have a working GitLab occurrence facilitated on your own worker. You can start to import or make new ventures and arrange the fitting degree of access for your group. GitLab is consistently adding highlights and making updates to their foundation, so make certain to look at the venture’s landing page to keep awake to-date on any enhancements or significant takes note.

How to Install and Configure GitLab on Ubuntu 18.04 LTS

5 thoughts on “How to Install and Configure GitLab on Ubuntu 18.04 LTS

  1. Thаnks fߋr ones marvelous posting! I quite enjoyed reading іt, you are
    a ցreat author.I will ensure that I bookmark your blog and
    may come back in the future. I want to encourage one to continue
    your great writing, have a nice holiday weekend!

  2. Awеsome things herе. I’m very һappy to look your article.
    Thanks so much and I’m һaving ɑ look ahead to touch yoᥙ.
    Wilⅼ you kindly drop mе a e-mail?

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top