<?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>cameronyule.com &#187; Server</title>
	<atom:link href="http://cameronyule.com/categories/server/feed" rel="self" type="application/rss+xml" />
	<link>http://cameronyule.com</link>
	<description>Glasgow based new media developer Cameron Yule.</description>
	<lastBuildDate>Fri, 22 Jan 2010 12:53:38 +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>Configuring MySQL to use UTF-8</title>
		<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8</link>
		<comments>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8#comments</comments>
		<pubDate>Tue, 15 Jul 2008 10:07:13 +0000</pubDate>
		<dc:creator>Cameron</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[internationalisation]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://cameronyule.com/?p=56</guid>
		<description><![CDATA[A project I&#8217;m working on at the moment is going to have multiple language options available, not all of which use the same alphabet (e.g. Russian and Chinese). To lessen the pain commonly associated with internationalisation on the web, it&#8217;s beneficial to use the UTF-8 character set. This short summary from the Unicode Consortium may [...]]]></description>
			<content:encoded><![CDATA[<p>A project I&#8217;m working on at the moment is going to have multiple language options available, not all of which use the same alphabet (e.g. Russian and Chinese).</p>
<p>To lessen the pain commonly associated with internationalisation on the web, it&#8217;s beneficial to use the UTF-8 character set. This short summary from the <a href="http://www.unicode.org/">Unicode Consortium</a> may help explain better;</p>
<blockquote><p>Unicode provides a unique number for every character, no matter what the platform, no matter what the program, no matter what the language.<br />
…<br />
Unicode enables a single software product or a single website to be targeted across multiple platforms, languages and countries without re-engineering. It allows data to be transported through many different systems without corruption.</p></blockquote>
<p>Thankfully MySQL has supported Unicode for quite some time now, even if it&#8217;s not configured to use it by default.</p>
<p>First, let&#8217;s check what our settings are at the moment;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> SHOW VARIABLES LIKE <span style="color: #ff0000;">'collation%'</span>;
+----------------------+-------------------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name        <span style="color: #000000; font-weight: bold;">|</span> Value             <span style="color: #000000; font-weight: bold;">|</span>
+----------------------+-------------------+
<span style="color: #000000; font-weight: bold;">|</span> collation_connection <span style="color: #000000; font-weight: bold;">|</span> latin1_swedish_ci <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> collation_database   <span style="color: #000000; font-weight: bold;">|</span> latin1_swedish_ci <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> collation_server     <span style="color: #000000; font-weight: bold;">|</span> latin1_swedish_ci <span style="color: #000000; font-weight: bold;">|</span>
+----------------------+-------------------+
<span style="color: #000000;">3</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.01</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> SHOW VARIABLES LIKE <span style="color: #ff0000;">'character_set%'</span>;
+--------------------------+----------------------------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name            <span style="color: #000000; font-weight: bold;">|</span> Value                      <span style="color: #000000; font-weight: bold;">|</span>
+--------------------------+----------------------------+
<span style="color: #000000; font-weight: bold;">|</span> character_set_client     <span style="color: #000000; font-weight: bold;">|</span> latin1                     <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_connection <span style="color: #000000; font-weight: bold;">|</span> latin1                     <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_database   <span style="color: #000000; font-weight: bold;">|</span> latin1                     <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_filesystem <span style="color: #000000; font-weight: bold;">|</span> binary                     <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_results    <span style="color: #000000; font-weight: bold;">|</span> latin1                     <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_server     <span style="color: #000000; font-weight: bold;">|</span> latin1                     <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_system     <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_sets_dir       <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>charsets<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> 
+--------------------------+----------------------------+
<span style="color: #000000;">8</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>That&#8217;s to be expected, but it&#8217;s not really what we wanted. </p>
<p>Find your MySQL configuration file (on most Linux/BSD systems it&#8217;s /etc/my.cnf) and make sure it&#8217;s got the following statements under the relevant headers.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld<span style="color: #7a0874; font-weight: bold;">&#93;</span>
default-character-set=utf8
default-collation=utf8_general_ci
character-set-server=utf8
collation-server=utf8_general_ci
init-connect=<span style="color: #ff0000;">'SET NAMES utf8'</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>client<span style="color: #7a0874; font-weight: bold;">&#93;</span>
default-character-set=utf8</pre></div></div>

<p>Restart MySQL and make sure it&#8217;s working;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">service mysql restart</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> SHOW VARIABLES LIKE <span style="color: #ff0000;">'collation%'</span>;
+----------------------+-----------------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name        <span style="color: #000000; font-weight: bold;">|</span> Value           <span style="color: #000000; font-weight: bold;">|</span>
+----------------------+-----------------+
<span style="color: #000000; font-weight: bold;">|</span> collation_connection <span style="color: #000000; font-weight: bold;">|</span> utf8_general_ci <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> collation_database   <span style="color: #000000; font-weight: bold;">|</span> utf8_general_ci <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> collation_server     <span style="color: #000000; font-weight: bold;">|</span> utf8_general_ci <span style="color: #000000; font-weight: bold;">|</span> 
+----------------------+-----------------+
<span style="color: #000000;">3</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> SHOW VARIABLES LIKE <span style="color: #ff0000;">'character_set%'</span>;
+--------------------------+----------------------------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name            <span style="color: #000000; font-weight: bold;">|</span> Value                      <span style="color: #000000; font-weight: bold;">|</span>
+--------------------------+----------------------------+
<span style="color: #000000; font-weight: bold;">|</span> character_set_client     <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_connection <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_database   <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_filesystem <span style="color: #000000; font-weight: bold;">|</span> binary                     <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_results    <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_server     <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_set_system     <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> character_sets_dir       <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>charsets<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> 
+--------------------------+----------------------------+
<span style="color: #000000;">8</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Update; <a href="http://nevali.net/">Mo</a> pointed out that it&#8217;s worth demonstrating setting the charset and collation when creating tables too (good point!).</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`content`</span> <span style="color: #66cc66;">&#40;</span>
  <span style="color: #ff0000;">`id`</span> <span style="color: #993333; font-weight: bold;">INT</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">,</span>
  <span style="color: #ff0000;">`language`</span> <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">CHARACTER</span> <span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_general_ci <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span>
  <span style="color: #ff0000;">`title`</span> <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">CHARACTER</span> <span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_general_ci <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">,</span>
  <span style="color: #993333; font-weight: bold;">PRIMARY</span> <span style="color: #993333; font-weight: bold;">KEY</span>  <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">`id`</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span> ENGINE<span style="color: #66cc66;">=</span>MyISAM <span style="color: #993333; font-weight: bold;">CHARACTER</span> <span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_general_ci;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Multiple users with svn+ssh</title>
		<link>http://cameronyule.com/2008/07/multiple-users-with-svnssh</link>
		<comments>http://cameronyule.com/2008/07/multiple-users-with-svnssh#comments</comments>
		<pubDate>Fri, 11 Jul 2008 09:07:54 +0000</pubDate>
		<dc:creator>Cameron</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svnserve]]></category>

		<guid isPermaLink="false">http://cameronyule.com/?p=54</guid>
		<description><![CDATA[Following on from my last post on moving from svnserve to svn+ssh, I had to then get this setup working for multiple users. This is how I achieved it on CentOS 5.2, hopefully it&#8217;ll prove useful for someone else. This is based on a tutorial I found on the subversion dev mailing list. # We [...]]]></description>
			<content:encoded><![CDATA[<p>Following on from my last post on <a href="http://cameronyule.com/2008/07/moving-from-svnserve-to-svnssh">moving from svnserve to svn+ssh</a>, I had to then get this setup working for multiple users. This is how I achieved it on CentOS 5.2, hopefully it&#8217;ll prove useful for someone else.</p>
<p>This is based on a <a href="http://svn.haxx.se/dev/archive-2004-03/0253.shtml">tutorial</a> I found on the subversion dev mailing list.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># We need a group for our svn users</span>
groupadd svnusers
&nbsp;
<span style="color: #666666; font-style: italic;"># Add the users</span>
useradd <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #660033;">-g</span> svnusers <span style="color: #666666; font-style: italic;"># this is the svn 'admin' user</span>
useradd user1 <span style="color: #660033;">-g</span> svnusers
useradd user2 <span style="color: #660033;">-g</span> svnusers
useradd user3 <span style="color: #660033;">-g</span> svnusers
useradd user4 <span style="color: #660033;">-g</span> svnusers
<span style="color: #666666; font-style: italic;"># … etc</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Edit each svn user's .bashrc file, e.g.</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> - user1
<span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #660033;">-w</span> .bashrc
&nbsp;
<span style="color: #666666; font-style: italic;"># Add the followng line to the bottom</span>
<span style="color: #7a0874; font-weight: bold;">umask</span> 002 <span style="color: #666666; font-style: italic;"># allow user + group to write, no other. </span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Create the dir where we're storing the repo (as root)</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>subversion<span style="color: #000000; font-weight: bold;">/</span>repositories
&nbsp;
<span style="color: #666666; font-style: italic;"># Set permissions on our new dir</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> root.svnusers <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>subversion<span style="color: #000000; font-weight: bold;">/</span>repositories
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> u+wrx,g+wrx,o-wxr <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>subversion<span style="color: #000000; font-weight: bold;">/</span>repositories
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> root.svnusers <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>subversion
&nbsp;
<span style="color: #666666; font-style: italic;"># The following may be overkill</span>
<span style="color: #666666; font-style: italic;"># chown -R root.svnusers /usr/share</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Rename the original svnserve command into svnserve.bin </span>
<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
&nbsp;
<span style="color: #666666; font-style: italic;"># Create a new svnserve file</span>
<span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #660033;">-w</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>
&nbsp;
<span style="color: #666666; font-style: italic;"># Paste the following into nano and save as svnserve</span>
<span style="color: #666666; font-style: italic;">#!/bin/sh </span>
<span style="color: #666666; font-style: italic;"># wrap in order to put root in by default </span>
<span style="color: #666666; font-style: italic;"># Script implemented by Adrian Robert &lt;arobert @cogsci.ucsd.edu&gt; </span>
<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>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>subversion<span style="color: #000000; font-weight: bold;">/</span>repositories <span style="color: #ff0000;">&quot;$@&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Make our svnserve wrapper executable</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> u+wrx,g+rx-w,o+xr-w <span style="color: #c20cb9; font-weight: bold;">svnserve</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> u+wrx,g+rx-w,o+xr-w <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>
&nbsp;
<span style="color: #666666; font-style: italic;"># Log in as the svn user</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> - <span style="color: #c20cb9; font-weight: bold;">svn</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Create our repos</span>
<span style="color: #c20cb9; font-weight: bold;">svnadmin</span> create <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>subversion<span style="color: #000000; font-weight: bold;">/</span>repositories<span style="color: #000000; font-weight: bold;">/</span>projects
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>subversion<span style="color: #000000; font-weight: bold;">/</span>repositories<span style="color: #000000; font-weight: bold;">/</span>projects<span style="color: #000000; font-weight: bold;">/</span>conf 
&nbsp;
<span style="color: #666666; font-style: italic;"># Edit the repo conf</span>
<span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #660033;">-w</span> svnserve.conf
&nbsp;
<span style="color: #666666; font-style: italic;"># Add the following under the [general] header</span>
anon-access = none
auth-access = <span style="color: #c20cb9; font-weight: bold;">write</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cameronyule.com/2008/07/multiple-users-with-svnssh/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Moving from svnserve to svn+ssh</title>
		<link>http://cameronyule.com/2008/07/moving-from-svnserve-to-svnssh</link>
		<comments>http://cameronyule.com/2008/07/moving-from-svnserve-to-svnssh#comments</comments>
		<pubDate>Wed, 09 Jul 2008 11:22:54 +0000</pubDate>
		<dc:creator>Cameron</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svnserve]]></category>

		<guid isPermaLink="false">http://cameronyule.com/?p=53</guid>
		<description><![CDATA[After mentioning that I was using svnserve, a friend sent me a twitter message asking why I wasn&#8217;t using svn+ssh, so I thought I&#8217;d have a look. It turned out to be really simple to make the move, and I&#8217;m left with a nicer setup than before. Firstly, let&#8217;s kill the running svnserve process as [...]]]></description>
			<content:encoded><![CDATA[<p>After mentioning that I was using svnserve, a friend sent me a twitter message asking why I wasn&#8217;t using svn+ssh, so I thought I&#8217;d have a look. It turned out to be really simple to make the move, and I&#8217;m left with a nicer setup than before.</p>
<p>Firstly, let&#8217;s kill the running svnserve process as we&#8217;re not going to be using that anymore.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>user<span style="color: #000000; font-weight: bold;">@</span>server ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">ps</span> aux <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>
user     <span style="color: #000000;">2495</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">0.3</span>  <span style="color: #000000;">45856</span>   <span style="color: #000000;">940</span> ?          Ss    <span style="color: #000000;">20</span>:02   <span style="color: #000000;">0</span>:00 <span style="color: #c20cb9; font-weight: bold;">svnserve</span> <span style="color: #660033;">-d</span> <span style="color: #660033;">-r</span> repository<span style="color: #000000; font-weight: bold;">/</span>
user     <span style="color: #000000;">2501</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">0.2</span>   <span style="color: #000000;">3936</span>    <span style="color: #000000;">724</span> pts<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span>     S+   <span style="color: #000000;">20</span>:02   <span style="color: #000000;">0</span>:00 <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>user<span style="color: #000000; font-weight: bold;">@</span>server ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #000000;">2495</span></pre></div></div>

<p>If you&#8217;ve specifically opened port 3690 (which is the default svnserve port) in your firewall you should close that again now. You can check your current firewall ruleset using the list flag.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>user<span style="color: #000000; font-weight: bold;">@</span>server ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ iptables <span style="color: #660033;">--list</span></pre></div></div>

<p>I happen to run ssh on a non-standard port, so to save myself having to specify this each time I&#8217;ve overridden the default tunnel subversion has setup for ssh. This stage is run on your local machine (or where you want to check out your repository).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">local</span>:~ cameron$ <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #660033;">-w</span> .subversion<span style="color: #000000; font-weight: bold;">/</span>config</pre></div></div>

<p>Under the [tunnels] section, I added the following line. Note that XXXX is where my non-standard port is specified, and REMOTEUSERNAME is the username I&#8217;m using to connect to the server to checkout my repository. The -C flag enables compression, and seems to greatly speed things up.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</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;">ssh</span> <span style="color: #660033;">-p</span> XXXX <span style="color: #660033;">-l</span> REMOTEUSERNAME <span style="color: #660033;">-C</span></pre></div></div>

<p>Okay, so let&#8217;s try and check something out! I&#8217;m hoping you have ssh keys configured already, but if not here&#8217;s an <a href="http://www.sshkeychain.org/mirrors/SSH-with-Keys-HOWTO/SSH-with-Keys-HOWTO.html">SSH Keys Howto</a>. Note you have to specify absolute paths now.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">local</span>:~ cameron$ <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>yoururl<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>trunk
A    trunk<span style="color: #000000; font-weight: bold;">/</span>wp-config.php
A    trunk<span style="color: #000000; font-weight: bold;">/</span>wp-pass.php
A    trunk<span style="color: #000000; font-weight: bold;">/</span>wp-rss.php
…</pre></div></div>

<p>With any luck, that&#8217;ll checkout your repository. </p>
<p>If you already have a repository checked out and don&#8217;t want to delete it and checkout again, there&#8217;s a solution for you too. Change into your local working copy and run the following;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">local</span>:projects cameron$ <span style="color: #c20cb9; font-weight: bold;">svn</span> switch <span style="color: #660033;">--relocate</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>yoururl<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>trunk <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>yoururl<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>trunk</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cameronyule.com/2008/07/moving-from-svnserve-to-svnssh/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing PHP on 64-bit systems</title>
		<link>http://cameronyule.com/2008/04/installing-php-on-64-bit-systems</link>
		<comments>http://cameronyule.com/2008/04/installing-php-on-64-bit-systems#comments</comments>
		<pubDate>Sat, 19 Apr 2008 19:57:24 +0000</pubDate>
		<dc:creator>Cameron</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://cameronyule.com/?p=3</guid>
		<description><![CDATA[I was trying to install PHP 5.2.5 using Litespeed’s handy admin interface (saves ssh&#8217;ing into the server), but kept being met with the following error when it was trying to compile; configure: error: libpng.&#40;a&#124;so&#41; not found. Turns out it&#8217;s related to my system being 64-bit (I&#8217;m using CentOS 5 on Slicehost) and where libpng is [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to install PHP 5.2.5 using <a href="http://www.litespeedtech.com/products/webserver/overview/">Litespeed</a>’s handy admin interface (saves ssh&#8217;ing into the server), but kept being met with the following error when it was trying to compile;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">configure: error: libpng.<span style="color: #7a0874; font-weight: bold;">&#40;</span>a<span style="color: #000000; font-weight: bold;">|</span>so<span style="color: #7a0874; font-weight: bold;">&#41;</span> not found.</pre></div></div>

<p>Turns out it&#8217;s related to my system being 64-bit (I&#8217;m using CentOS 5 on <a href="http://www.slicehost.com">Slicehost</a>) and where libpng is installed and so on. Found the answer in <a href="http://bugs.php.net/bug.php?id=34722">this PHP bug report</a> where we specifically tell configure where to look;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-libdir</span>=lib64 …</pre></div></div>

<p>Sorted!</p>
]]></content:encoded>
			<wfw:commentRss>http://cameronyule.com/2008/04/installing-php-on-64-bit-systems/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

