<?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>Just Programmer &#187; Webfaction</title>
	<atom:link href="http://siliconz.com/blog/tag/webfaction/feed/" rel="self" type="application/rss+xml" />
	<link>http://siliconz.com/blog</link>
	<description>Because code matters</description>
	<lastBuildDate>Wed, 18 Nov 2009 15:36:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Mercurial on a shared webhosting: Dreamhost</title>
		<link>http://siliconz.com/blog/2009/01/30/installing-mercurial-on-a-shared-webhosting-dreamhost/</link>
		<comments>http://siliconz.com/blog/2009/01/30/installing-mercurial-on-a-shared-webhosting-dreamhost/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 09:24:15 +0000</pubDate>
		<dc:creator>rlopes</dc:creator>
				<category><![CDATA[Mercurial]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Webfaction]]></category>

		<guid isPermaLink="false">http://sili.co.nz/blog/?p=127</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "griffonrl";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "Tahoma";
ch_font_text = "Tahoma";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<div style="float: right;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-1503764426555348";
/* 234x60, created 12/16/08 */
google_ad_slot = "6722202365";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>Today I&#8217;m starting a small series of articles about setting up a version control system and a project management tool on a shared host.</p>
<p>I can&#8217;t guarantee that the following steps will work with every webhost. If you have a VPS or a dedicated server you&#8217;re fine since you can do whatever you want. If not, <a title="Webfaction" href="http://www.webfaction.com?affiliate=grifonrl" target="_blank">Webfaction</a> is offering a very powerful shared hosting or if you want to enjoy a very good shared hosting for a small the price an plenty of disk space, you can turn to <a title="Dreamhost" href="http://www.dreamhost.com/r.cgi?480356" target="_blank">Dreamhost</a>.<span id="more-127"></span> They ran crazy offers between Christmas and New Year day, huge 80% off on new 2 years hosting plans. Even without a special offer, this is still one of the best value in the business.</p>
<p>I am using a Dreamhost account for the business, for small and medium sized sites, this is just fine. The uptime is very good too: most weeks 100%.<br />
I also have a personal Dreamhost account to play with. They offer a one-click installation for Subversion, but since I moved to <a title="Mercurial" href="http://www.selenic.com/mercurial/wiki/" target="_blank">Mercurial</a> I had to setup a central repository online using Mercurial for my next projects and since Dreamhost provide plenty of dick space&#8230;</p>
<p>So, for Dreamhost users, here we go:</p>
<ul>
<li>Go to <a title="Dreamhost web panel" href="https://panel.dreamhost.com/" target="_blank">https://panel.dreamhost.com/</a> and <strong>log in</strong>.</li>
<li>Click on <strong>Users &gt; Manage Users</strong>, select the user you want to use and click <strong>Edit</strong>.</li>
<li>In <strong>User Account Type</strong>, select <strong>Shell account</strong> and on <strong>Save Changes</strong>.</li>
<li>Now you can access your Dreamhost account using SSH and go beyond what the Web panel provides you.</li>
<li>if you are a Windows user you can access SSH with <a title="PuTTY" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY</a>, if you are running on a Mac or Unix/Linux open a Terminal window and type <code>ssh</code>.</li>
<li>Using PuTTY or a Terminal, type <code>ssh user@mydomain.com</code> where <code>user</code> is the user with shell account access and <code>mydomain.com</code> is your domain. Type <code>yes</code> if you are asked<br />
<blockquote><p>Are you sure you want to continue connecting (yes/no)?</p></blockquote>
<p>and enter your password when asked. You will be logged in your Home directory. Type <code>ls -lFa</code> to see its content.</li>
<li>You may already have a Mercurial installed somewhere in the hosting server, try to type <code>hg --version</code>. In my case I had the outdated 0.9.1 version installed on my shared server. If the latest version is already there you don&#8217;t need to go further in this tutorial.</li>
<li>As of the 29th of January 2009, the current version of Mercurial os the 1.1.2. If there is a new version, you will have to update the next command.</li>
<li>We need to download the latest version. Type <code>wget http://www.selenic.com/mercurial/release/mercurial-1.1.2.tar.gz</code></li>
<li>As soon as the download is over, type ls -lFa if you want to see the downloaded file.</li>
<li>Next step is uncompress the archive. Type <code>tar xvzf mercurial-1.1.2.tar.gz</code>. A <code>mercurial-1.1.2</code> directory will be created and will contain all the Mercurial files.</li>
<li>To get into the mercurial directory. Type <code>cd mercurial-1.1.2</code>.</li>
<li>Next step is to compile the whole thing for your server. Type <code>make all</code>.</li>
<li>Since our objective is to install Mercurial in our home directory, we will use a very nice option of the Mercurial makefile that makes it easy. Type <code>make install-home</code>. This will create a <code>lib</code> and <code>bin</code> directories and deploy in your Home directory you very own working version of Mercurial.</li>
<li>And you are almost done. If you want to clean up now (or later) the downloaded Mercurial tar file and the <code>mercurial-1.1.2 </code>directory, come back to your root directory (your Home) and type <code>rm mercurial-1.1.2.tar.gz</code> and <code>rm -r mercurial-1.1.2</code> to save some space.</li>
<li>The last important step is to update the shell path to include our brand new <code>bin</code> directory in our Home to the server list of bin directories. So our <code>hg</code> command will be found and will be useable.</li>
<li>Come back to your root directory (your Home) and type <code>nano .bashrc</code> (or <code>vi .bashrc</code>) if you are using Bash shell. Type <code>ls -lFa</code> to make sure which rc file do you have. You will <strong>also</strong> need to update your shell profile file. Again if you use Bash, type <code>nano .bash_profile</code> (or <code>vi .bash_profile</code>).</li>
<li>What you need to type inside both files before saving them:<br />
<blockquote><p>export PYTHONPATH=~/lib/python<br />
export PATH=~/bin:$PATH</p></blockquote>
</li>
<li>And you are done. Type <code>exit</code> to quit the shell and close your ssh connection.To test your Mercurial installation, connect back to your account again with ssh and type <code>hg --version</code>. You should see:<br />
<blockquote>Mercurial Distributed SCM (version 1.1.2).</p></blockquote>
<div style="float: left;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-1503764426555348";
/* 234x60, created 12/16/08 */
google_ad_slot = "6722202365";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>If not check your <code>.bashrc</code> and <code>.bash_profile</code> files.</li>
</ul>
<p>&nbsp;</p>
<p>This is just a first step. Having Mercurial installed is just the beginning. In the next article we will see how to make use of Mercurial by creating a repository for a project and sharing it over the Internet.</p>
<p>Please note that I assumed your server has Python installed and at least a version 2.4 or newer. Dreamhost has it. If you get ssh access on your shared host, there is solutions to install also your very own Python version in your Home directory. But I will leave that for another post.</p>
<p>Until next time,</p>
<p><em>Code with pleasure.</em></p>
<p>Richard Lopes</p>
]]></content:encoded>
			<wfw:commentRss>http://siliconz.com/blog/2009/01/30/installing-mercurial-on-a-shared-webhosting-dreamhost/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.352 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-06-02 03:00:14 -->
<!-- Compression = gzip -->