Skip to main content

Command Palette

Search for a command to run...

How to install local Gitlab CE on Ubuntu 20.04

Updated
1 min read
How to install local Gitlab CE on Ubuntu 20.04
M

Hey, I'm a postgraduate in Cyber Security with practical experience in Software Engineering and DevOps Operations. The top player on TryHackMe platform, multilingual speaker (Kazakh, Russian, English, Spanish, and Turkish), curios person, bookworm, geek, sports lover, and just a good guy to speak with!

Problem:

Need to install Gitlab Community Edition locally on Ubuntu 20.04 and access repository through http://localhost:80

Gitlab installation:

  1. Update repos:
    sudo apt-get update
    
  2. Install required packages:
    sudo apt-get install -y curl openssh-server ca-certificates
    
  3. Download and install Gitlab community edition:
    curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
    
  4. Set URL to access Gitlab:
    sudo EXTERNAL_URL=http://localhost:80/ apt-get install gitlab-ce
    
  5. To get temporary sign in password for root user:
    sudo cat /etc/gitlab/initial_root_password
    
  6. In UI set the administrative root password
  7. Login with root user and new password: login
  8. Set administrative account

Reference:

  1. Install self-managed GitLab
  2. Gitlab installation requirements

More from this blog

M

Maxat Akbanov's blog

259 posts

Postgraduate in Cyber Security with experience in Software Engineering and DevOps Operations.