<?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>A glass case of thoughts &#187; create svn repo + chmod</title>
	<atom:link href="http://jyotsna.philogy.com/tag/create-svn-repo-chmod/feed/" rel="self" type="application/rss+xml" />
	<link>http://jyotsna.philogy.com</link>
	<description>Brain munch illustrated</description>
	<lastBuildDate>Wed, 24 Mar 2010 05:49:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>linux: create svn repository</title>
		<link>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/</link>
		<comments>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 06:38:57 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[create and checkout svn repository on linux]]></category>
		<category><![CDATA[create svn on linux]]></category>
		<category><![CDATA[create svn repo + chmod]]></category>
		<category><![CDATA[create svn repository linux]]></category>
		<category><![CDATA[create svn server]]></category>
		<category><![CDATA[creating repository using svn on linux]]></category>
		<category><![CDATA[linux commands to create a new repository]]></category>
		<category><![CDATA[svn create repo command line]]></category>
		<category><![CDATA[svn repo]]></category>
		<category><![CDATA[svn repository creation]]></category>
		<category><![CDATA[svnadmin]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=128</guid>
		<description><![CDATA[Assumptions:
You already have SVN installed on your linux server. If you do not know if it is installed, just type command

which svn

If this returns a valid path as output, then it means that svn is installed on your linux box. If not, you need to install it. Installing subversion is very easy (for most distributions) [...]]]></description>
			<content:encoded><![CDATA[<p><b>Assumptions:</b><br />
You already have SVN installed on your linux server. If you do not know if it is installed, just type command</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">which svn</pre></div></div>

<p>If this returns a valid path as output, then it means that svn is installed on your linux box. If not, you need to install it. Installing subversion is very easy (for most distributions) and ample documentation is available on the web. You can start with <a href="http://subversion.tigris.org">http://subversion.apache.org/</a>.</p>
<p><b>Four steps to complete svn repository creation on linux</b></p>
<ol>
<li>log onto server as root</li>
<li>I prefer to have all svn repositories in one directory for better organization and easy maintenance. So next step for me would be to change to my svn directory.

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cd /svnRepos</pre></div></div>

<p>If you do not already have a directory for svn repositories, I would recommend creating one.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mkdir svnRepos</pre></div></div>

</li>
<li>Create repository using following command</li>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin create /path/to/repo/RepoName</pre></div></div>

<p>where : RepoName is the name of repository to be created. As an example, I want to create a repository for my testproject. I would write</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin create testproject</pre></div></div>

<li>Change group ownership of repository for the intended group. In this case, consider I have a user group created as &#8220;all&#8221; and I want this group to have ownership to this repository.

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chown -R :all /path/to/repo/RepoName</pre></div></div>

</li>
<li>Grant Read/Write/Execute permissions to &#8220;all&#8221; on this repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chmod -R 770 /path/to/repo/RepoName</pre></div></div>

</li>
</ol>
<p>After this, all you need to do is</p>
<ul>
<li>Install a client like tortoiseSVN on the user&#8217;s machine</li>
<li>SVN Checkout the repository. I would use a URL like following to connect to my newly created repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://username@servername/path/to/repo/RepoName</pre></div></div>

<p>Where</p>
<ul>
<li>username: one of the users from group all</li>
<li>servername: my linux server which hosts SVN</li>
</ul>
<p>For my testproject, the path looks like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://jyotsnas@servername/svnRepos/testproject</pre></div></div>

</li>
</ul>
<p><strong>Related posts</strong></p>
<ul>
<li><a href="http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/">What to do : When your SVN client saves a wrong password</a></li>
<li><a href="http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/">linux how to: replicate svn repository</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">How to make SVN remember password</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
