• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Gitlab on Ubuntu 20.4.1

  • 00:44 lsb_release -a
  • 01:16 apt-get install openssh-server postfix -y
  • 03:10 dpkg -i gitlab-ce_13.5.4-ce.0_amd64.deb
  • 03:51 nano /etc/gitlab/gitlab.rb
  • 04:43 gitlab-ctl reconfigure
{{postValue.id}}

To Install Gitlab on Ubuntu 20.4.1

Introduction:

GitLab is a web-based Git repository that provides free open and private repositories, issue-following capabilities, and wikis. It is a complete DevOps platform that enables professionals to perform all the tasks in a project—from project planning and source code management to monitoring and security.

Installation Process:

Run lsb_release command to check the installed version of OS as follows.

root@linuxhelp:~#  lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal
Install Required packages to install Gitlab:
The packages are openssh-server and postfix mail server.

To install packages type below command.

root@linuxhelp:~# apt-get install openssh-server postfix -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ncurses-term openssh-sftp-server ssh-import-id
Suggested packages:
  molly-guard monkeysphere ssh-askpass procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb postfix-sqlite
  sasl2-bin | dovecot-common resolvconf postfix-cdb postfix-doc
The following NEW packages will be installed:
  ncurses-term openssh-server openssh-sftp-server postfix ssh-import-id
0 upgraded, 5 newly installed, 0 to remove and 181 not upgraded.
Need to get 1,886 kB of archives.
After this operation, 10.6 MB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu focal/main amd64 ncurses-term all 6.2-0ubuntu2 [249 kB]
………………………………………………………….
…………………………………………………………….

After completing the above step Install Gitlab by using below command:

root@linuxhelp:/home/netaxis/Desktop# dpkg -i gitlab-ce_13.5.4-ce.0_amd64.deb 
Selecting previously unselected package gitlab-ce.
(Reading database ... 221184 files and directories currently installed.)
Preparing to unpack gitlab-ce_13.5.4-ce.0_amd64.deb ...
Unpacking gitlab-ce (13.5.4-ce.0) ...
Setting up gitlab-ce (13.5.4-ce.0) ...
It looks like GitLab has not been configured yet; skipping the upgrade script.

       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.
       _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
  
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
  sudo gitlab-ctl reconfigure

Once completed goto gitlab configuration file by using below command:

root@linuxhelp:/home/netaxis/Desktop# nano /etc/gitlab/gitlab.rb

After completed reconfigure the gitlab by using below command:

root@linuxhelp:/home/netaxis/Desktop# gitlab-ctl reconfigure

After completed the reconfigure goto browser type gitlab ip address in address bar. It will open gitlab page and ask to set password SNAP1 After setting password it will open the page SNAP2

The Installation process of Gitlab on Ubuntu comes to end.

Tags:
noah
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is the command used to install the dependency packages?

A

Type a below command to install dependency packages
#apt-get install openssh-server postfix -y

Q

How to download the gitlab debian package?

A

By using below link we can dowload gitlab debian packages
#https://packages.gitlab.com/gitlab/gitlab-ce

Q

What is the command to install debian package

A

By using below command we can install debian package
#dpkg -i

Q

What is the command to reconfigure gitlab?

A

By using below command we can reconfigure the gitlab
#gitlab-ctl reconfigure

Q

Does GitLab provide visibility levels for projects?

A

GitLab has three different visibility levels for each project:
Public, internal, and private.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.