How to install Gitlab – 10.7.0 on Ubuntu – 18.04
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

Enter the system 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

Assign a password for your admin account

Now you can access using the admin credentials.

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

version of Gitlab

with this, the method to install Gitlab &ndash 10.7.0 on Ubuntu &ndash 18.04 comes to an end.
Comments ( 0 )
No comments available