GitLab minimum requirement system
- 4 cores for your CPU
- 4GB of RAM for memory
First login to the root user access in command line.
Step 1 : Installing Dependencies on linux ubuntu
sudo apt update
sudo apt install ca-certificates curl openssh-server postfix tzdata perl
Step 2 : Installing GitLab
First, move into the /opt directory:
Download the installation script:
curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
Then permission of script.deb.sh file
cd /opt
chmod 777 script.deb.sh
bash script.deb.sh
This package installation completion, then you can install the GitLab application.
sudo apt install gitlab-ce
Installation in a may take some time to complete.
Step 3 : Check Firewall
Firewall status check command
ufw status
Your firewall is disabled then no problem. In case firewall is active then please allow rules apply some ports.
Eg;- sudo ufw allow https
Step 4 : Editing the GitLab Configuration File
sudo nano /etc/gitlab/gitlab.rb
Search external_url configuration line. This line in replaced your domain name.
Eg:- https://domain-name
![gitlab.rb file gitlab.rb file](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyGtW0gf2x7LTDqm3U-egPkg6XqKKR8aBxMQ1dmaH4gUPbO7cdylEWVjJjWhxU6lcGU7JbhmtM8htgrZlNKCXR4nl0p8jnE8H7jbuuSEr6is-cZLLZZ1ktxZ4vPtcz1hTjeUPYs8pNv7DGqRnsbTVoGNbC24gYxQRASsgJWVMjDJ4Ui3iV7XFYfXX2/w550-h160/ss4.jpg)
Also, you can configured mail notification chages on smtp settings.
Run following command reconfigure GitLab:
sudo gitlab-ctl reconfigure
Step 5 : Browser in check your domain URL
https://domain-name
Login Page Gitlab
![Gitlab Login page Gitlab Login page](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCCPmu4TNkblmZD8etW_XJt77T1ydANp3PQHJaXwue5KD6ISDLvubjDxgw9wY90IWeEG4IOKyfWAewNc8Kfykld99aKZGwtrs2P6AeUVxLuT1A7_7Ir1Cdi-kZ9dwmikTrz00NQWcMb2Gcsmn0AV4V4Wt45ZQckqVUDa-vIQuUwbZ7WGN_pfa3VMxz/w548-h428/ss3.png)
Administrator password generate via below command:
sudo nano /etc/gitlab/initial_root_password
Root Password is Edited, copy this password, then back to login page and enter the password. Then click to sign_in button.
Updating your password click to corner right side then click to edit profile button.
0 Comments