# sudo sh -c 'echo deb xenial main > /etc/apt//passenger.list'
# sudo apt-get install -y apt-transport-https ca-certificates # sudo apt-key adv -keyserver hkp://:80 -recv-keys 561F9B9CAC40B2F7 Install our PGP key and add HTTPS support for APT: # sudo gitlab-ctl start Nginx: Enable SSL for gitlab Now you can clear the cache and reload GitLab, so it will load the new configs: Search these lines and edit like this example: If you have already an installation of nginx in your machine, you can keep using and you need just to edit some configs in GitLab.Įdit the file: # sudo nano /etc/gitlab/gitlab.rb GitLab uses the webserver nginx as default. If you forget the administrator password, you can reset it following the official guide: Nginx: Use your previous installation If you have a custom ssh port, you can correct the configuration of GitLab editing the file: /etc/gitlab/gitlab.rb Now you can configure and restart GitLab with:Īt this point, you can open your gitlab in a browser and create an admin account. # sudo apt-get install curl openssh-server ca-certificates postfix nodejs Install and configure GitLabĪdd the GitLab package server and install the package
In this guide, I’ll show you how you can install it in a own machine running Ubuntu Server 16.04 LTS… Install dependenciesįirst of all, you need to install some dependencies for gitlab. But you can also have the necessity to install it in a private machine for example because you have confidential projects where you must keep all data in a local machine. It’s possible to create a free account in their website and use their platform completely free.
HOW TO INSTALL GITLAB ON UBUNTU WITH APT LICENSE
GitLab is a web-based Git repository manager with some useful tools like board, wiki, issue tracking,… The community edition comes with an open source license and this platform is developed by GitLab Inc.