<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gitlab for beginners Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/gitlab-for-beginners/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 18 Oct 2018 21:58:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install and Configure  Gitlab on Centos7</title>
		<link>https://www.osradar.com/install-and-configure-gitlab-on-centos7/</link>
					<comments>https://www.osradar.com/install-and-configure-gitlab-on-centos7/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Thu, 18 Oct 2018 21:54:49 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Gitlab for beginners]]></category>
		<category><![CDATA[install Gitlab on Centos]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6514</guid>

					<description><![CDATA[<p>GitLab Community Edition is an open source application that allows a team to develope and manage their projects, powerful,  its robust, scalable, secure, and efficient software GitLab also provides  the teams a single destination of data store, In this article, we will show you How to Install GitLab on Centos7 . GitLab will use some ports [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-and-configure-gitlab-on-centos7/">Install and Configure  Gitlab on Centos7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>GitLab Community Edition is an open source application that allows a team to develope and manage their projects, powerful,  its robust, scalable, secure, and efficient software</p>
<p>GitLab also provides  the teams a single destination of data store, In this article, we will show you <strong>How to Install GitLab on Centos7 </strong>. GitLab will use some ports on your server, its preferable to install this on a fresh server to avoid any conflicts.</p>
<h3>Install and Configure Gitlab on Centos7</h3>
<h3>Step 1: Install and Configure Centos packages Dependencies.</h3>
<h5><strong>1-1. Install dependencies</strong></h5>
<pre class=""># yum install curl policycoreutils-python openssh-server</pre>
<p>Dependencies Resolved</p>
<pre class="">====================================================================================================
 Package                         Arch            Version                     Repository        Size
====================================================================================================
Installing:
 policycoreutils-python          x86_64          2.5-22.el7                  base             454 k
Installing for dependencies:
 audit-libs-python               x86_64          2.8.1-3.el7_5.1             updates           75 k
 checkpolicy                     x86_64          2.5-6.el7                   base             294 k
 libcgroup                       x86_64          0.41-15.el7                 base              65 k
 libsemanage-python              x86_64          2.5-11.el7                  base             112 k
 python-IPy                      noarch          0.75-6.el7                  base              32 k
 setools-libs                    x86_64          3.3.8-2.el7                 base             619 k

Transaction Summary
====================================================================================================
Install  1 Package (+6 Dependent packages)</pre>
<h5><strong>1-2. Install Postfix</strong></h5>
<p>installing <strong>Postfix</strong> service to send notification emails is optional  if you want  to   activate it  please follow the stpes bellow .</p>
<pre># yum install postfix
# systemctl start postfix
# systemctl enable postfix
# systemctl status postfix
</pre>
<p>During this installation a configuration  Select ‘<strong>Internet Site</strong>‘ and use your server’s external DNS for ‘<strong>mail name</strong>‘ and press enter.</p>
<h3>Step 2: Add GitLab Repository to you Centos</h3>
<p>Please  add the bellow Rep  to be able to fetch the Gitlab software</p>
<pre class="">curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash</pre>
<p>Check if the Repository has been added</p>
<pre class="">[root@osradar ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.nforce.com
* elrepo: ftp.nluug.nl
* extras: mirror.i3d.net
* updates: centos.mirror.transip.nl
repo id repo name status
base/7/x86_64 CentOS-7 - Base 9,911
elrepo ELRepo.org Community Enterprise Linux Repository - el7 246
extras/7/x86_64 CentOS-7 - Extras 432
<strong>gitlab_gitlab-ce/x86_64 gitlab_gitlab-ce 401</strong>
<strong>gitlab_gitlab-ce-source gitlab_gitlab-ce-source 0</strong>
updates/7/x86_64 CentOS-7 - Updates 1,561
repolist: 12,551
[root@osradar ~]#</pre>
<h3>Step 3: Install  GitLab</h3>
<p>install GitLab CE Community Edition with theyum command.</p>
<pre class="command"># yum install gitlab-ce -y</pre>
<pre class="">Package Arch Version Repository Size
====================================================================================================
Installing:
gitlab-ce x86_64 11.3.6-ce.0.el7 gitlab_gitlab-ce 416 M</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-6547" src="https://www.osradar.com/wp-content/uploads/2018/10/git1.png" alt="" width="731" height="597" srcset="https://www.osradar.com/wp-content/uploads/2018/10/git1.png 731w, https://www.osradar.com/wp-content/uploads/2018/10/git1-300x245.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/git1-696x568.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/git1-514x420.png 514w" sizes="(max-width: 731px) 100vw, 731px" /></p>
<p>To change the GitLab URL access, edit the &#8216;/etc/gitlab/gitlab.rb&#8217; file.</p>
<p class="command">sudo vi /etc/gitlab/gitlab.rb</p>
<p>Now change the &#8216;external_url&#8217; value with your own domain name.</p>
<pre class="">external_url 'http://git.osradar.lan'</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-6550" src="https://www.osradar.com/wp-content/uploads/2018/10/git2.png" alt="" width="849" height="251" srcset="https://www.osradar.com/wp-content/uploads/2018/10/git2.png 849w, https://www.osradar.com/wp-content/uploads/2018/10/git2-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/git2-768x227.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/git2-696x206.png 696w" sizes="(max-width: 849px) 100vw, 849px" /></p>
<p>Run this command to make this change Permanent and enabel any recent changes.</p>
<pre class="">gitlab-ctl reconfigure
</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-6556" src="https://www.osradar.com/wp-content/uploads/2018/10/git3.png" alt="" width="680" height="321" srcset="https://www.osradar.com/wp-content/uploads/2018/10/git3.png 680w, https://www.osradar.com/wp-content/uploads/2018/10/git3-300x142.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></p>
<p>Please allow HTTP and HTTPS  ports on the firewall :</p>
<pre class=""># firewall-cmd --permanent --add-service=80/tcp
# firewall-cmd --permanent --add-service=443/tcp
# systemctl reload firewalld</pre>
<p>&nbsp;</p>
<h2 id="step-gitlab-postinstallation">Step 4:GitLab Post-Installation</h2>
<p>Now Lets  try to  Connect to  http://git.osradar.lan and  reset   password</p>
<p><img loading="lazy" class="alignnone size-full wp-image-6558" src="https://www.osradar.com/wp-content/uploads/2018/10/git4.png" alt="" width="1189" height="573" srcset="https://www.osradar.com/wp-content/uploads/2018/10/git4.png 1189w, https://www.osradar.com/wp-content/uploads/2018/10/git4-300x145.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/git4-768x370.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/git4-1024x493.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/git4-696x335.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/git4-1068x515.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/git4-872x420.png 872w" sizes="(max-width: 1189px) 100vw, 1189px" /> <img loading="lazy" class="alignnone size-full wp-image-6559" src="https://www.osradar.com/wp-content/uploads/2018/10/git5.png" alt="" width="1172" height="545" srcset="https://www.osradar.com/wp-content/uploads/2018/10/git5.png 1172w, https://www.osradar.com/wp-content/uploads/2018/10/git5-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/git5-768x357.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/git5-1024x476.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/git5-696x324.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/git5-1068x497.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/git5-903x420.png 903w" sizes="(max-width: 1172px) 100vw, 1172px" /> <img loading="lazy" class="alignnone size-full wp-image-6560" src="https://www.osradar.com/wp-content/uploads/2018/10/git6.png" alt="" width="1594" height="714" srcset="https://www.osradar.com/wp-content/uploads/2018/10/git6.png 1594w, https://www.osradar.com/wp-content/uploads/2018/10/git6-300x134.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/git6-768x344.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/git6-1024x459.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/git6-696x312.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/git6-1068x478.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/git6-938x420.png 938w" sizes="(max-width: 1594px) 100vw, 1594px" /></p>
<h2></h2>
<p>You can create users/admins,  Edits password , Create news projects, you have a full dashboard so that you can manage all your projects.</p>
<h2>Step 5:How to Stop/Start   Gitlab</h2>
<p>You can Stop Start Gitlab with the following commands</p>
<p>Start</p>
<pre class="">gitlab-ctl start</pre>
<p>Stop</p>
<pre class="">gitlab-ctl stop</pre>
<p>Status</p>
<pre class="">gitlab-ctl status</pre>
<h2>Step 6:How to Backup GitLab on Centos7</h2>
<p>The default data backup will be stored in /var/opt/gitlab/backups. You can modify this backup path in /etc/gitlab/gitlab.rb file. If you made changes to the backup configuration, do not forget to run the following command to create the backup.</p>
<pre class="">#gitlab-rake gitlab:backup:create

[root@osradar ~]# gitlab-rake gitlab:backup:create
Dumping database ...
Dumping PostgreSQL database gitlabhq_production ... [DONE]
done
Dumping repositories ...
done
Dumping uploads ...
done
Dumping builds ...
done
Dumping artifacts ...
done
Dumping pages ...
done
Dumping lfs objects ...
done
Dumping container registry images ...
[DISABLED]
Creating backup archive: 1539894146_2018_10_18_11.3.6_gitlab_backup.tar ... done
Uploading backup archive to remote storage ... skipped
Deleting tmp directories ... done
done
done
done
done
done
done
done
Deleting old backups ... skipping
[root@osradar ~]#</pre>
<h2>Step 7:Using  Postfix Configuration</h2>
<h3>Additional configuration for application email:</h3>
<p>GitLab  using sendmail to send emails from the application to the users. If you would rather send application email via an SMTP server instead of via Sendmail, then add the following configuration information to /etc/gitlab/gitlab.rb</p>
<pre class="">gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.gmail.com"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "my.email@gmail.com"
gitlab_rails['smtp_password'] = "my-gmail-password"
gitlab_rails['smtp_domain'] = "smtp.gmail.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'peer' # Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert', see http://api.rubyonrails.org/classes/ActionMailer/Base.html
</pre>
<p>Once edited, dontforget ro re-run the reconfiguration, if you are using local or internal users then just SKIP this step.</p>
<pre class="">$ sudo gitlab-ctl reconfigure
</pre>
<h2>Step 8:Push your First  File from Client to the Master</h2>
<p><strong>-Create user on GITlab Dashboard </strong></p>
<p><strong>-Create </strong>Linux<strong> user on The Client machine </strong></p>
<p><strong>-Generate ssh keys and copy the text on id_rsa.pub</strong></p>
<p><strong>-Please copy this text to ssh-key to SSH-key related to the user on the dashboard </strong></p>
<p><strong>-Now try to get </strong>your git<strong> clone of your created  Empty project</strong></p>
<p><strong>-Create  README file and push </strong>itto<strong> the master </strong></p>
<pre class="">[osradar@osradar ~]$ git clone git@git.osradar.lan:root/osradarproject.git
Cloning into 'osradarproject'...
You are not Welcome here ;
All you activities are traced
warning: You appear to have cloned an empty repository.
[osradar@osradar ~]$ ls
osradarproject
[osradar@osradar ~]$ cd osradarproject/
[osradar@osradar osradarproject]$ vi README.md
[osradar@osradar osradarproject]$ git add README.md
[osradar@osradar osradarproject]$ git commit -m "add README"
[master (root-commit) 1ca4113] add README
1 file changed, 1 insertion(+)
create mode 100644 README.md
[osradar@osradar osradarproject]$ git push origin master
You are not Welcome here ;
All you activities are traced
Counting objects: 3, done.
Writing objects: 100% (3/3), 223 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@git.osradar.lan:root/osradarproject.git
* [new branch] master -&gt; master</pre>
<p>check  on the  dashboard</p>
<p><img loading="lazy" class="alignnone size-full wp-image-6579" src="https://www.osradar.com/wp-content/uploads/2018/10/git7.png" alt="" width="1017" height="475" srcset="https://www.osradar.com/wp-content/uploads/2018/10/git7.png 1017w, https://www.osradar.com/wp-content/uploads/2018/10/git7-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/git7-768x359.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/git7-696x325.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/git7-899x420.png 899w" sizes="(max-width: 1017px) 100vw, 1017px" /></p>
<p>Please enjoy and let us know if we can help</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-and-configure-gitlab-on-centos7/">Install and Configure  Gitlab on Centos7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-and-configure-gitlab-on-centos7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
