How To Install a GitLab Server in 20 Minutes

Find out more

How To Install a GitLab Server in 20 Minutes

What’s gitLab why I should install it?

Git-lab is a complete devops tool in a single application. Inside it we can find lots of coll stuff,
from project planning, source code management, CI/CD, monitoring and security tools to help us build and maintain our applications.


To follow along you will need to:

  1. Download and Install VirtualBox (out of scope of this tutorial)
  2. Download a copy of Ubuntu 18.04 server from the official website


Install GitLab Server:

  • Create a new Virtual Machine
  • Install Ubuntu on the new virtual Machine
  • Install GitLab on Ubuntu –
  • Set the Virtual machine to use bridged network
  • Find the machine IP address and setup the hosts file

Install GitLab on Ubuntu Server:

sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates

Optional Install Postfix
Next, install Postfix to send notification emails. If you want to use another solution to send emails please skip this step and configure an external SMTP server after GitLab has been installed.

sudo apt-get install -y postfix

The Git Lab Package Repository Installation

curl | sudo bash

Next, install the GitLab package. Change to the URL at which you want to access your GitLab instance. Installation will automatically configure and start GitLab at that URL.

For https:// URLs GitLab will automatically request a certificate with Let’s Encrypt, which requires inbound HTTP access and a valid hostname. You can also use your own certificate or just use http://.

sudo EXTERNAL_URL="https://gitlab.test" apt-get install gitlab-ee

Visit gitlab.test in the browser.

GitLab installation Cover

About Me


I am a senior entrepreneur, full-stack php developer, Laravel, WordPress, Magento experience with knowledge responsive web design, frameworks and SEO techniques. Several years of experience as CAD Designer and website-eCommerce administrator with digital marketing experience. Analytical mindset with problem solving skills. Productive, self motivated and well organised. I’m a bilingual Italian-English with a strong personality, very flexible, and enthusiastic to work in other Cities or Countries. Loving knowledge and new challenges if there is anything that I don’t know how to do, I’m always likely to learn it. I put passion and care in everything I do. I’ve a strong sense of responsibility, ethics and duty. I’m a friendly, enthusiastic open minded person, always happy to work in a team but also capable of working on my own.

Related Posts

PHP Object Oriented Crash Course Image

Object Oriented PHP – Crash Course

GitLab installation Cover

How To Install a GitLab Server in 20 Minutes

Mobile application development with flutter

Build Mobile Apps With Flutter


Laravel 5.7 Multi-language | Complete guide

Dashboard Virtualmin

How to build your own web hosting server using Virtualmin, Ubuntu 18.04 and Vitualbox in 40 Minutes.

git command line

How to setup a basic project using Git

Need Help?

Just get in touch! I'm always happy to help.

Get professional advice today on a wide range of solutions for your business.

Contact Fabio