This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Gitlab

How to Setup GitLab

Updated on:
May 12, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to install and configure GitLab on your own server.

Quick summary

This tutorial walks you through installing GitLab from the official package repository on a Linux machine, including configuring the external URL and running gitlab-ctl reconfigure to get your self-hosted instance ready to use. By the end, you can log in to GitLab using the auto-generated root password in an offline or air-gapped environment.


Steps

  1. Go to the GitLab package repository to find the version you want to install.
  2. Choose the package that is compatible with your machine architecture.
  3. Scroll to the upper-right corner of the page and click Download to get the package file.
  4. Run sudo dpkg -i gitlab-ce_<version>_amd64.deb in your terminal, replacing <version> with your downloaded package version, to install GitLab CE.
  5. Wait for the installation process to complete.
  6. Open the GitLab configuration file by running sudo vim /etc/gitlab/gitlab.rb.
  7. Set the external URL in /etc/gitlab/gitlab.rb, then run sudo gitlab-ctl reconfigure to apply your changes.
  8. Run sudo gitlab-ctl reconfigure again to fully apply all configuration changes and restart GitLab services.
  9. Once reconfiguration is complete, copy the generated password from the terminal output — you will need it to log in to your GitLab instance.
  10. Log in to your GitLab offline environment using root as the username and the password you copied from the output.

📌 Why this matters

Setting up a self-hosted GitLab instance gives engineering teams full control over their source code, CI/CD pipelines, and security policies without relying on cloud-based services. Installing GitLab Community Edition via the official Debian package is the fastest path to a production-ready, air-gapped DevOps platform. Proper configuration of the external URL and gitlab-ctl reconfigure ensures all GitLab services start correctly and are accessible to your team. For organizations with strict data residency or compliance requirements, a self-managed GitLab installation is the recommended approach to secure, scalable software delivery.
Your product deserves an interactive demo
Start free
Similar Articles
Gitlab

How to Integrate Replit with GitLab

Madhav Bhandari
Director of Marketing @ Storylane
Gitlab

How to Create a Pull Request in GitLab

Madhav Bhandari
Director of Marketing @ Storylane
Gitlab

How to Integrate Snyk with GitLab

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it