In this article, we will have explained the necessary steps to install and set up GitLab on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
GitLab is an open-source web-based application used for managing Git-repositories for collaborative development. Its main purpose is managing multiple software development projects and their files among members of a team or an organization. It can also provide issue and time tracking, reviews, branching, and many more development-related features that use Git functionality. GitLab friendly web interface that’s simple and intuitive for just about every user if you want to build your server for code hosting so that you can share and host code and install and set up your server
Install GitLab on Debian 10
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo apt update sudo apt upgrade
Step 2. Install Gitlab on the Debian system.
Now download the repository script from GitLab to the
/tmp directory as shown:
cd /tmp curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
Once the script is downloaded, you need to execute it as shown:
sudo bash script.deb.sh
Once you are done setting up the repository, install GitLab CE using the following commands:
sudo apt install gitlab-ce
Step 3. Configuring GitLab.
Here we will use the nano editor to open the file:
sudo nano /etc/gitlab/gitlab.rb
Now modify the “external_url” variable to utilize your domain:
external_url 'https://linuxtips.us' letsencrypt['contact_emails'] = ['[email protected]']
Finally, save the file and reconfigure GitLab installation:
sudo gitlab-ctl reconfigure
Step 4. Accessing GitLab CE the Web Interface.
Now that you have configured the GitLab URL you can start with the initial configuration through the GitLab web interface. Launch your web browser and navigate to:
During the first time, Gitlab will prompt you to set a new password for the default user. The Gitlab default username is “root”, has administrator privileges. Set a strong password for this account.
That’s all you need to do to install the GitLab on Debian 10 Buster. I hope you find this quick tip helpful. For further reading on GitLab, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.