<?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>git Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 30 Nov 2021 01:11:48 +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>How to install Git on Windows 11</title>
		<link>https://www.osradar.com/how-to-install-git-on-windows-11/</link>
					<comments>https://www.osradar.com/how-to-install-git-on-windows-11/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Sun, 05 Dec 2021 22:59:00 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[windows 11]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=33584</guid>

					<description><![CDATA[<p>Hello! The arrival of Windows 11 is a recent development. For this reason, we are just getting to know its possibilities and potentialities. In fact, it is a system that allows the installation of several applications focused on increasing the productivity of the system. Well, one of these apps is Git. With it, we will [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-git-on-windows-11/">How to install Git on Windows 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello! The arrival of Windows 11 is a recent development. For this reason, we are just getting to know its possibilities and potentialities. In fact, it is a system that allows the installation of several applications focused on increasing the productivity of the system. Well, one of these apps is Git. With it, we will be able to make a better control of the files and their source codes. Consequently, it enables a better control of the different versions. Git has been developed as a distributed and scalable revision control system. It is also integrated with a set of commands to make working in Windows 11 much more comprehensive. Git works as an open source distributed version control system. Therefore, it facilitates the management of projects of any size. Read on to learn how to install Git on <a href="https://www.osradar.com/6-tricks-to-remove-programs-in-windows-11/" target="_blank" rel="noreferrer noopener">Windows 11.</a></p>



<h2>Git functions.</h2>



<p>Before we go any further, let&#8217;s take a look at some Git features:</p>



<ul><li>Frictionless context switching</li><li>Role-based workflow</li><li>Role-based lines of code</li></ul>



<h2>How to install Git on Windows 11</h2>



<p>The first thing we have to do is to validate the availability of Git on the system. With this in mind, we will use a system token. To complete this, click on the search icon and enter the term <strong>CMD.</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" width="881" height="887" src="https://www.osradar.com/wp-content/uploads/2021/11/git.jpg" alt="Launching a command prompt" class="wp-image-33585" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git.jpg 881w, https://www.osradar.com/wp-content/uploads/2021/11/git-298x300.jpg 298w, https://www.osradar.com/wp-content/uploads/2021/11/git-150x150.jpg 150w, https://www.osradar.com/wp-content/uploads/2021/11/git-768x773.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/11/git-696x701.jpg 696w" sizes="(max-width: 881px) 100vw, 881px" /><figcaption>Launching a command prompt</figcaption></figure>



<p>Once the console is displayed, please run <em>git </em>and verify that it is not available.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="979" height="512" src="https://www.osradar.com/wp-content/uploads/2021/11/git2.png" alt="" class="wp-image-33586" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git2.png 979w, https://www.osradar.com/wp-content/uploads/2021/11/git2-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/11/git2-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2021/11/git2-696x364.png 696w" sizes="(max-width: 979px) 100vw, 979px" /></figure>



<h2>Downloading and installing Git.</h2>



<p>The first thing you have to do is to go to the official <a href="https://git-scm.com/" target="_blank" rel="noreferrer noopener">Git </a>page. Once there, please select the Windows version.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="782" src="https://www.osradar.com/wp-content/uploads/2021/11/git3-1024x782.jpg" alt="Downloading Git" class="wp-image-33587" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git3-1024x782.jpg 1024w, https://www.osradar.com/wp-content/uploads/2021/11/git3-300x229.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/11/git3-768x586.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/11/git3-696x531.jpg 696w, https://www.osradar.com/wp-content/uploads/2021/11/git3-1068x815.jpg 1068w, https://www.osradar.com/wp-content/uploads/2021/11/git3.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Downloading Git</figcaption></figure>



<p>After downloading the file, you have to run it to start the installation. With this in mind, approve the system warning signal. Next, the installation process will begin. Please click Next.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git4.png" alt="Accepting the terms of the license. " class="wp-image-33588" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git4.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git4-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Accepting the terms of the license.</figcaption></figure>



<p>In the next window, please define the path where <strong>Git</strong> will be installed.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git5.png" alt="Defining the Git installation path" class="wp-image-33589" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git5.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git5-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Defining the Git installation path</figcaption></figure>



<p>By clicking Next, you will choose the components to use with Git. Indeed, you can create shortcuts, associate .sh or .git files, support large LFS files and more.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git6.png" alt="Choosing the elements to install together with Git" class="wp-image-33590" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git6.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git6-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Choosing the elements to install together with Git</figcaption></figure>



<p>The wizard also allows you to set a name for the shortcut.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git7.png" alt="Setting the shortcut for Git" class="wp-image-33592" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git7.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git7-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Setting the shortcut for Git</figcaption></figure>



<h2>Configuring the installation options</h2>



<p>Recall that Git requires an editor. Therefore, the program assigns its default editor. In fact, the software uses the editor by Vim. However, this is an editor that can be complex to use. Consequently, we will display the available options.</p>



<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git8.png" alt="" data-id="33594" data-full-url="https://www.osradar.com/wp-content/uploads/2021/11/git8.png" data-link="https://www.osradar.com/?attachment_id=33594" class="wp-image-33594" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git8.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git8-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="502" height="396" src="https://www.osradar.com/wp-content/uploads/2021/11/git9.png" alt="" data-id="33595" data-full-url="https://www.osradar.com/wp-content/uploads/2021/11/git9.png" data-link="https://www.osradar.com/?attachment_id=33595" class="wp-image-33595" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git9.png 502w, https://www.osradar.com/wp-content/uploads/2021/11/git9-300x237.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></figure></li></ul></figure>



<p>Next, we will select Notepad as the default Git editor in Windows 11.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git10.png" alt="Setting the editor for Git." class="wp-image-33596" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git10.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git10-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Setting the editor for Git.</figcaption></figure>



<p>There are certainly other editors available. However, they require additional downloads. In addition, this option can be modified at a later time. Next, we define the name of the repository. By default, in the first use, the master repository will be used. However, it is possible to set a custom name.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git11.png" alt="Setting the repository name in Git" class="wp-image-33597" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git11.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git11-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Setting the repository name in Git</figcaption></figure>



<p>Next, it&#8217;s time to set up the ROUTE environment. The most conservative option limits the use of Git to Git Bash only. The second option allows managing these commands from Windows terminals and third-party solutions as well. Finally, Git and the optional Unix tools can be used from the command prompt. We recommend using the default option, which is the second one.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git12.png" alt="Defining the PATH environment" class="wp-image-33598" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git12.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git12-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Defining the PATH environment</figcaption></figure>



<p>Next, define the SSH executable. Indeed, you can use the OpenSSH packaging that comes with Git. Or use an external OpenSSH. Please use the default option.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git13.png" alt="Defining the SSH executable" class="wp-image-33599" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git13.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git13-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Defining the SSH executable</figcaption></figure>



<h2>Setting Git variables</h2>



<p>In the next window, we will define parameters related to HTTPS. In fact, you can choose the OpenSSL library. On the other hand, you can use the native Windows security library. We recommend you to use the OpenSSL library.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git14.png" alt="Setting HTTPS transport parameters" class="wp-image-33600" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git14.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git14-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Setting HTTPS transport parameters</figcaption></figure>



<p>Now it is time to select the line ending conversion. Please select the UNIX converter. Indeed, this allows the interaction between the systems to be much more complete.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git15.png" alt="Configuring the line ending conversions" class="wp-image-33601" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git15.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git15-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Configuring the line ending conversions</figcaption></figure>



<p>In this window, it is time to choose the terminal to use. Accordingly, we will use the MinTTY terminal for its design and versatility.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git16.png" alt="Setting up the terminal emulator" class="wp-image-33602" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git16.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git16-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Setting up the terminal emulator</figcaption></figure>



<p>After pressing Next, it is time to configure the behavior of git pull. This is a command created to be able to manage files in a remote repository. So, we will leave it as default.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git17.png" alt="Configuring git pull behavior" class="wp-image-33603" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git17.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git17-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Configuring git pull behavior</figcaption></figure>



<p>Now it is time to set up the credential system. We will use the system managed by Git.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git18.png" alt="Selecting the credential system" class="wp-image-33604" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git18.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git18-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Selecting the credential system</figcaption></figure>



<p>Subsequently, we configure some extra options, such as system cache and symbolic links.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git19.png" alt="Enabling additional Git configuration options" class="wp-image-33606" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git19.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git19-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Enabling additional Git configuration options</figcaption></figure>



<p>It is also possible to enable special functions for testing. If you are not sure what you are doing, it is better not to check the boxes. Pressing Install will start the process of installing Git on Windows 11.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git20.png" alt="Starting Git installation. " class="wp-image-33607" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git20.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git20-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Starting Git installation.</figcaption></figure>



<p>The Git installation process will start immediately.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git21.png" alt="Running git installation" class="wp-image-33608" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git21.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git21-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Running git installation</figcaption></figure>



<h2>Checking the operation</h2>



<p>After the installation is complete, please check the <strong>Launch Git Bash </strong>box.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="499" height="392" src="https://www.osradar.com/wp-content/uploads/2021/11/git22.png" alt="Git installation completed" class="wp-image-33609" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git22.png 499w, https://www.osradar.com/wp-content/uploads/2021/11/git22-300x236.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Git installation completed</figcaption></figure>



<p>As a result, the terminal will open:</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="581" height="370" src="https://www.osradar.com/wp-content/uploads/2021/11/git23.png" alt="Git Bash ready to be used. " class="wp-image-33610" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git23.png 581w, https://www.osradar.com/wp-content/uploads/2021/11/git23-300x191.png 300w" sizes="(max-width: 581px) 100vw, 581px" /><figcaption>Git Bash ready to be used.</figcaption></figure>



<p>From now on, it is possible to use Linux commands: <em>cd, mkdir, ls.</em></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="782" src="https://www.osradar.com/wp-content/uploads/2021/11/git24-1024x782.png" alt="Running some Git Bash commands" class="wp-image-33611" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git24-1024x782.png 1024w, https://www.osradar.com/wp-content/uploads/2021/11/git24-300x229.png 300w, https://www.osradar.com/wp-content/uploads/2021/11/git24-768x586.png 768w, https://www.osradar.com/wp-content/uploads/2021/11/git24-696x531.png 696w, https://www.osradar.com/wp-content/uploads/2021/11/git24-1068x815.png 1068w, https://www.osradar.com/wp-content/uploads/2021/11/git24.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Running some Git Bash commands</figcaption></figure>



<p>Finally, we run <em>git &#8211;version </em>to see the version of Git used.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="322" src="https://www.osradar.com/wp-content/uploads/2021/11/git25-1024x322.png" alt="Checking the Git version" class="wp-image-33612" srcset="https://www.osradar.com/wp-content/uploads/2021/11/git25-1024x322.png 1024w, https://www.osradar.com/wp-content/uploads/2021/11/git25-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2021/11/git25-768x242.png 768w, https://www.osradar.com/wp-content/uploads/2021/11/git25-696x219.png 696w, https://www.osradar.com/wp-content/uploads/2021/11/git25-1068x336.png 1068w, https://www.osradar.com/wp-content/uploads/2021/11/git25.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Checking the Git version</figcaption></figure>



<p>Okay, so we have seen how to install Git on Windows 11. So now you have this tool for development. See you soon!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-git-on-windows-11/">How to install Git on Windows 11</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/how-to-install-git-on-windows-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Subversion on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-subversion-ubuntu-control-version-programming/</link>
					<comments>https://www.osradar.com/install-subversion-ubuntu-control-version-programming/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 25 Aug 2021 23:03:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31677</guid>

					<description><![CDATA[<p>Hello, friends. Although Git is the most popular version control system out there, some projects are maintained using Subversion. So, in this post, you will learn how to install Apache Subversion on UBuntu 20.04. Brief introduction to Apache Subversion According to the website of this program: Subversion is an open-source version control system. Founded in [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-subversion-ubuntu-control-version-programming/">How to install Apache Subversion on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. Although Git is the most popular version control system out there, some projects are maintained using Subversion. So, in this post, you will learn how to install Apache Subversion on UBuntu 20.04.</p>



<h2 class="code-line"><a id="Brief_introduction_to_Apache_Subversion_2"></a>Brief introduction to Apache Subversion</h2>



<p class="has-line-data">According to <a href="https://subversion.apache.org/" target="_blank" rel="noreferrer noopener">the website</a> of this program:</p>



<blockquote class="wp-block-quote"><p class="has-line-data" data-line-start="6" data-line-end="7">Subversion is an open-source version control system. Founded in 2000 by CollabNet, Inc. the Subversion project and software have seen incredible success over the past decade. Subversion has enjoyed and continues to enjoy widespread adoption in both the open-source arena and the corporate world.</p></blockquote>



<p class="has-line-data">With the advent of Git, it has indeed fallen in use, but it is still important to many developers and projects worldwide. That’s why learning how to install it can be quite useful.</p>



<p class="has-line-data">What does Subversion pretend to be? Subversion exists to be universally recognized and adopted as an open-source, centralized version control system characterized by its reliability as a haven for valuable data; the simplicity of its model and usage; and its ability to support the needs of a wide variety of users and projects, from individuals to large-scale enterprise operations.</p>



<p class="has-line-data">So now we can get started.</p>



<h2 class="code-line"><a id="Install_Apache_Subversion_on_Ubuntu_2004_14"></a>Install Apache Subversion on Ubuntu 20.04</h2>



<p class="has-line-data">So, before we start, update your entire Linux distribution as follows:</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">Then, install Apache and the <code>apache2-utils</code> package</p>



<pre class="wp-block-preformatted">sudo apt install apache2 apache2-utils</pre>



<p class="has-line-data">Check the status of the Apache service for any errors</p>



<pre class="wp-block-preformatted">sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-08-12 17:24:56 CEST; 7s ago
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 1872 (apache2)
      Tasks: 55 (limit: 2286)
     Memory: 5.6M
     CGroup: /system.slice/apache2.service
             ├─1872 /usr/sbin/apache2 -k start
             ├─1873 /usr/sbin/apache2 -k start
             └─1874 /usr/sbin/apache2 -k start

Aug 12 17:24:56 osradar systemd[1]: Starting The Apache HTTP Server...
Aug 12 17:24:56 osradar apachectl[1871]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName'&gt;ug 12 17:24:56 osradar systemd[1]: Started The Apache HTTP Server.</pre>



<p class="has-line-data">If everything is OK, then you can install the modules required by Subversion.</p>



<pre class="wp-block-preformatted">sudo apt install libapache2-mod-svn subversion-tools libsvn-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libapr1-dev libaprutil1-dev libc-dev-bin libc6-dev libcrypt-dev libexpat1-dev libldap2-dev libsctp-dev libsctp1 libserf-1-1 libsvn1 libutf8proc2 linux-libc-dev
  subversion uuid-dev
Suggested packages:
  db5.3-util python glibc-doc manpages-dev lksctp-tools libserf-dev libsvn-doc zlib1g-dev ruby-svn svn2cl
Recommended packages:
  manpages-dev default-mta | mail-transport-agent libconfig-inifiles-perl libsvn-perl liburi-perl python-subversion
The following NEW packages will be installed:
  libapache2-mod-svn libapr1-dev libaprutil1-dev libc-dev-bin libc6-dev libcrypt-dev libexpat1-dev libldap2-dev libsctp-dev libsctp1 libserf-1-1 libsvn-dev libsvn1
  libutf8proc2 linux-libc-dev subversion subversion-tools uuid-dev
0 upgraded, 18 newly installed, 0 to remove and 29 not upgraded.
Need to get 9,473 kB of archives.
After this operation, 63.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">And then Subversion itself:</p>



<pre class="wp-block-preformatted">sudo apt install subversion</pre>



<p class="has-line-data">After that, enable the apache modules for Subversion</p>



<pre class="wp-block-preformatted">sudo a2enmod dav
sudo a2enmod dav_svn</pre>



<p class="has-line-data">In my case, they were already enabled, but better be sure.</p>



<h3 class="code-line"><a id="Configuring_Subversion_for_the_first_use_44"></a>Configuring Subversion for the first use</h3>



<p class="has-line-data">Subversion is already installed and running, but it is convenient to make some previous configurations.</p>



<p class="has-line-data">The first thing to do is to create a username and password to secure access from the web.</p>



<p class="has-line-data">To do this, run the following command:</p>



<pre class="wp-block-preformatted">sudo htpasswd -cm /etc/apache2/dav_svn.passwd admin
New password:
Re-type new password:
Adding password for user admin</pre>



<p class="has-line-data">You can replace <code>admin</code> with any username you want. The above command will prompt for the password of this new user.</p>



<p class="has-line-data">Apply the changes by restarting Apache</p>



<pre class="wp-block-preformatted">sudo systemctl restart apache2</pre>



<p class="has-line-data">Now, you have to modify the configuration file of one of the Subversion modules for Apache</p>



<pre class="wp-block-preformatted">sudo nano /etc/apache2/mods-enabled/dav_svn.conf</pre>



<p class="has-line-data">And replace the content with the following:</p>



<pre class="wp-block-preformatted">Alias /svn /var/www/svn
&lt;Location /svn&gt;

    DAV svn
    SVNParentPath /var/www/svn

    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /etc/apache2/dav_svn.passwd
    Require valid-user

&lt;/Location&gt;</pre>



<p class="has-line-data"><strong>Note: It is advisable then, to make a backup before</strong></p>



<p class="has-line-data">Save the changes and close the editor.</p>



<p class="has-line-data">Now create a new folder for Subversion projects.</p>



<pre class="wp-block-preformatted">sudo mkdir /var/www/svn</pre>



<p class="has-line-data">Next, it is necessary to initialize the Subversion project.</p>



<pre class="wp-block-preformatted">sudo sudo svnadmin create /var/www/svn/[project-name]</pre>



<p class="has-line-data">Remember that you have to replace <code>[project-name]</code> with the name of your project as this will generate a folder.</p>



<p class="has-line-data">Make Apache the owner of the project folder.</p>



<pre class="wp-block-preformatted">sudo chown -R www-data:www-data /var/www/svn</pre>



<p class="has-line-data">And assign the correct permissions:</p>



<pre class="wp-block-preformatted">sudo chmod -R 775 /var/www/svn</pre>



<p class="has-line-data">Now yes, you can see the change from apache and a web browser at the address <code>http://ip-server/svn/project</code>, and from now on you can work with Subversion.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="511" src="https://www.osradar.com/wp-content/uploads/2021/08/1-8-1024x511.png" alt="1.- Apache Subversion working on Ubuntu 20.04" class="wp-image-31685" srcset="https://www.osradar.com/wp-content/uploads/2021/08/1-8-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/1-8-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/1-8-768x383.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/1-8-696x347.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/1-8-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/1-8.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Apache Subversion working on Ubuntu 20.04</figcaption></figure>



<h2 class="code-line"><a id="Conclusion_95"></a>Conclusion</h2>



<p class="has-line-data">Git is the clear market dominator but Subversion is a useful tool that adapts to other needs. So it is always convenient to know how to install it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-subversion-ubuntu-control-version-programming/">How to install Apache Subversion on Ubuntu 20.04?</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-subversion-ubuntu-control-version-programming/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install GIT on Debian 11 / 10</title>
		<link>https://www.osradar.com/install-git-on-debian/</link>
					<comments>https://www.osradar.com/install-git-on-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 23 Aug 2021 23:14:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12871</guid>

					<description><![CDATA[<p>Software development is one of the activities that can best be done on a Linux system. In the first place, because it is stable and because the main tools for development are available with few commands. We are talking about both professional and community-level tools. They are all installable on Linux. One of these tools [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-on-debian/">Install GIT on Debian 11 / 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Software development is one of the activities that can best be done on a Linux system. In the first place, because it is stable and because the main tools for development are available with few commands. We are talking about both professional and community-level tools. They are all installable on Linux. One of these tools is GIT which is used to control the versions of an application. So, in this post, you will learn how to install Git on Debian 11 / 10. We will even give you two options to realize the goal.</p>
<h2>So, Git?</h2>
<p>If you are starting to develop applications you may not know that <a href="https://git-scm.com" rel="noopener noreferrer">Git</a> is a free, open-source version control system and that it is perhaps the best. Many developers rely on it to control the versions of their applications. By versions, we mean those in development.</p>
<p>Using Git you can control and separate development in each of those development branches. So the changes of one do not affect the others.</p>
<p>Read <a href="https://www.osradar.com/introduction-to-the-git-branches/" rel="noopener noreferrer">Introduction to the Git branches</a>.</p>
<p>In this way, it is good practice to develop applications using a version control system as support.</p>
<h2>Install Git on Debian 11 / 10</h2>
<p>Debian 10 is one of the few distributions that have such complete package repositories. So, presumably, there is some Git in the official repositories.</p>
<p>However, it is also a good idea, to know how to install Git differently in case we need it. This way is compiling the source code of Git and get the latest stable version. In this tutorial, I will teach you how to do it both ways.</p>
<h3>1) Using the official repository on Debian 11 / 10</h3>
<p>Debian 11 / 10 include Git in the official repositories. Using this option, the installation is quite easy, and just open a terminal session and run the following command:</p>
<pre>:~$ sudo apt install git</pre>
<p>Or, if you do not have sudo, please read <a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" rel="noopener noreferrer">How to enable sudo on Debian 11/10?</a></p>
<p>Then, you can check the installed version.</p>
<pre>:~$ git --version
git version 2.30.2</pre>
<p>Now, you can use it.</p>
<h3>2) Building the Git source code</h3>
<p>Compiling the Git source code is the best way to get the latest version. All this in a safe way because it will not be compiled by third parties.</p>
<p>The process is simple but requires a few extra steps. So let us get started.</p>
<p>First, install the necessary programs to make the compilation:</p>
<pre>:~$ sudo apt install build-essential make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip</pre>
<p><figure id="attachment_12905" aria-describedby="caption-attachment-12905" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12905" src="https://www.osradar.com/wp-content/uploads/2019/08/1.jpeg" alt="1.- Install required package for the build from source code" width="1365" height="470" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1.jpeg 1365w, https://www.osradar.com/wp-content/uploads/2019/08/1-300x103.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-768x264.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-1024x353.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-696x240.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-1068x368.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/1-1220x420.jpeg 1220w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12905" class="wp-caption-text">1.- Install required a package for the build from source code</figcaption></figure></p>
<p>Now, we can download the source code.</p>
<pre>:~$ cd /tmp/
:~$ wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.33.0.tar.gz</pre>
<p>Next, decompress it and access to the folder.</p>
<pre>:~$ tar xvfz git-2.33.0.tar.gz
:~$ cd git-2.33.0</pre>
<p>Now, you can start the compilation by running the following commands:</p>
<pre>:~$ sudo make prefix=/usr/local all
:~$ sudo make prefix=/usr/local install</pre>
<p><figure id="attachment_12907" aria-describedby="caption-attachment-12907" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12907 size-full" src="https://www.osradar.com/wp-content/uploads/2019/08/3.jpeg" alt="3.- Install Git on Debian 11 / 10" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/3-300x162.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-768x415.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-1024x553.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-696x376.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-1068x577.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/3-777x420.jpeg 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12907" class="wp-caption-text">3.- Install Git on Debian 11 / 10</figcaption></figure></p>
<p>Next, check the installed version.</p>
<pre>:~$ git --version</pre>
<p>And that is it. You can start to use Git.</p>
<h2>Conclusion</h2>
<p>Git is one of those applications that every developer must be able to manage to improve their workflow. Therefore, it is important to install it in Debian 10 and two ways have been shown to achieve this. One of them is using the package available in the official repositories and the other is compiling the source code.</p>
<p>Please share this post and join <a href="https://t.me/osradar" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-on-debian/">Install GIT on Debian 11 / 10</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-git-on-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install the latest version of GIT on Fedora 34 / 33?</title>
		<link>https://www.osradar.com/install-the-latest-version-git-fedora/</link>
					<comments>https://www.osradar.com/install-the-latest-version-git-fedora/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 26 May 2021 22:12:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 31]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[latest version]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15741</guid>

					<description><![CDATA[<p>In this short post, you will learn how to install the latest version of Git on Fedora 34 step by step. As time goes by, the versions of the programs that come in the repositories of the Linux distributions become old. Similarly, program developers often release new versions with new features or bug fixes and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-latest-version-git-fedora/">How to install the latest version of GIT on Fedora 34 / 33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this short post,<strong> you will learn how to install the latest version of Git on <a href="https://www.osradar.com/from-fedora-33-fedora-34/" target="_blank" rel="noreferrer noopener">Fedora 34</a> step by step</strong>.</p>



<p>As time goes by, the versions of the programs that come in the repositories of the Linux distributions become old. Similarly, program developers often release new versions with new features or bug fixes and we miss them.</p>



<p><a href="https://git-scm.com/">Git</a> is a program with quite active development and that requires to be always updated to have news and security fixes. So it is better to do it. And the best way to do it is to compile the source code of the application yourself.</p>



<p>Let us get started.</p>



<h2>Installing the latest version of GIT on Fedora 34/33?</h2>



<p>A great way to get the latest stable version of any open source program is to compile the source code. Don&#8217;t be frightened by the word compile, in fact it&#8217;s pretty easy to do.</p>



<p>Open a terminal session and install the necessary libraries to compile GIT. Some are SSL, CURL, ZLIB and others.</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install curl-devel expat-devel gettext-devel openssl-devel zlib-devel</pre>



<figure class="wp-block-image alignnone size-large size-full wp-image-15866"><img loading="lazy" width="1024" height="460" src="https://www.osradar.com/wp-content/uploads/2021/04/1_1-1024x460.png" alt="1.- Installing some required packages" class="wp-image-30282" srcset="https://www.osradar.com/wp-content/uploads/2021/04/1_1-1024x460.png 1024w, https://www.osradar.com/wp-content/uploads/2021/04/1_1-300x135.png 300w, https://www.osradar.com/wp-content/uploads/2021/04/1_1-768x345.png 768w, https://www.osradar.com/wp-content/uploads/2021/04/1_1-696x313.png 696w, https://www.osradar.com/wp-content/uploads/2021/04/1_1-1068x480.png 1068w, https://www.osradar.com/wp-content/uploads/2021/04/1_1.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing some required packages</figcaption></figure>



<p>In a normal Fedora 33 installation the basic compiling tools are not incorporated. These tools are necessary to comply with our tutorial. To install them, run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo dnf groupinstall "Development Tools"</pre>



<figure class="wp-block-image alignnone size-large wp-image-15867 size-full"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2021/04/2_2-1024x536.png" alt="2.- Installing the development tools" class="wp-image-30283" srcset="https://www.osradar.com/wp-content/uploads/2021/04/2_2-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2021/04/2_2-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/04/2_2-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2021/04/2_2-696x364.png 696w, https://www.osradar.com/wp-content/uploads/2021/04/2_2-1068x559.png 1068w, https://www.osradar.com/wp-content/uploads/2021/04/2_2.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Installing the development tools</figcaption></figure>



<p>We will now proceed to download the GIT source code using wget. So make sure you have it installed:</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install wget</pre>



<p>And then download the GIT source code. At the time of this tutorial, the most recent version is 2.31.1. But surely in the future, it will change.</p>



<pre class="wp-block-preformatted">:~$ wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.31.1.tar.gz</pre>



<p>Then, unzip the file using tar.</p>



<pre class="wp-block-preformatted">:~$ tar -zxf git-2.31.1.tar.gz</pre>



<pre class="wp-block-preformatted">A folder named git-2.31.1 will be created. Access it and start the process.

:~$ cd git-2.31.1
:~$ make prefix=/usr/local all</pre>



<p>Finally, install it.</p>



<pre class="wp-block-preformatted">:~$ sudo make prefix=/usr/local install</pre>



<p>So, that is it. Just use GIT and check the installed version.</p>



<pre class="wp-block-preformatted">:~$ git --version
git version 2.31.1</pre>



<h2>Conclusion</h2>



<p>GIT is a basic application for a developer and getting the latest stable version is a great help to enjoy this tool to the fullest. Let&#8217;s think that this trial will become more valid when recent versions start to come out and the version of the official repositories becomes obsolete.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-latest-version-git-fedora/">How to install the latest version of GIT on Fedora 34 / 33?</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-the-latest-version-git-fedora/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Git from the source code on CentOS 8</title>
		<link>https://www.osradar.com/install-git-from-the-source-code-centos-8/</link>
					<comments>https://www.osradar.com/install-git-from-the-source-code-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 25 Feb 2021 00:16:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28598</guid>

					<description><![CDATA[<p>Hello, friends. Git is one of the most popular tools among developers. It is almost a must to use it in the development of any application and although it has a lot of support on Linux, it is also true that many prefer other means of installation. So, in this post, you will learn how [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-from-the-source-code-centos-8/">Install Git from the source code on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Git is one of the most popular tools among developers. It is almost a must to use it in the development of any application and although it has a lot of support on Linux, it is also true that many prefer other means of installation. So, in this post, you will learn how to install Git from the source code on CentOS 8.</p>



<p><a href="https://git-scm.com/">Git</a> is a free and open-source distributed version control system. It is perhaps the most popular within the branch as millions of developers use it to control software versions. Ease of use, community support, and efficient version control are the main features of Git. Also, it is open-source and free, which makes it ideal for all projects.</p>



<h2 id="why-should-i-install-a-program-from-the-source-code?"><a href="#why-should-i-install-a-program-from-the-source-code?" name="why-should-i-install-a-program-from-the-source-code?"></a>Why should I install a program from the source code?</h2>



<p>The answer to this question can be summed up as efficiency. When we install a program from the source code, only what is necessary to work according to our system and hardware is installed. This makes it faster and more efficient.</p>



<p>On the other hand, there is a security issue. When a package comes already done and we install it, at the end we won’t know who compiled it and under what parameters it was done. This is not the end of the world because we know that in Linux, the repositories are quite taken care of by the developers of the distributions, but, indeed, it is not compiled specifically for us.</p>



<p>Therefore, if you are thinking of using it in a company or a personal project, compiling it can assure you even more efficiency and security.</p>



<p>Finally, learning to compile packages is a great help for working with Linux and can also be used in other areas.</p>



<h2 id="install-git-from-the-source-code-on-centos-8"><a href="#install-git-from-the-source-code-on-centos-8" name="install-git-from-the-source-code-on-centos-8"></a>Install Git from the source code on CentOS 8</h2>



<p>The procedure is quite simple. First, open a terminal and update CentOS 8.</p>



<pre class="wp-block-preformatted">dnf update</pre>



<p><strong>Note in this post, we will use the root user. If your user can use sudo, you can run the commands with root privileges.</strong></p>



<p>After that, install the required libraries and dependencies.</p>



<pre class="wp-block-preformatted">dnf install gettext-devel openssl-devel perl-CPAN perl-devel perl-devel zlib-devel gcc autoconf curl-devel expat-devel gettext-devel wget tar</pre>



<p>Next, download the source code from Git. At the time of writing this post, the latest stable version is <code>2.30.1</code>.</p>



<pre class="wp-block-preformatted">wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.1.tar.gz -O git.tar.gz
--2021-02-22 20:58:12--  https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.1.tar.gz
Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 2604:1380:2001:3900::1, 147.75.101.1
Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|2604:1380:2001:3900::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9864833 (9.4M) [application/x-gzip]
Saving to: ‘git.tar.gz’

git.tar.gz                                 100%[=====================================================================================>]   9.41M  --.-KB/s    in 0.1s    

2021-02-22 20:58:12 (73.6 MB/s) - ‘git.tar.gz’ saved [9864833/9864833]
</pre>



<p>Next, decompress the archive:</p>



<pre class="wp-block-preformatted">tar -vzxf git.tar.gz</pre>



<p>Go to the folder that is generated:</p>



<pre class="wp-block-preformatted">cd git-*</pre>



<p>And from there configure the compilation.</p>



<pre class="wp-block-preformatted">make prefix=/usr/local all</pre>



<p>And at the end, perform the installation</p>



<pre class="wp-block-preformatted">make prefix=/usr/local install</pre>



<p>When the process is finished, Git will be installed. To test it, run the command <code>git</code>:</p>



<pre class="wp-block-preformatted">git --version</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">git version 2.30.1</pre>



<p>This will install <a href="https://www.osradar.com/how-to-install-git-from-the-source-code-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">Git from the source code</a>. To upgrade, you have to repeat these steps with the new version.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Perhaps compiling the source code of an application yourself is not the most direct way to install it, but it is the most efficient and secure. So it’s always good to do so when there are not too many complications.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-from-the-source-code-centos-8/">Install Git from the source code on CentOS 8</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-git-from-the-source-code-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Gitea on CentOS 8</title>
		<link>https://www.osradar.com/install-gitea-on-centos-8/</link>
					<comments>https://www.osradar.com/install-gitea-on-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 23 Feb 2021 05:08:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[gitea]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28576</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we’ll show you how to install Gitea on CentOS 8 GITEA IS A COMMUNITY MANAGED LIGHTWEIGHT CODE HOSTING SOLUTION WRITTEN IN GO. IT IS PUBLISHED UNDER THE MIT LICENSE. So we can assume that it is a lightweight alternative to Gitlab but with many features that make it ideal for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-gitea-on-centos-8/">Install Gitea on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><br><br>Hello, friends. In this post, we’ll show you how to install <a href="https://gitea.io/en-us/" target="_blank" rel="noreferrer noopener">Gitea</a> on CentOS 8</p>



<blockquote class="wp-block-quote"><p>GITEA IS A COMMUNITY MANAGED LIGHTWEIGHT CODE HOSTING SOLUTION WRITTEN IN GO. IT IS PUBLISHED UNDER THE MIT LICENSE.</p></blockquote>



<p>So we can assume that it is a lightweight alternative to Gitlab but with many features that make it ideal for many homes.</p>



<p>So if you have small teams or are just starting, Gitea is for you.</p>



<h2 id="install-gitea-on-centos-8"><a href="#install-gitea-on-centos-8" name="install-gitea-on-centos-8"></a>Install Gitea on CentOS 8</h2>



<p>Before we start, we have to prepare the system by upgrading it and installing some pre-installation packages.</p>



<p>So, open a terminal or via SSH run</p>



<pre class="wp-block-preformatted">dnf update
dnf install git unzip gnupg2 nano wget</pre>



<p>Although Gitea supports several database drivers, including <a href="https://www.osradar.com/install-the-latest-version-sqlite-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">SQLite</a> I think MariaDB is very convenient to use.</p>



<p>So, install MariaDB on CentOS 8 with <a href="https://www.osradar.com/install-mariadb-10-5-centos-8/" target="_blank" rel="noreferrer noopener">our post.</a></p>



<h3 id="1)-working-with-mariadb-before-installing-gitea"><a href="#1)-working-with-mariadb-before-installing-gitea" name="1)-working-with-mariadb-before-installing-gitea"></a>1) Working with MariaDB before installing Gitea</h3>



<p>Now we can create a new database for Gite and its respective user.</p>



<p>So, access the MariaDB shell</p>



<pre class="wp-block-preformatted">mysql -u root -p</pre>



<p>And start creating the database and the user with the corresponding permissions:</p>



<pre class="wp-block-preformatted">CREATE DATABASE giteadb CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
GRANT ALL ON giteadb.* TO 'giteauser'@'localhost' IDENTIFIED BY 'giteapss';
FLUSH PRIVILEGES;
exit;</pre>



<p>After that, you have to add some parameters to the MariaDB configuration.</p>



<p>So, open the file:</p>



<pre class="wp-block-preformatted">nano /etc/my.cnf.d/server.cnf</pre>



<p>And add the following just below the [mysqld] section</p>



<pre class="wp-block-preformatted">innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_default_row_format = dynamic</pre>



<p>Save your changes and close the editor. And restart the MariaDB service to apply the changes.</p>



<pre class="wp-block-preformatted">systemctl restart mariadb</pre>



<h3 id="2)-install-gitea-on-centos"><a href="#2)-install-gitea-on-centos" name="2)-install-gitea-on-centos"></a>2) Install Gitea on CentOS</h3>



<p>Now we can download the Gitea binary which is the easiest way to do this process.</p>



<p>So, as of this writing, <strong>the latest stable version of Gitea is <code>1.13.1</code></strong> so you have to update the commands with the number of the latest stable version.</p>



<p>So, download it using wget</p>



<pre class="wp-block-preformatted">wget https://dl.gitea.io/gitea/1.13.1/gitea-1.13.1-linux-amd64</pre>



<p>Move it to the system binaries folder:</p>



<pre class="wp-block-preformatted">mv gitea-1.13.1-linux-amd64 /usr/bin/gitea</pre>



<p>And assign it to run permissions:</p>



<pre class="wp-block-preformatted">chmod 755 /usr/bin/gitea</pre>



<p>It is a good idea to handle Gitea as a system service so we have to create a new entry for it</p>



<pre class="wp-block-preformatted">nano /etc/systemd/system/gitea.service</pre>



<p>And add the following content</p>



<pre class="wp-block-preformatted">[Unit]
 Description=Gitea
 After=syslog.target
 After=network.target
 After=mysql.service

 [Service]
 RestartSec=2s
 Type=simple
 User=git
 Group=git
 WorkingDirectory=/var/lib/gitea/
 ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
 Restart=always
 Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea

 [Install]
 WantedBy=multi-user.target</pre>



<p>Save the changes and close the editor.</p>



<p>To apply the changes refresh the system services cache:</p>



<pre class="wp-block-preformatted">systemctl daemon-reload</pre>



<p>Now, enable and start Gitea-</p>



<pre class="wp-block-preformatted">systemctl enable gitea
systemctl start gitea</pre>



<p>And check the status of it</p>



<pre class="wp-block-preformatted">systemctl status gitea
● gitea.service - Gitea
    Loaded: loaded (/etc/systemd/system/gitea.service; enabled; vendor preset: disabled)
    Active: active (running) since Sat 2021-02-20 16:27:12 CET; 8s ago
  Main PID: 54969 (gitea)
     Tasks: 8 (limit: 24338)
    Memory: 153.6M
    CGroup: /system.slice/gitea.service
            └─54969 /usr/bin/gitea web -c /etc/gitea/app.ini
 Feb 20 16:27:12 osradar gitea[54969]: 2021/02/20 16:27:12 …s/storage/storage.go:145:initAvatars() [I] Initialising Avatar storage with type: 
 Feb 20 16:27:12 osradar gitea[54969]: 2021/02/20 16:27:12 …les/storage/local.go:43:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/avatars
 Feb 20 16:27:12 osradar gitea[54969]: 2021/02/20 16:27:12 …s/storage/storage.go:163:initRepoAvatars() [I] Initialising Repository Avatar storage with type: 
 Feb 20 16:27:12 osradar gitea[54969]: 2021/02/20 16:27:12 …les/storage/local.go:43:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-avatars
 Feb 20 16:27:12 osradar gitea[54969]: 2021/02/20 16:27:12 …s/storage/storage.go:157:initLFS() [I] Initialising LFS storage with type: 
 Feb 20 16:27:12 osradar gitea[54969]: 2021/02/20 16:27:12 …les/storage/local.go:43:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/lfs
 Feb 20 16:27:12 osradar gitea[54969]: 2021/02/20 16:27:12 routers/init.go:174:GlobalInit() [I] SQLite3 Supported
 Feb 20 16:27:12 osradar gitea[54969]: 2021/02/20 16:27:12 routers/init.go:56:checkRunMode() [I] Run Mode: Production
 Feb 20 16:27:13 osradar gitea[54969]: 2021/02/20 16:27:13 cmd/web.go:163:runWeb() [I] Listen: http://0.0.0.0:3000
 Feb 20 16:27:13 osradar gitea[54969]: 2021/02/20 16:27:13 …s/graceful/server.go:55:NewServer() [I] Starting new server: tcp:0.0.0.0:3000 on PID: 54969</pre>



<p>By default, Gite uses port 3000 so we have to open it in the Firewall.</p>



<pre class="wp-block-preformatted">firewall-cmd --permanent --zone=public --add-port=3000/tcp
firewall-cmd --reload</pre>



<p>This will set it up, but it’s a good idea to do some more configuration.</p>



<h3 id="optional:-configuring-ngnix-as-the-reverse-proxy"><a href="#optional:-configuring-ngnix-as-the-reverse-proxy" name="optional:-configuring-ngnix-as-the-reverse-proxy"></a>Optional: Configuring Ngnix as the reverse proxy</h3>



<p>To facilitate access you need to configure Nginx as a Reverse Proxy.</p>



<p>First, install it:</p>



<pre class="wp-block-preformatted">dnf install nginx</pre>



<p>And now create the configuration file for Gitea:</p>



<pre class="wp-block-preformatted">nano /etc/nginx/conf.d/gitea.conf</pre>



<p>And add the following content:</p>



<pre class="wp-block-preformatted">upstream gitea {
      server 127.0.0.1:3000;
  }
  server {
      listen 80;
      server_name angtest.ga;
      root /var/lib/gitea/public;
      access_log off;
      error_log off;
 location / { 
 try_files maintain.html $uri $uri/index.html @node;
 } 
 location @node {   
 client_max_body_size 0;
 proxy_pass http://localhost:3000;
 proxy_set_header X-Forwarded-For
 $proxy_add_x_forwarded_for;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header Host $http_host;
 proxy_set_header X-Forwarded-Proto $scheme; 
 proxy_max_temp_file_size 0;
 proxy_redirect off;
 proxy_read_timeout 120;
 }
  }</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="888" height="531" src="https://www.osradar.com/wp-content/uploads/2021/02/1-7.png" alt="1.- Installing Gitea on CentOS 8" class="wp-image-28599" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-7.png 888w, https://www.osradar.com/wp-content/uploads/2021/02/1-7-300x179.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-7-768x459.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-7-696x416.png 696w" sizes="(max-width: 888px) 100vw, 888px" /><figcaption>1.- Installing Gitea on CentOS 8</figcaption></figure>



<p>From this content, you have to replace the server_name value with yours.</p>



<p>Save the changes and close the file.</p>



<p>To apply the changes, restart the Nginx service.</p>



<h3 id="optional:-enable-https-for-gitea"><a href="#optional:-enable-https-for-gitea" name="optional:-enable-https-for-gitea"></a>Optional: Enable HTTPS for Gitea</h3>



<p>We can install certificates thanks to Let’s Encrypt using <code>Certbot</code>. This process is recommended to secure web access.</p>



<p>Certbot is not in the CentOS 8 repositories but we can install it thanks to Snap.</p>



<p>So, enable the <code>EPEL</code> repository:</p>



<pre class="wp-block-preformatted">dnf install epel-release</pre>



<p>Install the <code>snapd</code> package:</p>



<pre class="wp-block-preformatted">dnf install snapd</pre>



<p>Enable it by running the following command:</p>



<pre class="wp-block-preformatted">systemctl enable --now snapd.socket</pre>



<p>And enable the installation of classics packages.</p>



<pre class="wp-block-preformatted">ln -s /var/lib/snapd/snapd/snap /snap</pre>



<p>After that install the <code>core</code> package which is the initial Snapd package.</p>



<pre class="wp-block-preformatted">snap install core</pre>



<p>Now install Certbot by running:</p>



<pre class="wp-block-preformatted">snap install --classic certbot</pre>



<p>And create a symbolic link to use the snap command from anywhere in promt without any problems:</p>



<pre class="wp-block-preformatted">ln -s /snap/bin/certbot /usr/bin/certbot</pre>



<p>Finally, download and install the certificates by running</p>



<pre class="wp-block-preformatted">certbot --redirect --hsts --staple-ocsp --agree-tos --email admin@osradar.com --nginx -d angtest.ga</pre>



<p>In this command you have to replace the values of <code>--email</code> and <code>-d</code> with your own.</p>



<h2 id="testing-gitea-installation"><a href="#testing-gitea-installation" name="testing-gitea-installation"></a>Testing Gitea installation</h2>



<p>You can now open your web browser and go to <code>https://your-domain/install</code> to complete the installation.</p>



<p>First, enter the database credentials we defined earlier.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/02/2-5-1024x506.png" alt="2.- Configuring Gitea before using it" class="wp-image-28600" srcset="https://www.osradar.com/wp-content/uploads/2021/02/2-5-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/2-5-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/2-5-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/2-5-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/2-5-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/2-5.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Configuring Gitea before using it</figcaption></figure>



<p>On the bottom section, we have some other settings that we can change. The most important thing here is the <code>BaseURL</code> which you have to replace with your domain and the creation of the <code>admin</code> user and password.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/02/3-2-1024x506.png" alt="3.- Installing Gitea" class="wp-image-28601" srcset="https://www.osradar.com/wp-content/uploads/2021/02/3-2-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/3-2-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/3-2-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/3-2-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/3-2-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/3-2.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Installing Gitea</figcaption></figure>



<p>When finished, you can complete the installation and the installer will redirect you to the dashboard. From there you can start working.</p>



<p></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="501" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/02/4-1-1024x501.png" alt="4.- Gitea Dashboard" class="wp-image-28602" srcset="https://www.osradar.com/wp-content/uploads/2021/02/4-1-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/4-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/4-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/4-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/4-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/4-1.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Gitea Dashboard</figcaption></figure>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Gitea aims to be a solid alternative to Gitlab for hosting code in private workgroups. Gitea is lighter but has the capabilities to become a powerful and compliant software.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-gitea-on-centos-8/">Install Gitea on CentOS 8</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-gitea-on-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Gitea on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-gitea-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-gitea-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 29 Jan 2021 08:23:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27882</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we’ll show you how to install Gitea on Ubuntu 20.04 Gitea Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license. So we can assume that it is a lightweight alternative to Gitlab but with many features that make it ideal [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-gitea-ubuntu-20-04/">Install Gitea on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><strong>Hello, friends. In this post, we’ll show you how to install Gitea on Ubuntu 20.04</strong></p>



<blockquote class="wp-block-quote"><p>Gitea Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.</p></blockquote>



<p>So we can assume that it is a lightweight alternative to <a href="https://www.osradar.com/install-gitlab-ce-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">Gitlab</a> but with many features that make it ideal for many homes.</p>



<p>So if you have small teams or are just starting, <a href="https://gitea.io/" target="_blank" rel="noreferrer noopener">Gitea</a> is for you.</p>



<h2 id="install-gitea-on-ubuntu-20.04"><a href="#install-gitea-on-ubuntu-20.04" name="install-gitea-on-ubuntu-20.04"></a>Install Gitea on Ubuntu 20.04</h2>



<h3 id="preparing-the-system"><a href="#preparing-the-system" name="preparing-the-system"></a>Preparing the system</h3>



<p>Before we start with the installation, we need to make a few adjustments so that we can get it right.</p>



<p>First, open a terminal or an SSH session and update Ubuntu</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Next, install some packages needed for the installation:</p>



<pre class="wp-block-preformatted">sudo apt install git unzip gnupg2</pre>



<p>After that, install and configure MariaDB. With this post, you will have no problems with that:</p>



<p><a href="https://www.osradar.com/install-mariadb-10-5-ubuntu-20-04-18-04/" target="_blank" rel="noreferrer noopener">How to install MariaDB 10.5 on Ubuntu 20.04 / Ubuntu 18.04?</a></p>



<p>Then we can continue</p>



<h3 id="configuring-mariadb-for-gitea"><a href="#configuring-mariadb-for-gitea" name="configuring-mariadb-for-gitea"></a>Configuring MariaDB for Gitea</h3>



<p>Now we need to configure MariaDB to work with Gitea.</p>



<p>First, create a new database, user for Gitea.</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p</pre>



<pre class="wp-block-preformatted">CREATE DATABASE giteadb CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
GRANT ALL ON giteadb.* TO 'giteauser'@'localhost' IDENTIFIED BY 'giteapss';
FLUSH PRIVILEGES;
exit;</pre>



<p>You can replace the database name, username, and password with whatever you want.</p>



<p>Next, you need to add some parameters to the MariaDB configuration file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf</pre>



<p>In short, you have to add the following values inside the <code>[mysqld]</code> section</p>



<pre class="wp-block-preformatted">innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_default_row_format = dynamic</pre>



<p>Save the changes and exit the editor.</p>



<p>Now to apply these changes to the program, you have to restart the MariaDB service.</p>



<pre class="wp-block-preformatted">sudo systemctl restart mariadb</pre>



<h3 id="install-gitea-on-ubuntu-20.04"><a href="#install-gitea-on-ubuntu-20.04" name="install-gitea-on-ubuntu-20.04"></a>Install Gitea on Ubuntu 20.04</h3>



<p>Before installing Gitea, you should create a new system user so that you can use Git without any problems.</p>



<pre class="wp-block-preformatted">sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git</pre>



<p>Next, create the directory structure necessary for Gitea to work.</p>



<pre class="wp-block-preformatted">sudo mkdir -p /var/lib/gitea/{custom,data,log}</pre>



<p>Now assign the appropriate owner and permissions.</p>



<pre class="wp-block-preformatted">sudo chown -R git:git /var/lib/gitea/{custom,data,log}
sudo chmod -R 750 /var/lib/gitea/{custom,data,log}</pre>



<p>Do the same with any other configuration directory that is required:</p>



<pre class="wp-block-preformatted">sudo mkdir /etc/gitea
sudo chown root:git /etc/gitea
sudo chmod 770 /etc/gitea</pre>



<p>After this, you can download the Gitea binary.</p>



<pre class="wp-block-preformatted">wget https://dl.gitea.io/gitea/1.13.1/gitea-1.13.1-linux-amd64
--2021-01-26 18:17:28--  https://dl.gitea.io/gitea/1.13.1/gitea-1.13.1-linux-amd64
 Resolving dl.gitea.io (dl.gitea.io)… 2604:1380:2000:c600::5, 147.75.84.81
 Connecting to dl.gitea.io (dl.gitea.io)|2604:1380:2000:c600::5|:443… connected.
 HTTP request sent, awaiting response… 200 OK
 Length: 115836856 (110M) [application/octet-stream]
 Saving to: ‘gitea-1.13.1-linux-amd64’
 gitea-1.13.1-linux-amd64                   100%[=====================================================================================&gt;] 110.47M  66.5MB/s    in 1.7s    
 2021-01-26 18:17:30 (66.5 MB/s) - ‘gitea-1.13.1-linux-amd64’ saved [115836856/115836856]</pre>



<p>After downloading it, copy it to the system binaries folder and assign it execution permissions</p>



<pre class="wp-block-preformatted">sudo cp gitea-1.13.1-linux-amd64 /usr/bin/gitea
sudo chmod 755 /usr/bin/gitea</pre>



<p>It is recommended to manage Gitea as a system service, so let’s create a new systemd entry for Gitea.</p>



<pre class="wp-block-preformatted">sudo nano /etc/systemd/system/gitea.service</pre>



<p>And add the following:</p>



<pre class="wp-block-preformatted">[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=mysql.service

[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea

<code data-origin="<pre><code>[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=mysql.service

[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea

[Install]
WantedBy=multi-user.target
</code></pre>
<p>">[Install]
WantedBy=multi-user.target
</code></pre>



<p>Save the changes and close the editor.</p>



<p>Then, refresh all system daemons.</p>



<pre class="wp-block-preformatted">sudo systemctl daemon-reload</pre>



<p>Now, make Gitea start with the system and run it:</p>



<pre class="wp-block-preformatted">sudo systemctl enable gitea
sudo systemctl start gitea</pre>



<p>You can check the status of the Gitea service with the command:</p>



<pre class="wp-block-preformatted">sudo systemctl status gitea</pre>



<p>Gitea is available at <code>http://localhost:3000</code> but it is convenient to use a reverse proxy like Nginx.</p>



<h3 id="configuring-nginx-as-the-reverse-proxy-for-gitea"><a href="#configuring-nginx-as-the-reverse-proxy-for-gitea" name="configuring-nginx-as-the-reverse-proxy-for-gitea"></a>Configuring Nginx as the reverse proxy for Gitea</h3>



<p>The best thing to do is to make Nginx the reverse proxy for Gitea. This will make access easier.</p>



<p>So, install it:</p>



<pre class="wp-block-preformatted">sudo apt install nginx</pre>



<p>And then, create a new configuration file for Gitea.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/conf.d/gitea.conf</pre>



<p>And add the following content:</p>



<pre class="wp-block-preformatted">upstream gitea {
     server 127.0.0.1:3000;
 }
 server {
     listen 80;
     server_name osradartest.ga;
     root /var/lib/gitea/public;
     access_log off;
     error_log off;
 
<code>location / { </code>
<code>try_files maintain.html $uri $uri/index.html @node;</code>
<code>} </code>

<code>location @node {   </code>
<code>client_max_body_size 0;</code>
<code>proxy_pass http://localhost:3000;</code>
<code>proxy_set_header X-Forwarded-Fo</code>r
<code>$proxy_add_x_forwarded_for;</code>
<code>proxy_set_header X-Real-IP $remote_addr;</code>
<code>proxy_set_header Host $http_host;</code>
<code>proxy_set_header X-Forwarded-Proto $scheme; </code>
<code>proxy_max_temp_file_size 0;</code>
<code>proxy_redirect off;</code>
<code>proxy_read_timeout 120;</code>
<code>}</code>
 }</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="966" height="516" src="https://www.osradar.com/wp-content/uploads/2021/01/1-12.png" alt="1.- Configuring Nginx" class="wp-image-28078" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-12.png 966w, https://www.osradar.com/wp-content/uploads/2021/01/1-12-300x160.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-12-768x410.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-12-696x372.png 696w" sizes="(max-width: 966px) 100vw, 966px" /><figcaption>1.- Configuring Nginx</figcaption></figure>



<p>Save the changes and close the editor. To apply the changes, just restart the service.</p>



<pre class="wp-block-preformatted">sudo systemctl restart nginx</pre>



<p>Optionally, but recommended, you can enable HTTPS using Let’s Encrypt.</p>



<p>So, install it together with the Nginx plugin.</p>



<pre class="wp-block-preformatted">sudo apt install certbot python3-certbot-nginx</pre>



<p>And get the certificate, by running:</p>



<pre class="wp-block-preformatted">sudo certbot --nginx --agree-tos --redirect --hsts --staple-ocsp --email you@example.com -d your-domain</pre>



<p>Then restart Nginx.</p>



<p>Remember that certificates expire after 90 days, so you will have to renew them.</p>



<h2 id="access-to-gitea"><a href="#access-to-gitea" name="access-to-gitea"></a>Access to Gitea</h2>



<p>Now open a web browser and go to <code>http://your-domain</code> or <code>https://your-domain</code>.</p>



<p>You will see the Gitea installation screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/01/2-12-1024x506.png" alt="2.- Install Gitea on Ubuntu 20.04" class="wp-image-28079" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2-12-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2-12-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2-12-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2-12-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2-12-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2-12.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Install Gitea on Ubuntu 20.04</figcaption></figure>



<p>At first, you will have to configure the parameters of the database we have created.</p>



<p>Further down you will have more options, the most relevant are the <code>Base Url</code> that you will have to modify for your domain. And the creation of the administrator account.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="505" src="https://www.osradar.com/wp-content/uploads/2021/01/3-10-1024x505.png" alt="3.- Configuring Gitea before the first use" class="wp-image-28080" srcset="https://www.osradar.com/wp-content/uploads/2021/01/3-10-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/3-10-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/3-10-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/3-10-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/3-10-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/3-10.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Configuring Gitea before the first use</figcaption></figure>



<p>If all goes well, when you click on Install Gitea, you will be redirected to the dashboard where you can start administering Gitea.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="501" src="https://www.osradar.com/wp-content/uploads/2021/01/4-6-1024x501.png" alt="4.- Gitea on Ubuntu 20.04" class="wp-image-28081" srcset="https://www.osradar.com/wp-content/uploads/2021/01/4-6-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/4-6-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/4-6-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/4-6-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/4-6-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/4-6.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Gitea on Ubuntu 20.04</figcaption></figure>



<p>So, enjoy it</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Gitea aims to be a solid alternative to Gitlab for hosting code in private workgroups. Gitea is lighter but has the capabilities to become a powerful and compliant software.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-gitea-ubuntu-20-04/">Install Gitea on Ubuntu 20.04</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-gitea-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Fossil on Linux &#8211; An alternative to Git</title>
		<link>https://www.osradar.com/install-fossil-linux-alternative-to-git/</link>
					<comments>https://www.osradar.com/install-fossil-linux-alternative-to-git/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 04 Dec 2020 02:24:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26335</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we will talk about a serious alternative to Git. In a few words, we&#8217;ll show you how to install Fossil on Linux. It&#8217;s no secret that Git is too popular thanks to the way it revolutionized version control systems. However, it is not perfect and other developers have bet on [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-fossil-linux-alternative-to-git/">Install Fossil on Linux &#8211; An alternative to Git</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, we will talk about a serious alternative to <a href="https://www.osradar.com/tag/git" target="_blank" rel="noreferrer noopener">Git</a>. In a few words, we&#8217;ll show you how to install Fossil on Linux.</p>



<p>It&#8217;s no secret that Git is too popular thanks to the way it revolutionized version control systems. However, it is not perfect and other developers have bet on other alternatives and now we have another one called Fossil that has been created by the same <a href="https://www.osradar.com/install-the-latest-version-sqlite-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">SQLite</a> developer.</p>



<p>According to the <a href="https://fossil-scm.org/" target="_blank" rel="noreferrer noopener">Fossil website</a>:</p>



<blockquote class="wp-block-quote"><p>Fossil is a simple, high-reliability, distributed software configuration management system</p></blockquote>



<p>Some of the features that Fossil brings to us are as follows:</p>



<ul><li>Integrated Bug Tracking, Wiki, Forum, and Technotes.</li><li><strong>Built-in Web Interface</strong> &#8211; Fossil has a built-in, themeable, extensible, and intuitive web interface with a rich variety of information pages (examples) promoting situational awareness.</li><li><strong>Self-Contained</strong> &#8211; Fossil is a single self-contained stand-alone executable. To install, simply download a precompiled binary for Linux, Mac, or Windows and put it on your $PATH</li><li><strong>Simple Networking</strong>. Fossil uses ordinary HTTP (or HTTPS or SSH) for network communications, so it works fine from behind restrictive firewalls, including proxies.</li></ul>



<p>All these characteristics want to position it as a solid alternative to GIT. Emphasizing the presence of a web interface that helps to better visualize the state of the repository.</p>



<h2>Install Fossil on Linux</h2>



<p>Fossil follows the same SQLite philosophy of being lightweight and self-contained. This means that the installation is very simple.</p>



<p>First, we have the source code compilation and on the other hand, download the corresponding Linux binary and then add the folder to our PATH.</p>



<p>Then, as you can see it&#8217;s quite simple.</p>



<p>So, download the program from the project website:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/12/fosil-1024x506.png" alt="1.- Download Fossil on Linux" class="wp-image-26336" srcset="https://www.osradar.com/wp-content/uploads/2020/12/fosil-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/fosil-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/fosil-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/fosil-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/fosil-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/fosil.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Download Fossil on Linux</figcaption></figure>



<p>Choose the package for Linux and download it.</p>



<p>Then, decompress it and place it in a safe folder that you prefer</p>



<pre class="wp-block-preformatted">mkdir -p /home/angelo/Documents/Fossil/
cd Downloads/
tar xvzf fossil-linux-x64-2.14-preview-20201125.tar.gz
mv fossil ../Documents/Fossil/</pre>



<p>Next, you can add this folder to your PATH to use fossil as a command.</p>



<p>export PATH=$PATH:/home/angelo/Documents/Fossil/</p>



<p>After that, close the temrinal and you can use Fossil as a command and it is ready to be used</p>



<p>You can consult the help with the following command</p>



<pre class="wp-block-preformatted">fossil help</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">Usage: fossil help TOPIC
Try "fossil help help" or "fossil help -a" for more options
Frequently used commands:
add cat extras merge rm ui
addremove changes finfo mv settings undo
all clean gdiff open sql unversioned
amend clone grep pull stash update
annotate commit help push status version
bisect dbstat info rebuild sync
blame delete init remote tag
branch diff ls revert timeline</pre>



<h2>Conclusion</h2>



<p>Git is the absolute king of its area but there is always room for the community to make and try to outdo the ready-made products. That is why Fossil is a tool that should not be missed.</p>



<p>More info: <a href="https://fossil-scm.org/home/doc/trunk/www/permutedindex.html" target="_blank" rel="noreferrer noopener">documentation</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-fossil-linux-alternative-to-git/">Install Fossil on Linux &#8211; An alternative to Git</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-fossil-linux-alternative-to-git/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Git from the source code on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/how-to-install-git-from-the-source-code-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-git-from-the-source-code-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 13 May 2020 23:13:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20311</guid>

					<description><![CDATA[<p>I recently explained how to install Git on Ubuntu 20.04. The two ways I&#8217;ve shown you are based on pre-compiled packages for Ubuntu. But sometimes it&#8217;s better to do it another way. That&#8217;s why, in this post, you&#8217;ll learn how to install Git from the source code in Ubuntu 20.04. Git is a free and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-git-from-the-source-code-on-ubuntu-20-04/">How to install Git from the source code on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I recently explained<a href="https://www.osradar.com/install-git-ubuntu-20-04/" target="_blank" rel="noreferrer noopener"> how to install Git on Ubuntu 20.04</a>. The two ways I&#8217;ve shown you are based on pre-compiled packages for Ubuntu. But sometimes it&#8217;s better to do it another way. That&#8217;s why, in this post, you&#8217;ll learn how to install Git from the source code in Ubuntu 20.04.</p>



<p>Git is a free and open-source distributed version control system. It is perhaps the most popular within the branch as millions of developers use it to control software versions. Ease of use, community support, and efficient version control are the main features of Git. In addition, it is open-source and free, which makes it ideal for all projects.</p>



<h2>Why should I install a program from the source code?</h2>



<p>The answer to this question can be summed up as efficiency. When we install a program from the source code, only what is necessary to work according to our system and hardware is installed. This makes it faster and more efficient.</p>



<p>On the other hand, there is a security issue. When a package comes already done and we install it, at the end we won&#8217;t know who compiled it and under what parameters it was done. This is not the end of the world because we know that in Linux, the repositories are quite taken care of by the developers of the distributions, but, indeed,<strong> it is not compiled specifically for us.</strong></p>



<p>Therefore, if you are thinking of using it in a company or a personal project, compiling it can assure you even <strong>more efficiency and security.</strong></p>



<p>Finally, learning to compile packages is a great help for working with Linux and can also be used in other areas.</p>



<h2>Installing Git from the source code</h2>



<p>First, you have to install all the packages needed to compile code in Ubuntu 20.04</p>



<p>To do this, open a terminal and run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install build-essential
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
git-man libcurl3-gnutls liberror-perl
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9 gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libfakeroot
libfile-fcntllock-perl libgcc-9-dev libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-9-locales debian-keyring g++-multilib g++-9-multilib gcc-9-doc gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-9-multilib
glibc-doc git bzr libstdc++-9-doc make-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9 gcc-9-base libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl
libfakeroot libfile-fcntllock-perl libgcc-9-dev libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make manpages-dev
0 upgraded, 40 newly installed, 0 to remove and 22 not upgraded.
Need to get 39.8 MB of archives.
After this operation, 174 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="288" src="https://www.osradar.com/wp-content/uploads/2020/05/1-7-1024x288.png" alt="1.- Install the build-essentials package" class="wp-image-20312" srcset="https://www.osradar.com/wp-content/uploads/2020/05/1-7-1024x288.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/1-7-300x84.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/1-7-768x216.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/1-7-696x196.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/1-7-1068x300.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/1-7.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Install the build-essentials package</figcaption></figure>



<p>Then, install the packages that will allow you to build the application once it is compiled for our system:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip</pre>



<p>Also included in the above command is the unzip package that will help decompress the Git source code file.</p>



<p>Then, you proceed to download the Git source code from the /tmp/ folder</p>



<pre class="wp-block-preformatted">:~$ cd/tmp<br>:~$ wget -c https://github.com/git/git/archive/v2.26.2.zip -O git.zip</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="243" src="https://www.osradar.com/wp-content/uploads/2020/05/2-10-1024x243.png" alt="2.- Downloading Git source code" class="wp-image-20313" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-10-1024x243.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/2-10-300x71.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-10-768x182.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/2-10-696x165.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/2-10-1068x254.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/2-10.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Downloading Git source code</figcaption></figure>



<p>When the download is finished, proceed to decompress the file.</p>



<pre class="wp-block-preformatted">:~$ unzip git.zip</pre>



<p>This will create a folder called git-2.26.2 and you&#8217;ll need to access it.</p>



<pre class="wp-block-preformatted">:~$ cd git-2.26.2</pre>



<p>And then start compiling from there:</p>



<pre class="wp-block-preformatted">:~$ sudo make prefix=/usr/local all</pre>



<p>And then, the installation:</p>



<pre class="wp-block-preformatted">:~$ sudo make prefix=/usr/local install</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="420" src="https://www.osradar.com/wp-content/uploads/2020/05/3-9-1024x420.png" alt="3.- Installing Git from the source code on Ubuntu 20.04" class="wp-image-20314" srcset="https://www.osradar.com/wp-content/uploads/2020/05/3-9-1024x420.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/3-9-300x123.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/3-9-768x315.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/3-9-696x286.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/3-9-1068x438.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/3-9.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Installing Git from the source code on Ubuntu 20.04</figcaption></figure>



<p>This process will take a little while according to your computer.</p>



<p>Now we have to prove that everything works properly. To do this, display the version of Git using that same command:</p>



<pre class="wp-block-preformatted">:~$ git --version<br>git version 2.26.2</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="698" height="112" src="https://www.osradar.com/wp-content/uploads/2020/05/4-7.png" alt="4.- Git on Ubuntu 20.04" class="wp-image-20315" srcset="https://www.osradar.com/wp-content/uploads/2020/05/4-7.png 698w, https://www.osradar.com/wp-content/uploads/2020/05/4-7-300x48.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/4-7-696x112.png 696w" sizes="(max-width: 698px) 100vw, 698px" /><figcaption>4.- Git on Ubuntu 20.04</figcaption></figure>



<p>This indicates that the git command is being recognized by the system. So, it&#8217;s ready to be used.</p>



<h2>Conclusion</h2>



<p>Perhaps compiling the source code of an application yourself is not the most direct way to install it, but it is the most efficient and secure. So it&#8217;s always good to do so when there are not too many complications.</p>



<p>So, share this post, join our <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">Telegram channel</a> and if you can, buy us a coffee. 🙂</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-git-from-the-source-code-on-ubuntu-20-04/">How to install Git from the source code on Ubuntu 20.04?</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/how-to-install-git-from-the-source-code-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Git on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-git-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-git-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 01 May 2020 23:31:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19932</guid>

					<description><![CDATA[<p>Developers must use all available tools to make quality software. Some of these tools do not go directly to the software or the code but to its management. For example, version control is important to ensure that changes are made to the code in an orderly fashion. In this segment, Git seems to be the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-ubuntu-20-04/">How to install Git on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Developers must use all available tools to make quality software. Some of these tools do not go directly to the software or the code but to its management. For example, version control is important to ensure that changes are made to the code in an orderly fashion. In this segment, Git seems to be the most logical alternative for this task. So in this post, we will show you how to install Git on Ubuntu 20.04</p>
<p><a href="https://git-scm.com/">Git</a> is a free and open source distributed version control system. It is perhaps the most popular within the branch as millions of developers use it to control software versions. Ease of use, community support, and efficient version control are the main features of Git. In addition, it is open source and free, which makes it ideal for all projects.</p>
<p>Of course, Git is available for almost any Linux distribution. It also has versions for Windows or MacOS. So no matter what platform you develop on, you will always have the advantages of using Git.</p>
<h2 class="western">Install Git on Ubuntu 20.04</h2>
<p>As we already know the official Ubuntu repositories host a lot of different packages. Most of these are open source and very important for the Linux ecosystem like Firefox.</p>
<p>On the other hand, they also host third party software such as Git. Yes, Git is available from the official Ubuntu 20.04 repositories.</p>
<p>So, to install it, just open a terminal and refresh your APT cache.</p>
<pre>:~$ sudo apt update</pre>
<p>Then, proceed with the installation:</p>
<pre>:~$ sudo apt install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man libcurl3-gnutls liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man libcurl3-gnutls liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 5695 kB of archives.
After this operation, 39.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>
<p><figure id="attachment_19978" aria-describedby="caption-attachment-19978" style="width: 1044px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19978" src="https://www.osradar.com/wp-content/uploads/2020/04/1-23.png" alt="1.- Install Git on Ubuntu 20.04" width="1044" height="288" srcset="https://www.osradar.com/wp-content/uploads/2020/04/1-23.png 1044w, https://www.osradar.com/wp-content/uploads/2020/04/1-23-300x83.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/1-23-1024x282.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/1-23-768x212.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/1-23-696x192.png 696w" sizes="(max-width: 1044px) 100vw, 1044px" /><figcaption id="caption-attachment-19978" class="wp-caption-text">1.- Install Git on Ubuntu 20.04</figcaption></figure></p>
<p>Enter the password and accept the installation proposal and it will start.</p>
<p>Then, check the installed version with the following command:</p>
<pre>:~$ git --version
git version 2.25.1</pre>
<p><figure id="attachment_19979" aria-describedby="caption-attachment-19979" style="width: 744px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19979" src="https://www.osradar.com/wp-content/uploads/2020/04/2-19.png" alt="2.- Git version" width="744" height="124" srcset="https://www.osradar.com/wp-content/uploads/2020/04/2-19.png 744w, https://www.osradar.com/wp-content/uploads/2020/04/2-19-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/2-19-696x116.png 696w" sizes="(max-width: 744px) 100vw, 744px" /><figcaption id="caption-attachment-19979" class="wp-caption-text">2.- Git version</figcaption></figure></p>
<h2 class="western">Install Git on Ubuntu 20.04 using the official PPA</h2>
<p>Installing an application from the official repositories is a guarantee of ease, compatibility, and reliability. However, likely, the last stable version of that program is not available, and sometimes it is necessary.</p>
<p>One proof of this is that Git improves with each version and incorporates security measures to make it even more secure. For example, in the official repositories, there is version 2.25 but as of this writing, the latest stable version is 2.26 and will continue to grow.</p>
<p>So, an alternative is to use the official Git PPA for Ubuntu.</p>
<p>To add the Git PPA repository, run the following command:</p>
<pre>:~$ sudo add-apt-repository ppa:git-core/ppa
The most current stable version of Git for Ubuntu.
For release candidates, go to https://launchpad.net/~git-core/+archive/candidate .
More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa
Press [ENTER] to continue or Ctrl-c to cancel adding it.</pre>
<p><figure id="attachment_19980" aria-describedby="caption-attachment-19980" style="width: 1039px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19980" src="https://www.osradar.com/wp-content/uploads/2020/04/3-18.png" alt="3.- Adding the Git repository" width="1039" height="571" srcset="https://www.osradar.com/wp-content/uploads/2020/04/3-18.png 1039w, https://www.osradar.com/wp-content/uploads/2020/04/3-18-300x165.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/3-18-1024x563.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/3-18-768x422.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/3-18-696x382.png 696w" sizes="(max-width: 1039px) 100vw, 1039px" /><figcaption id="caption-attachment-19980" class="wp-caption-text">3.- Adding the Git repository</figcaption></figure></p>
<p>This same command will refresh the APT cache so when it&#8217;s done, just run it:</p>
<pre>:~$ sudo apt install git</pre>
<p>And if you&#8217;ve used the first method, just do a system upgrade:</p>
<pre>:~$ sudo apt upgrade</pre>
<p>Then, check the installed version:</p>
<pre>:~$ git --version
git version 2.26.2</pre>
<p><figure id="attachment_19981" aria-describedby="caption-attachment-19981" style="width: 386px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19981" src="https://www.osradar.com/wp-content/uploads/2020/04/4-14.png" alt="4.- Git new version" width="386" height="88" srcset="https://www.osradar.com/wp-content/uploads/2020/04/4-14.png 386w, https://www.osradar.com/wp-content/uploads/2020/04/4-14-300x68.png 300w" sizes="(max-width: 386px) 100vw, 386px" /><figcaption id="caption-attachment-19981" class="wp-caption-text">4.- Git new version</figcaption></figure></p>
<p>As you can see it has been updated to the latest stable version. Maybe at this moment, an update is not so necessary, but remember that <a href="https://www.osradar.com/ubuntu-20-04-lts-available/" target="_blank" rel="noopener noreferrer">Ubuntu will stay with us for 5 years</a> and will become necessary with time.</p>
<p>Now, you&#8217;re ready. You can use Git now.</p>
<p>We&#8217;ll take this opportunity to show you which <a href="https://www.osradar.com/some-graphical-clients-for-git/" target="_blank" rel="noopener noreferrer">Git Linux clients</a> we recommend.</p>
<h2 class="western">Conclusion</h2>
<p>Having the necessary tools makes any work easier and in the development of applications, it is clear that this mantra is fulfilled. So, Git is one of those applications that help control the development cycle of an application. It also helps developers control contributions and code changes.</p>
<p>So, now that you know how to install it on Ubuntu 20.04 it&#8217;s your turn to work.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-ubuntu-20-04/">How to install Git on Ubuntu 20.04?</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-git-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
