How To install Gitlab On Linux Mint 20.2
To Install GitLab On Linux Mint 20.2
INTRODUCTION :
Gitlab is the devops platform, Delivered as a single application. this makes Gitlab unique and creates a streamlined software workflow, Unlocking your organization from the constraints of a pieced together toolchain. Learn how Gitlab offers unmatched visibility and higher levels of efficiency in a single application across the devops lifecycle.
INSTALLATION PROCEDURE :
Step 1 : Check the OS Version by using the below command
root@linuxhelp:~# lsb_release –a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.2
Release: 20.2
Codename: uma
Step 2 : Install openSSH and postfix configuration package by using the 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 0 not upgraded.
Need to get 1,889 kB of archives.
After this operation, 10.6 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 ncurses-term all 6.2-0ubuntu2 [249 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-sftp-server amd64 1:8.2p1-4ubuntu0.3 [51.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.3 [377 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 postfix amd64 3.4.13-0ubuntu1.2 [1,201 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 ssh-import-id all 5.10-0ubuntu1 [10.0 kB]
Fetched 1,889 kB in 2s (1,012 kB/s)
Preconfiguring packages ...
Selecting previously unselected package ncurses-term.
(Reading database ... 316242 files and directories currently installed.)
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service  /lib/systemd/system/ssh.service.
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up ssh-import-id (5.10-0ubuntu1) ...
Attempting to convert /etc/ssh/ssh_import_id
Setting up postfix (3.4.13-0ubuntu1.2) ...
Adding group `postfix' (GID 135) ...
Done.
Adding system user `postfix' (UID 127) ...
Adding new user `postfix' (UID 127) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 136) ...
Done.
setting myhostname: linuxhelp
setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: $myhostname, linuxhelp, localhost.localdomain, , localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
Running newaliases
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service  /lib/systemd/system/postfix.service.
Setting up ncurses-term (6.2-0ubuntu2) ...
Processing triggers for ufw (0.36-6ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for rsyslog (8.2001.0-1ubuntu1.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Step 3 : Download the gitlab Using the gitlab package link by using the below command
root@linuxhelp:~# wget --content-disposition
https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/bionic/gitlab-ce_13.2.1-ce.0_amd64.deb/download.deb
--2021-12-09 18:18:26-- https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/bionic/gitlab-ce_13.2.1-ce.0_amd64.deb/download.deb
Resolving packages.gitlab.com (packages.gitlab.com)... 104.18.27.123, 104.18.26.123, 2606:4700::6812:1a7b, ...
Connecting to packages.gitlab.com (packages.gitlab.com)|104.18.27.123|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://d20rj4el6vkp4c.cloudfront.net/7/8/ubuntu/package_files/74594.deb?t=1639054407_fc8112cab777eff6fffea2cf504bfc64933be39a [following]
--2021-12-09 18:18:27-- https://d20rj4el6vkp4c.cloudfront.net/7/8/ubuntu/package_files/74594.deb?t=1639054407_fc8112cab777eff6fffea2cf504bfc64933be39a
Resolving d20rj4el6vkp4c.cloudfront.net (d20rj4el6vkp4c.cloudfront.net)... 65.8.84.225, 65.8.84.193, 65.8.84.171, ...
Connecting to d20rj4el6vkp4c.cloudfront.net (d20rj4el6vkp4c.cloudfront.net)|65.8.84.225|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 759824170 (725M) [application/x-debian-package]
Saving to: ÔÇÿgitlab-ce_13.2.1-ce.0_amd64.debÔÇÖ
gitlab-ce_13.2.1-ce.0_amd64.deb 100%[=========================================================================================================================================>] 724.62M 11.2MB/s in 66s
2021-12-09 18:19:33 (10.9 MB/s) - ÔÇÿgitlab-ce_13.2.1-ce.0_amd64.debÔÇÖ saved [759824170/759824170]
Step 4 : Select the previous unselected package by using the below command
root@linuxhelp:~# dpkg -i gitlab-ce_13.2.1-ce.0_amd64.deb
Selecting previously unselected package gitlab-ce.
(Reading database ... 319283 files and directories currently installed.)
Preparing to unpack gitlab-ce_13.2.1-ce.0_amd64.deb ...
Unpacking gitlab-ce (13.2.1-ce.0) ...
Setting up gitlab-ce (13.2.1-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.
step 5 : Reconfiguring the gitlab by using the below command
root@linuxhelp:~# gitlab-ctl reconfigure
Starting Chef Infra Client, version 15.9.17
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- package (0.1.0)
- postgresql (0.1.0)
- redis (0.1.0)
- monitoring (0.1.0)
- registry (0.1.0)
- mattermost (0.1.0)
- consul (0.1.0)
- gitaly (0.1.0)
- praefect (0.1.0)
- nginx (0.1.0)
- runit (5.1.3)
- letsencrypt (0.1.0)
- acme (4.1.1)
- crond (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
links.conf ...
fs.protected_fifos = 1
fs.protected_hardlinks = 1
fs.protected_regular = 2
fs.protected_symlinks = 1
* Applying /etc/sysctl.conf ...
- execute sysctl -e --system
Recipe: gitlab::gitlab-workhorse
* runit_service[gitlab-workhorse] action restart (up to date)
Recipe: monitoring::node-exporter
* runit_service[node-exporter] action restart (up to date)
Recipe: monitoring::gitlab-exporter
* runit_service[gitlab-exporter] action restart (up to date)
Recipe: monitoring::redis-exporter
* runit_service[redis-exporter] action restart (up to date)
Recipe: monitoring::prometheus
* runit_service[prometheus] action restart (up to date)
* execute[reload prometheus] action run
- execute /opt/gitlab/bin/gitlab-ctl hup prometheus
Recipe: monitoring::alertmanager
* runit_service[alertmanager] action restart (up to date)
Recipe: monitoring::postgres-exporter
* runit_service[postgres-exporter] action restart (up to date)
Recipe: monitoring::grafana
* runit_service[grafana] action restart (up to date)
Running handlers:
Running handlers complete
Chef Infra Client finished, 564/1523 resources updated in 04 minutes 22 seconds
Warnings:
Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
gitlab Reconfigured!
With this the process of installing Gitlab on Linux Mint 20.2 has come's to an end.