<?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>Andrejs Cainikovs blog</title>
	<atom:link href="http://blog.stranadurakov.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stranadurakov.com</link>
	<description>Just another coder's weblog</description>
	<lastBuildDate>Tue, 09 Mar 2010 12:47:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OpenPGP key generation for GnuTLS</title>
		<link>http://blog.stranadurakov.com/2010/03/09/openpgp-key-generation-for-gnutls/</link>
		<comments>http://blog.stranadurakov.com/2010/03/09/openpgp-key-generation-for-gnutls/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 12:47:12 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=756</guid>
		<description><![CDATA[
Create key pair. Write down the key number.


gpg --gen-key


Edit the key with the command below.


gpg --edit-key 1F8D4A4C


In gpg prompt enter passwd and specify empty password, type quit.


gpg --armor --export 1F8D4A4C&#62; public.key
gpg --armor --export-secret-keys 1F8D4A4C&#62; secret.key


Delete keys from keyrings if required.


gpg --delete-secret-keys 1F8D4A4C
gpg --delete-keys 1F8D4A4C
]]></description>
			<content:encoded><![CDATA[<ul>
<li>Create key pair. Write down the key number.</li>
</ul>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gpg <span style="color: #660033;">--gen-key</span></div></div>

<ul>
<li>Edit the key with the command below.</li>
</ul>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gpg <span style="color: #660033;">--edit-key</span> 1F8D4A4C</div></div>

<ul>
<li>In gpg prompt enter <code>passwd</code> and specify empty password, type <code>quit</code>.</li>
</ul>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gpg <span style="color: #660033;">--armor</span> <span style="color: #660033;">--export</span> 1F8D4A4C<span style="color: #000000; font-weight: bold;">&gt;</span> public.key<br />
gpg <span style="color: #660033;">--armor</span> <span style="color: #660033;">--export-secret-keys</span> 1F8D4A4C<span style="color: #000000; font-weight: bold;">&gt;</span> secret.key</div></div>

<ul>
<li>Delete keys from keyrings if required.</li>
</ul>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gpg <span style="color: #660033;">--delete-secret-keys</span> 1F8D4A4C<br />
gpg <span style="color: #660033;">--delete-keys</span> 1F8D4A4C</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2010/03/09/openpgp-key-generation-for-gnutls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write In C</title>
		<link>http://blog.stranadurakov.com/2010/02/24/write-in-c/</link>
		<comments>http://blog.stranadurakov.com/2010/02/24/write-in-c/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 10:39:16 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=748</guid>
		<description><![CDATA[This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.
]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="355" type="application/x-shockwave-flash" data="http://www.youtube.com/v/XHosLhPEN3k"><param name="movie" value="http://www.youtube.com/v/XHosLhPEN3k" />This video was embedded using the YouTuber plugin by <a href="http://www.roytanck.com">Roy Tanck</a>. Adobe Flash Player is required to view the video.</object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2010/02/24/write-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion repository part migration</title>
		<link>http://blog.stranadurakov.com/2009/12/04/subversion-repository-part-migration/</link>
		<comments>http://blog.stranadurakov.com/2009/12/04/subversion-repository-part-migration/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 14:54:12 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=714</guid>
		<description><![CDATA[svnadmin dump /srv/svn/old-repo &#124; svndumpfilter include --drop-empty-revs --renumber-revs /directory-name &#62; directory.svndump
svnadmin load /srv/svn/new-repo &#60; directory.svndump

Please note, that if directory structure needs to be changed (for example, from /old-repo/projects/dir to /new-repo/dir) manual edit of dump file will not help. Instead, sed must be combined with svndumpfilter. Additional info regarding this topic can be found here.
]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">svnadmin</span> dump <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>old-repo <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">svndumpfilter</span> include <span style="color: #660033;">--drop-empty-revs</span> <span style="color: #660033;">--renumber-revs</span> <span style="color: #000000; font-weight: bold;">/</span>directory-name <span style="color: #000000; font-weight: bold;">&gt;</span> directory.svndump<br />
<span style="color: #c20cb9; font-weight: bold;">svnadmin</span> load <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>new-repo <span style="color: #000000; font-weight: bold;">&lt;</span> directory.svndump</div></div>

<p>Please note, that if directory structure needs to be changed (for example, from <code>/old-repo/projects/dir</code> to <code>/new-repo/dir</code>) manual edit of dump file will not help. Instead, <code>sed</code> must be combined with <code>svndumpfilter</code>. Additional info regarding this topic can be found <a href="http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2009/12/04/subversion-repository-part-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtualbox 3.1.x Linux guest dead keyboard fix</title>
		<link>http://blog.stranadurakov.com/2009/12/03/virtualbox-3-1-x-linux-guest-dead-keyboard-fix/</link>
		<comments>http://blog.stranadurakov.com/2009/12/03/virtualbox-3-1-x-linux-guest-dead-keyboard-fix/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 16:07:03 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vm]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=680</guid>
		<description><![CDATA[After new release of Virtualbox was installed and my virtual machine with OpenSUSE on-board had started, I&#8217;ve ended up with a dead keyboard. It worked fine on host Windows XP, but OpenSUSE VM was acting like there is no keyboard at all. Couple of minutes of brain activity and finger work I&#8217;ve found that /etc/X11/xorg.conf [...]]]></description>
			<content:encoded><![CDATA[<p>After new release of Virtualbox was installed and my virtual machine with OpenSUSE on-board had started, I&#8217;ve ended up with a dead keyboard. It worked fine on host Windows XP, but OpenSUSE VM was acting like there is no keyboard at all. Couple of minutes of brain activity and finger work I&#8217;ve found that <code>/etc/X11/xorg.conf</code> was replaced during Virtualbox Guest Additions update. Comparing <code>xorg.conf</code> between two latest VB releases, I was able to get the keyboard working. Here is a fix:</p>

<p><a href="http://blog.stranadurakov.com/wp-content/uploads/2009/12/vb-xorg.conf_.update.png"><div class="wp-caption alignleft" style="width: 160px"><img src="http://blog.stranadurakov.com/wp-content/uploads/2009/12/vb-xorg.conf_.update-150x150.png" alt="diff_small" /><p class="wp-caption-text">xorg.conf diff</p></div></a></p>

<ol>
<li>Restore old <code>xorg.conf</code> : <code>cp /etc/X11/xorg.conf.bak /etc/X11/xorg.conf</code></li>
<li>Add <code>Option "CoreKeyboard"</code> to <code>InputDevice</code> section of <code>Keyboard[0]</code></li>
<li>Add <code>Option "CorePointer"</code> to <code>InputDevice</code> section of <code>Mouse[1]</code></li>
<li>Add <code>Option "SendCoreEvents"</code> to <code>InputDevice</code> section of <code>Mouse[2]</code></li>
<li>Rename <code>Device</code> option from <code>InputDevice</code> section of <code>Mouse[2]</code> from <code>/dev/vboxadd</code> to <code>/dev/vboxguest</code></li>
</ol>

<p><br />
<br />
<br />
<br />
<br />
A screenshot for your pleasure!
<br />
<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2009/12/03/virtualbox-3-1-x-linux-guest-dead-keyboard-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KTY BOX</title>
		<link>http://blog.stranadurakov.com/2009/10/28/kty-box/</link>
		<comments>http://blog.stranadurakov.com/2009/10/28/kty-box/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 12:07:48 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=659</guid>
		<description><![CDATA[This guy rocks!

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

Link to the original article.
]]></description>
			<content:encoded><![CDATA[<p>This guy rocks!</p>

<p><object width="425" height="355" type="application/x-shockwave-flash" data="http://www.youtube.com/v/OKvZ4K5eA_c"><param name="movie" value="http://www.youtube.com/v/OKvZ4K5eA_c" />This video was embedded using the YouTuber plugin by <a href="http://www.roytanck.com">Roy Tanck</a>. Adobe Flash Player is required to view the video.</object></p>

<p><a href="http://ktyprojects.blogspot.com/2008/05/kty-box.html">Link</a> to the original article.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2009/10/28/kty-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change language in GIMP on Windows</title>
		<link>http://blog.stranadurakov.com/2009/09/17/how-to-change-language-in-gimp-on-windows/</link>
		<comments>http://blog.stranadurakov.com/2009/09/17/how-to-change-language-in-gimp-on-windows/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 09:55:41 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[GTK]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=618</guid>
		<description><![CDATA[After installing GIMP on my laptop I&#8217;ve found it&#8217;s language is set according to my regional settings. However, I have failed trying to change it to english because there is no visible configuration option for that. Now that&#8217;s weird!
After googling for few minutes I&#8217;ve found that this is not a GIMP problem but rather GTK+ [...]]]></description>
			<content:encoded><![CDATA[<p>After installing GIMP on my laptop I&#8217;ve found it&#8217;s language is set according to my regional settings. However, I have failed trying to change it to english because there is no visible configuration option for that. Now that&#8217;s weird!<br />
After googling for few minutes I&#8217;ve found that this is not a GIMP problem but rather <a href="http://www.gtk.org/download-windows.html">GTK+ for Windows</a> and to force it to use english translation by default you need to add <code>lang</code> environment variable with the value of <code>c</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2009/09/17/how-to-change-language-in-gimp-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing MinGW dll dependencies</title>
		<link>http://blog.stranadurakov.com/2009/09/14/removing-mingw-dll-dependencies/</link>
		<comments>http://blog.stranadurakov.com/2009/09/14/removing-mingw-dll-dependencies/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 14:31:44 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[MinGW]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=580</guid>
		<description><![CDATA[libgcc_s_dw2-1.dll

Passing -static-libgcc will remove this dependency for all languages other than C.
Note: C++ exceptions depends on this option.

mingwm10.dll

Remove -mthreads option from your makefile.
Note: Multithreading and C++ exceptions depends on this option.
]]></description>
			<content:encoded><![CDATA[<p><strong>libgcc_s_dw2-1.dll</strong></p>

<p>Passing <code>-static-libgcc</code> will remove this dependency for all languages other than C.<br />
Note: C++ exceptions depends on this option.</p>

<p><strong>mingwm10.dll</strong></p>

<p>Remove <code>-mthreads</code> option from your makefile.<br />
Note: Multithreading and C++ exceptions depends on this option.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2009/09/14/removing-mingw-dll-dependencies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set up library paths for configure</title>
		<link>http://blog.stranadurakov.com/2009/09/09/how-to-set-up-library-paths-for-configure/</link>
		<comments>http://blog.stranadurakov.com/2009/09/09/how-to-set-up-library-paths-for-configure/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 13:04:41 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gcc]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=577</guid>
		<description><![CDATA[env CPPFLAGS=&#34;-I/opt/local/include&#34; LDFLAGS=&#34;-L/opt/local/lib&#34; ./configure
]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #007800;">CPPFLAGS</span>=<span style="color: #ff0000;">&quot;-I/opt/local/include&quot;</span> <span style="color: #007800;">LDFLAGS</span>=<span style="color: #ff0000;">&quot;-L/opt/local/lib&quot;</span> .<span style="color: #000000; font-weight: bold;">/</span>configure</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2009/09/09/how-to-set-up-library-paths-for-configure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable system bell in msys</title>
		<link>http://blog.stranadurakov.com/2009/09/09/how-to-disable-system-bell-in-msys/</link>
		<comments>http://blog.stranadurakov.com/2009/09/09/how-to-disable-system-bell-in-msys/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 11:25:48 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[MinGW]]></category>
		<category><![CDATA[msys]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=572</guid>
		<description><![CDATA[$HOME/.inputrc:

# none, visible or audible
set bell-style none
]]></description>
			<content:encoded><![CDATA[<p>$HOME/.inputrc:</p>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># none, visible or audible</span><br />
<span style="color: #000000; font-weight: bold;">set</span> bell-style none</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2009/09/09/how-to-disable-system-bell-in-msys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove absolute path in svn+ssh</title>
		<link>http://blog.stranadurakov.com/2009/08/26/how-to-remove-absolute-path-in-svn-ssh/</link>
		<comments>http://blog.stranadurakov.com/2009/08/26/how-to-remove-absolute-path-in-svn-ssh/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 11:29:47 +0000</pubDate>
		<dc:creator>Andrejs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://blog.stranadurakov.com/?p=543</guid>
		<description><![CDATA[As you may or may not know there is a path difference between svn and svn+ssh links in case if subversion server is configured with default root directory:

/etc/sysconfig/svnserve:

SVNSERVE_OPTIONS=&#34;-d -R -r /path-to-repos&#34;

This way repository can be checked out using following commands (consider ssh is set up and working):

svn co svn://server.com/repository directory

or

svn co svn+ssh://server.com/path-to-repos/repository directory



The reason is [...]]]></description>
			<content:encoded><![CDATA[<p>As you may or may not know there is a path difference between svn and svn+ssh links in case if subversion server is configured with default root directory:</p>

<p>/etc/sysconfig/svnserve:</p>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">SVNSERVE_OPTIONS</span>=<span style="color: #ff0000;">&quot;-d -R -r /path-to-repos&quot;</span></div></div>

<p>This way repository can be checked out using following commands (consider ssh is set up and working):</p>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>server.com<span style="color: #000000; font-weight: bold;">/</span>repository directory</div></div>

<p>or</p>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>+<span style="color: #c20cb9; font-weight: bold;">ssh</span>:<span style="color: #000000; font-weight: bold;">//</span>server.com<span style="color: #000000; font-weight: bold;">/</span>path-to-repos<span style="color: #000000; font-weight: bold;">/</span>repository directory</div></div>

<p><span id="more-543"></span></p>

<p>The reason is simple &#8211; svn+ssh is just accessing a subversion repository <em>locally</em>, using SSH as the transport, and hence you have access to the entire filesystem. Svnserve daemon, in contrast, is told &#8220;start your paths with /path-to-repos&#8221;, and so you don&#8217;t have to specify it manually.
You can&#8217;t argue with me that this can be really annoying in case if, for example, you work with repositories from your local intranet over svn, and from outside world over ssh.</p>

<p>Solution is simple. Wrapper script in place of original <code>svnserve</code> binary:</p>

<p>Rename <code>svnserve</code> to, let&#8217;s say, <code>svnserve.bin</code>:</p>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svnserve</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>svnserve.bin</div></div>

<p>Save this script as <code>/usr/bin/svnserve</code>:</p>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>svnserve.bin <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>path-to-repos <span style="color: #ff0000;">&quot;$@&quot;</span></div></div>

<p>Update permissions:</p>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svnserve</span></div></div>

<p>Voila! Now your repository links will look similar for both svn and svn+ssh:</p>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>server.com<span style="color: #000000; font-weight: bold;">/</span>repository directory</div></div>

<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>+<span style="color: #c20cb9; font-weight: bold;">ssh</span>:<span style="color: #000000; font-weight: bold;">//</span>server.com<span style="color: #000000; font-weight: bold;">/</span>repository directory</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.stranadurakov.com/2009/08/26/how-to-remove-absolute-path-in-svn-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
