Professional Documents
Culture Documents
CrownCloud - Wiki
apt update
apt upgrade
At the time of making this guide, the GitLab package is not available for Debian 11. You will need to
edit the GitLab source file and replace the Debian 11 (Bullseye) code name with Debian 10 (Buster),
nano /etc/apt/sources.list.d/gitlab_gitlab-ce.list
Save and close the file and update the repository using the below command,
apt-get update
Install GitLab CE
https://wiki.crowncloud.net/?How_to_Install_Gitlab_On_Debian_12 1/5
11/24/23, 3:48 PM CrownCloud Wiki - How To Install Gitlab On Debian 12
Output:
CrownCloud - Wiki
root@server:~# apt-get install gitlab-ce -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
gitlab-ce
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,323 MB of archives.
After this operation, 3,164 MB of additional disk space will be used.
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/debian bullseye/main amd64 gitlab-ce amd64 16.0.4-ce.
Fetched 1,323 MB in 43s (30.7 MB/s)
Selecting previously unselected package gitlab-ce.
(Reading database ... 28668 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_16.0.4-ce.0_amd64.deb ...
Unpacking gitlab-ce (16.0.4-ce.0) ...
Setting up gitlab-ce (16.0.4-ce.0) ...
It looks like GitLab has not been configured yet; skipping the upgrade script.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=16-0
Configure GitLab
https://wiki.crowncloud.net/?How_to_Install_Gitlab_On_Debian_12 2/5
11/24/23, 3:48 PM CrownCloud Wiki - How To Install Gitlab On Debian 12
Once the installation is complete, we will configure the GitLab to our requirements. Below are the
CrownCloud
edits - Wiki
that can be done,
nano /etc/gitlab/gitlab.rb
external_url 'https://Your_Domain_Name'
gitlab-ctl reconfigure
Output:
Recipe: registry::enable
* runit_service[registry] action restart (up to date)
Recipe: nginx::enable
* execute[reload nginx] action run
- execute gitlab-ctl hup nginx
Recipe: letsencrypt::enable
* ruby_block[display_le_message] action run
- execute the ruby block display_le_message
Recipe: monitoring::grafana
* runit_service[grafana] action restart (up to date)
Running handlers:
Running handlers complete
Chef Infra Client finished, 26/861 resources updated in 02 minutes 08 seconds
Warnings:
Let's Encrypt is enabled, but external_url is using http
gitlab Reconfigured!
cat /etc/git/initial_root_password
https://wiki.crowncloud.net/?How_to_Install_Gitlab_On_Debian_12 3/5
11/24/23, 3:48 PM CrownCloud Wiki - How To Install Gitlab On Debian 12
Output:
CrownCloud - Wiki
root@server:~# cat /etc/gitlab/initial_root_password
# WARNING: This value is valid only in the following conditions
# 1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rail
# 2. Password hasn't been changed manually, either via UI or via command line.
#
# If the password shown here doesn't work, you must reset the admin password following https://docs.g
Password: sfC7QoruHZwNUt/WCQtyDa0uFldUUV+vdGBlitq/Bww=
# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
Open a browser and type the following address and You will be redirected to the GitLab login page,
https://Your_Domain_Name
https://wiki.crowncloud.net/?How_to_Install_Gitlab_On_Debian_12 4/5
11/24/23, 3:48 PM CrownCloud Wiki - How To Install Gitlab On Debian 12
CrownCloud - Wiki
Done.
In this guide,
Install GitLab CE
Configure GitLab
CrownCloud
Get started at $5/month!
Use Code:
WELCOME
https://wiki.crowncloud.net/?How_to_Install_Gitlab_On_Debian_12 5/5