<?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>Subversion Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 19 Aug 2021 16:50:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<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>
	</channel>
</rss>
