• 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 – 10.7.0 on Ubuntu – 18.04

{{postValue.id}}

To install Gitlab &ndash 10.7.0 on Ubuntu &ndash 18.04

GitLab is an open source application used to code, test and deploys code together. It provides the Git repository management with access controls, code reviews, issue tracking, and activity feeds.

Installation

Update the system repository

root@linuxhelp1:~# apt-get update
Get:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease [235 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease      
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease     
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease        
Get:5 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,021 kB]                                                    
Get:6 http://in.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1,009 kB]                                                     
Get:7 http://in.archive.ubuntu.com/ubuntu bionic/main Translation-en [518 kB]                                                      
Get:8 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,577 kB]                                                
Get:9 http://in.archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8,536 kB]                                                 
Get:10 http://in.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Fetched 20.2 MB in 1min 5s (310 kB/s)                      
Reading package lists... Done

Prerequisites packages

Openssh-server, ca-certificates, postfix, and curl

Install the prerequisites packages using the following commands

root@linuxhelp1:~# apt-get install  curl openssh-server ca-certificates postfix -y
Reading package lists... Done
Building dependency tree      
Reading state information... Done
openssh-server is already the newest version (1:7.6p1-4).

The following packages were automatically installed and are no longer required:

apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap

Use ' sudo apt autoremove'  to remove them.

Suggested packages:

  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:
.
.
Postfix configuration values, see postconf(1).
After modifying main.cf, be sure to run ' service postfix reload' .
Running newaliases
Processing triggers for ca-certificates (20180409) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed  done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu6) ...
Processing triggers for rsyslog (8.16.0-1ubuntu10) ...
Processing triggers for ufw (0.35-5) ...
Processing triggers for libc-bin (2.27-0ubuntu2) ...

Here we have to adding a new repository for install a Gitlab application
root@linuxhelp1:~# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5933    0  5933    0     0   2834      0 --:--:--  0:00:02 --:--:--  2834
Detected operating system as Ubuntu/bionic.
Checking for curl...
Detected curl...
Checking for gpg...
Detected gpg...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/gitlab_gitlab-ce.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.

The repository is setup! You can now install packages by adding a repository, then install a Gitlab application

root@linuxhelp1:~# EXTERNAL_URL=" http://www.linuxhelp1.com"  apt-get install gitlab-ce
Reading package lists... Done
Building dependency tree      
Reading state information... Done

The following packages were automatically installed and are no longer required:

apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap

Use ' sudo apt autoremove'  to remove them.
The following NEW packages will be installed:

gitlab-ce
0 upgraded, 1 newly installed, 0 to remove and 426 not upgraded.
Need to get 408 MB of archives.
.
Here to choose the mail configuration 

Choose the type of mail configuration for postfix
internet_site

Enter the system mail name
mail_name.


              _______ __  __            __
         /    ____     (_)   /_/     /     ____  _/ /_
     /  /      __/ /        __/    /     /   __  `/ __
  /  /     _/   / /     /  _/   /  ___/ / _/  / /_/ /
  \____/ _/\__/_____/\__,_/     _.___/
  


Thank you for installing GitLab!
GitLab should be available at http://www.linuxhelp1.com

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md


The installation is complete now you can access the gitlab using the domian name eg): http://www.linuxhelp1.com
web_config

Assign a password for your admin account
login_gitlab

Now you can access using the admin credentials.

signin

After the successful login, you will see the Welcome page of Gitlab application as shown below.
welcome_page_gitlab

version of Gitlab
edition_name

with this, the method to install Gitlab &ndash 10.7.0 on Ubuntu &ndash 18.04 comes to an end.

Tags:
sebastian
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What are the main terms using the Gitlab?

A

GitLab is an open source application used to code, test and deploys code together. It provides the Git repository management with access controls, code reviews, issue tracking, and activity feeds.

Q

How to get the official documentation for the Gitlab?

A

For accessing the official documentation of the Gitlab, use the following link as given below "https://docs.gitlab.com/"

Q

What are the Prerequisites packages for using the Gitlab?

A

The packages are required for Gitlab as given below,

"OpenSSH-server

ca-certificates

postfix, and cur"

Q

The Docker executor gets timeout when building Java project in Gitlab?

A

This most likely happens, because of the broken AUFS storage driver: Java process hangs on inside container. The best solution is to change the storage driver to either OverlayFS (faster) or DeviceMapper (slower).

Check this article about configuring and running Docker or this article about control and configure with systemd

Q

I use GitHub. What can GitLab offer me?

A

GitHub has done a lot for the Git space. Great company.
For the basic source control management, we have some key differences:

Scales better with multiple application servers- Run GitLab in a cluster
Multiple authentication levels
Group level milestones
4 times more cost effective

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.