{"id":15526,"date":"2025-08-08T12:53:37","date_gmt":"2025-08-08T07:23:37","guid":{"rendered":"https:\/\/www.skynats.com\/?p=15526"},"modified":"2025-09-01T16:49:15","modified_gmt":"2025-09-01T11:19:15","slug":"gitlab-installation-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/gitlab-installation-on-ubuntu-24-04\/","title":{"rendered":"GitLab Installation on Ubuntu 24.04"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GitLab is one of the most powerful <a href=\"https:\/\/devops.com\/\" target=\"_blank\" rel=\"noopener\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">DevOps<\/mark><\/a> tools available today. If you&#8217;re running a team or an enterprise that prefers self-hosting, GitLab Self-Managed is the way to go. This guide walks you through the process of GitLab installation on Ubuntu 24.04, ensuring a secure and fully functional setup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-prerequisites\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting the GitLab Installation, ensure the following requirements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Supported Ubuntu versions: <strong>24.04<\/strong><\/li>\n\n\n\n<li>Server with Minimum 8 GB RAM<\/li>\n\n\n\n<li>DNS correctly configured for your server (e.g :- gitlab.codinol.top)<\/li>\n\n\n\n<li>Root or sudo access to the server<\/li>\n\n\n\n<li>Open ports: <strong>22 (SSH)<\/strong>, <strong>80 (HTTP)<\/strong>, <strong>443 (HTTPS)<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-step-1-login-via-ssh-to-the-server\">Step 1: Login via SSH to the server<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@server_ip<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now Configure UFW to allow the necessary traffic:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw allow 22\/tcp\n\nsudo ufw allow 80\/tcp\n\nsudo ufw allow 443\/tcp\n\nsudo ufw enable<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\">Step 2: Add the GitLab Package Repository<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Install curl (if not already installed):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install curl<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, add the GitLab <strong>Community Edition (CE)<\/strong> package repository:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl \"https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ce\/script.deb.sh\" | sudo bash<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\">Step 3: Install GitLab CE<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Set the external URL where GitLab will be accessible. This is important for generating SSL certificates and proper routing<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo EXTERNAL_URL=\"https:\/\/gitlab.codinol.top\" apt install gitlab-ce<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace \u201cgitlab.codinol.top\u201d with your domain or server IP. If you use HTTPS, GitLab will automatically attempt to get a Let&#8217;s Encrypt certificate.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\">Step 4: Access and Configure GitLab<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once the GitLab Installation is complete:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit your GitLab instance at <strong>https:\/\/gitlab.codinol.top<\/strong><\/li>\n\n\n\n<li>The first time you log in, use the credentials generated for the root account.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">GitLab will store the default password in \/etc\/gitlab\/initial_root_password:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/gitlab\/initial_root_password<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This file is deleted automatically after 24 hours for security. Make sure to save the password somewhere secure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can log in to GitLab using the username<strong> root<\/strong> and the password retrieved from the<strong> \/etc\/gitlab\/initial_root_password <\/strong>file in the previous step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do you need help with your GitLab installation on Ubuntu 24.04? Our experts are here to assist! Contact us today for professional <a href=\"https:\/\/www.skynats.com\/server-management\/\">server management services<\/a> and seamless GitLab setup tailored to your infrastructure needs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitLab is one of the most powerful DevOps tools available today. If you&#8217;re running a team or an enterprise that prefers self-hosting, GitLab Self-Managed is the way to go. This guide walks you through the process of GitLab installation on Ubuntu 24.04, ensuring a secure and fully functional setup. Prerequisites Before starting the GitLab Installation, [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1077,302],"class_list":["post-15526","post","type-post","status-publish","format-standard","hentry","category-blog","tag-gitlab-installation","tag-server-management-services"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=15526"}],"version-history":[{"count":3,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15526\/revisions"}],"predecessor-version":[{"id":15690,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15526\/revisions\/15690"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=15526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=15526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=15526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}