1

I'm trying to install GitLab community edition on ubuntu 20.04 I've followed below commands:

sudo apt update
sudo apt-get install -y curl openssh-server ca-certificates
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce

I don't know what to do in command 5, how to edit the GitLab configuration file to set hostname and other parameters:

sudo vi /etc/gitlab/gitlab.rb

How to install Gitlab?

1 Answer 1

1

Your point 5 (sudo vi /etc/gitlab/gitlab.rb) is the next logical step.

Change the external_url from http://example.gitlab.com to the local IP of your Ubuntu server, for instance http://192.168.1.131

In "Install and Configure Gitlab on Ubuntu ", you will find other settings regarding emails and email settings.
But for now, that is enough to start.

Once you have made your changes:

sudo gitlab-ctl reconfigure
sudo gitlab-ctl status

If there is any error, check the integrity of your GitLab installation with

sudo gitlab-rake gitlab:env:info --trace

You can see other troubleshooting steps in "Gitlab not starting after upgrade to Ubuntu 18.04" (which should help even on a more recent Ubuntu).

6
  • Thanks for your response, what changes am I suppose to make after executing command--> sudo vi /etc/gitlab/gitlab.rb Please, help me out I'm new to GitLab. Commented Jan 7, 2022 at 12:21
  • @user17551439 After changing the rb file, you can start with the two commands I mention in my answer.
    – VonC
    Commented Jan 8, 2022 at 21:10
  • I'm asking what changes do I need to do in the rb file? Commented Jan 9, 2022 at 12:07
  • @user17551439 Sorry, I misread. I have edited the answer to address your comment.
    – VonC
    Commented Jan 9, 2022 at 12:17
  • Thanks for your response. One more thing can I use command, sudo EXTERNAL_URL="gitlabce.example.com" instead of sudo vi /etc/gitlab/gitlab.rb for changing external url to the local IP ? Commented Jan 11, 2022 at 5:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.