Install and configure GitLab on Ubuntu 18.04 LTS

Login into the server as root user and update the Ubuntu repository.

apt-get update

Now install curl , ca-certificates, and postfix packages.

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

During Postfix installation a configuration screen may appear. Select ‘Internet Site’ and press enter. Use your server’s external DNS for ‘mail name’ and press enter.

Add the GitLab package repository.

curl | sudo bash

Install the GitLab package. Change to the URL at which you want to access your GitLab instance. GitLab will automatically request for a LetsEncrypt certificate

sudo EXTERNAL_URL="" apt-get install gitlab-ee

You’ll be redirected to a password reset screen on your first visit. Enter the password for the default administrator account and you will be redirected to the login screen. The default username is “root”

Post navigation

Alvin Jaison

Myself Alvin Jaison. I'm a DevOps Engineer by Profession; A Mountaineer by Passion. I started this website to share DevOps related posts. Post your suggestions as a comment. You can reach me @

Leave a Reply

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