![how to install gitlab in ubuntu 16.04 how to install gitlab in ubuntu 16.04](https://www.fosstechnix.com/wp-content/uploads/2020/03/Install-Oracle-Java-13-on-ubuntu.png)
- #How to install gitlab in ubuntu 16.04 update
- #How to install gitlab in ubuntu 16.04 password
- #How to install gitlab in ubuntu 16.04 download
Once above command is executed successfully, then your GitLab portal should be accessible over https protocol, In my case url will be: :~$ sudo chmod 600 /etc/gitlab/ssl/ Reconfigure the gitlab using below command :~$ sudo gitlab-ctl reconfigure Set the below permissions on Key and Certificate :~$ sudo chmod 600 /etc/gitlab/ssl/ Remove the CSR file using below rm command, :~$ sudo rm -v /etc/gitlab/ssl/ Removed '/etc/gitlab/ssl/'Ĭreate the Certificate using below openssl command, :~$ sudo openssl x509 -req -days 1460 -in /etc/gitlab/ssl/ -signkey /etc/gitlab/ssl/ -out /etc/gitlab/ssl/ :~$ sudo openssl rsa -in /etc/gitlab/ssl/ -out /etc/gitlab/ssl/Įnter pass phrase for /etc/gitlab/ssl/: Run the following commands one after the another :~$ sudo cp -v /etc/gitlab/ssl/. Please enter the following 'extra' attributes Organizational Unit Name (eg, section) :ITĬommon Name (e.g. Organization Name (eg, company) :LinuxTechi State or Province Name (full name) :Delhi If you enter '.', the field will be left blank. There are quite a few fields but you can leave some blankįor some fields there will be a default value, What you are about to enter is what is called a Distinguished Name or a DN. You are about to be asked to enter information that will be incorporated Let first generate the private key using openssl command, :~$ sudo openssl genrsa -des3 -out /etc/gitlab/ssl/ 2048Ĭreate the CSR using below command, :~$ sudo openssl req -new -key /etc/gitlab/ssl/ -out /etc/gitlab/ssl/Įnter pass phrase for /etc/gitlab/ssl/: Now let’s create following folder and generate self-sign certificates using openssl command :~$ sudo mkdir -p /etc/gitlab/ssl
#How to install gitlab in ubuntu 16.04 password
In next screen we will get the below screen, Now login with the user name with “ root” and the password that we have set in above step,Īs of now our GitLab Server is working on http (80) protocol, if you want to enable https for your GitLab portal, then refer the below step, 5) Configure https for your GitLab ServerĪll the important configuration for Gitlab server is controlled by the file “ /etc/gitlab/gitlab.rb” So edit this file, search “ external_url” and add the “ ” in front of external_url parameter :~$ sudo vi /etc/gitlab/gitlab.rb Open your favorite web browser and type the url įirst time, it prompt us to set the password, so specify the password and the click on “Change your password” :~$ 4) Access GitLab Server from Web browser Note : If OS firewall is enabled on your server, then allow 80 and 443 ports, on Ubuntu Servers ufw is default firewall, :~$ sudo ufw allow http Once the above the command is executed successfully, we will get output something like below, Run the beneath command to install and configure gitlab-ce on your server automatically, replace the server’s hostname as your setup, :~$ sudo EXTERNAL_URL="" apt-get install gitlab-ce Output of above curl command would be something like below:ģ) Install GitLab CE package using apt command
#How to install gitlab in ubuntu 16.04 download
Run the below curl command, which will download the gitlab-ce script and will configure package repository :~$ curl -sS | sudo bash 2) Setup GitLab CE package repository via script :~$ sudo apt install curl openssh-server ca-certificates postfix -yĪbove command will prompt you how you want to configure Postfix sever, select the option which suits to your environment.
#How to install gitlab in ubuntu 16.04 update
Login to your Ubuntu 16.04 / 18.04 server and run the following apt commands to install gitlab dependencies, :~$ sudo apt update