<?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>Botsko.net - Web Development in Portland, Oregon &#187; Subversion/CVS</title>
	<atom:link href="http://www.botsko.net/blog/category/subversioncvs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.botsko.net/blog</link>
	<description>continuing education</description>
	<lastBuildDate>Thu, 15 Dec 2011 20:07:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing Subversion on CentOS</title>
		<link>http://www.botsko.net/blog/2007/03/12/installing-subversion-on-centos/</link>
		<comments>http://www.botsko.net/blog/2007/03/12/installing-subversion-on-centos/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 03:43:04 +0000</pubDate>
		<dc:creator>Michael Botsko</dc:creator>
				<category><![CDATA[Subversion/CVS]]></category>

		<guid isPermaLink="false">http://www.botsko.net/blog/?p=173</guid>
		<description><![CDATA[I&#8217;ve been using subversion a lot recently &#8211; from using repositories with client development companies to installing it for clients &#8211; it seems to be the SVN month. Anywhere, here&#8217;s how I did it. Using CentOS 4.2. For anyone learning or using Subversion I highly recommend that you read the book. First you need to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using subversion a lot recently &#8211; from using repositories with client development companies to installing it for clients &#8211; it seems to be the SVN month. </p>
<p>Anywhere, here&#8217;s how I did it. Using CentOS 4.2. For anyone learning or using Subversion I highly recommend  that you <a href="http://svnbook.red-bean.com/nightly/en/svn-book.html">read <em>the book</em></a>.</p>
<p>First you need to get the package and install it.</p>
<p><code># wget http://subversion.tigris.org/downloads/subversion-1.3.2.tar.gz<br />
# gunzip subversion-1.3.2.tar.gz<br />
# tar -xvf subversion-1.3.2.tar<br />
# cd subversion-1.3.2<br />
# ./configure<br />
# make<br />
# make install</code></p>
<p>Then you&#8217;ll need to setup at least one repository. I&#8217;m going to need multiple repositories that I can use for different clients so I have a bit of extra admin work ahead of me. You can setup as many repositories as you need, but no matter what you&#8217;ll need at least one. Here create the folders&#8230;</p>
<p><code># mkdir /svn<br />
# mkdir /svn/repo</code></p>
<p>Then we need to tell subversion to make our first repository.<br />
<code><br />
# svnadmin create /svn/repo/myproject</code></p>
<p>For the time being, I&#8217;ll use the default svn server called <em>svnserve</em>. You can use apache to get a ton of extra features and better security. Click here for more information on using <a href="http://alexle.net/archives/138">Apache with subversion</a>. I need do some additional research for my multiple-repository setup before switching to apache though.</p>
<p>First, I need to setup a config file for svnserve.</p>
<p><code># vi /svn/repo/myproject/conf/svnserve.conf</code></p>
<p>Then, look for variations of the following code and edit it as necessary. By default any anonymous user can access the code so to disable that you <strong>must</strong> include anon-access = none, just commenting the value out will not prevent anonymous access.</p>
<p><code>anon-access = none<br />
password-db = passwd<br />
realm = My SVN Repository<br />
auth-access = write</code></p>
<p>The password-db is just a path to a file containing usernames and passwords. This is automatically created by svn inside the repository conf directory. So, save your changes and then we’ll edit said user file.</p>
<p><code># vi passwd</code></p>
<p>Enter in something like:</p>
<p><code>[users]<br />
username = password</code></p>
<p>Yes, pretty basic. See what I meant about svnserve and security? The password is in plain text so if someone ever got your system or that file, they&#8217;ll have the passwords inside. That&#8217;s one more reason to move to apache.</p>
<p>Anyway, you&#8217;ll need to start the svn server.</p>
<p><code># svnserve -d</code></p>
<p>One side note &#8211; svnserve just runs and doesn&#8217;t have a way to stop besides killing the process. If you make changes to the svnserve.conf or user file you&#8217;ll need to restart svnserve.</p>
<p><code># killall svnserve</code></p>
<p>Then, go ahead and test (best to do so on a different machine).<br />
<code><br />
# svn co --username=myusername svn://&lt;hostname&gt;/svn/repo/myproject<br />
</code></p>
<p>The system should then ask you for your password and off you go!</p>
<p><strong>Update 6/25/09:</strong> Minor clarifications thanks to Andy Hunt.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.botsko.net/blog/2007/03/12/installing-subversion-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

