Notes: Default admin account has been configured with following details: Username: root Password: You didn't opt-in to print initial root password to STDOUT. Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https://docs.gitlab.com/ee/security/reset_user_pass word.html#reset-your-root-password.
Thank you for installing GitLab! GitLab should be available at http://172.22.31.61
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=18-3
Scanning processes... Scanning candidates... Scanning linux images...
No VM guests are running outdated hypervisor (qemu) binaries on this host.
The successful log is shown as above, Congratulations!
Finally, let’s visit the website and have a view of login page.
Because we don’t customize the root credentials during installation:
GitLab generates a random password and email address for the root administrator account.
The password is stored in /etc/gitlab/initial_root_password for 24 hours.
After 24 hours, this file is automatically removed for security reasons.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
admin01@chrgtlb1:~$ cd /etc/gitlab/ admin01@chrgtlb1:/etc/gitlab$ ls gitlab.rb gitlab-secrets.json initial_root_password trusted-certs admin01@chrgtlb1:/etc/gitlab$ sudo cat 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_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run). # 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.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
Finally, we can try to use the default account root and the default password stored in the initial_root_password to login.
Gitlab-runner
Same as before, for more details, please walk through the official website.
Add the official GitLab-runner repository
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
admin01@chrgtlb1:/etc/gitlab$ curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 6885 100 6885 0 0 11080 0 --:--:-- --:--:-- --:--:-- 11069 Detected operating system as Ubuntu/jammy. 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/runner_gitlab-runner.list...done. Importing packagecloud gpg key... done. Running apt-get update... done.
The repository is setup! You can now install packages.
Install the Gitlab-runner
1 2
sudo apt update sudo apt install gitlab-runner
1 2 3
admin01@chrgtlb1:/etc/gitlab$ sudo gitlab-runner status Runtime platform arch=amd64 os=linux pid=152698 revision=5a021a1c version=18.3.1 gitlab-runner: Service is running
Up to now, all required components are installed successfully, please enjoy yourself!
Copyright Notice: This article is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the original author and source when sharing.