<?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>Connecting the dots... &#187; sshfs</title>
	<atom:link href="http://blog.rajatpandit.com/tag/sshfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com</link>
	<description>Thoughts on Web Development, Infrastructure and Application Scalability</description>
	<lastBuildDate>Thu, 29 Dec 2011 13:21:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>svn: This client is too old to work with working copy &#8216;.&#8217;; please get a newer Subversion client</title>
		<link>http://blog.rajatpandit.com/2009/12/31/svn-this-client-is-too-old-to-work-with-working-copy-please-get-a-newer-subversion-client/</link>
		<comments>http://blog.rajatpandit.com/2009/12/31/svn-this-client-is-too-old-to-work-with-working-copy-please-get-a-newer-subversion-client/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 10:59:32 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[JeOS]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=437</guid>
		<description><![CDATA[How about this, you wake up in the morning and decided to resume development (I know this sounds sad considering today is 31st of Dec), you type svn update and...]]></description>
			<content:encoded><![CDATA[<p>How about this, you wake up in the morning and decided to resume  development (I know this sounds sad considering today is 31st of Dec), you type <code>svn update</code> and you get the error:</p>
<pre class="brush: bash; title: ; notranslate">
$ svn update
svn: This client is too old to work with working copy '.'; please get a newer Subversion client
</pre>
<p>So this is what my development setup looks like, I run a vm of <a href="http://www.ubuntu.com/products/whatisubuntu/serveredition/jeos">JeOS</a> and mount it on my mac using <a href="http://www.sccs.swarthmore.edu/users/08/mgorbach/MacFusionWeb/index_old.html">macfusion</a>. So I have access to my code on both via ssh and via terminal. I got the above error as I accidentally did this update on the host machine side which had svn version 1.6.5 running where as on my vm I was still running 1.4.6. So searching for a couple of mins on the internet, I managed to update my version of svn on JeOS (which is actually another version <a href="http://ubuntu.com">ubuntu</a> but for servers).  I am documenting the steps below just in case anyone else might find it useful.</p>
<p>Open the sources.list and update it with the new source.</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo vi /etc/apt/sources.list
</pre>
<p>and add the following two lines at the bottom</p>
<pre class="brush: bash; title: ; notranslate">
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu hardy main
deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu hardy main
</pre>
<p><code>hardy</code> can be replaced by your version ubuntu, I am still on ubuntu as its just a development server with the latest version of apache, mysql and it works very well for me, so no reason to upgrade yet. Also JeOS is available on the not so latest version of ubuntu anyway.</p>
<p>Add the related key signature</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 413576CB
</pre>
<p>413576CB is the signing key on the home page of the project <a href="https://launchpad.net/~anders-kaseorg/+archive/subversion-1.6">https://launchpad.net/~anders-kaseorg/+archive/subversion-1.6</a>. </p>
<p><strong>Signing key:</strong><br />
    1024R/413576CB<br />
<strong>Fingerprint:</strong><br />
    026491A5DD081BDC6CDFC0DE6298AD34413576CB </p>
<p>Now all you need to do is update your aptitude cache and upgrade the version of svn.</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo apt-get update
$ sudo apt-get --reinstall install subversion
</pre>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/12/31/svn-this-client-is-too-old-to-work-with-working-copy-please-get-a-newer-subversion-client/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making MacFusion work on Snow Leopard</title>
		<link>http://blog.rajatpandit.com/2009/11/07/making-macfusion-work-on-snow-leopard/</link>
		<comments>http://blog.rajatpandit.com/2009/11/07/making-macfusion-work-on-snow-leopard/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 13:31:05 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[macfusion]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=404</guid>
		<description><![CDATA[Its that time again, when you upgrade your OS and things break and you need to dig around to make it for again. My MacFusion broke after the upgrade, so...]]></description>
			<content:encoded><![CDATA[<p>Its that time again, when you upgrade your OS and things break and you need to dig around to make it for again. My MacFusion broke after the upgrade, so after a bit of searching, this is the solution I found.<br />
Quick currently running macfusion and go to System Preferences and click on the check box called &#8216;Show Beta Versions&#8217; and then hit on upgrade.</p>
<p>After the update is done, run the following command to get rid of the dynamic lib <code>sshnodelay.so</code></p>
<pre class="brush: bash; title: ; notranslate">
busybox:~ rp$ rm /Applications//Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so
</pre>
<p>That&#8217;s pretty much you need to do, restart MacFusion and it works again.I am currently running version 2.1.5 (Beta) but once its out of Beta you wouldn&#8217;t need to do any of this fancy stuff to get it working.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/11/07/making-macfusion-work-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable textmate from creating ._* files over the network</title>
		<link>http://blog.rajatpandit.com/2009/06/11/disable-textmate-from-creating-_-files-over-the-network/</link>
		<comments>http://blog.rajatpandit.com/2009/06/11/disable-textmate-from-creating-_-files-over-the-network/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 21:59:04 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[._]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=263</guid>
		<description><![CDATA[I have this problem every so often when I setup a new work env, this time is running a vm and accessing the share via sshfs.]]></description>
			<content:encoded><![CDATA[<p>I have this problem every so often when I setup a new work env, this time is running a vm and accessing the share via sshfs.</p>
<pre class="brush: bash; title: ; notranslate">
defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1
</pre>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/06/11/disable-textmate-from-creating-_-files-over-the-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securely mount remote unix directory using SSHFS</title>
		<link>http://blog.rajatpandit.com/2009/02/20/securely-mount-remote-unix-directory-using-sshfs/</link>
		<comments>http://blog.rajatpandit.com/2009/02/20/securely-mount-remote-unix-directory-using-sshfs/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 17:13:01 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[dev environment]]></category>
		<category><![CDATA[devbox]]></category>
		<category><![CDATA[distro]]></category>
		<category><![CDATA[dynamic linker]]></category>
		<category><![CDATA[easy solution]]></category>
		<category><![CDATA[easynews]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[ld]]></category>
		<category><![CDATA[lib]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[macfusion]]></category>
		<category><![CDATA[search path]]></category>
		<category><![CDATA[sft]]></category>
		<category><![CDATA[sourceforge]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[tar gz]]></category>
		<category><![CDATA[work environment]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=218</guid>
		<description><![CDATA[There are times when your work environment is setup such that your dev environment is setup on another box and you have to edit code on that code a quick...]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.rajatpandit.com/wp-content/uploads/2009/02/osx-samba-sshfs.jpg" alt="sshfs" title="sshfs" width="600" height="200" class="aligncenter size-full wp-image-219" /></p>
<p>There are times when your work environment is setup such that your dev environment is setup on another box and you have to edit code on that code a quick an easy solution is to login to the box, over <code>ssh</code> and update the code over <code>vi</code>. However most people wouldn&#8217;t want to leave the luxury of leaving their favorite text editor and working on the unfriendly text based editor.*</p>
<p>So on a mac, you can mount a remote file system as a drive using a free software called <a href="http://www.macfusionapp.org/">Macfusion</a> which is awesome. </p>
<p>On linux if you just want to edit a couple of files, you have the option accessing files over sft provided by nautilus.</p>
<p>Places -> Connect To Server and then choose sftp for Service Type.</p>
<p>It gets tricky when you want to be able to load the entire directory inside a code editor and work as if you were working locally. Using macfusion allows you to do that it mounts the files as a drive. Doing it on Linux requires a little more work. </p>
<p>Get the <code>sshfs</code> and <code>fuse</code> code packages and do the regular <code>configure</code>, <code>make</code> and <code>sudo make install</code> on it.<br />
The following steps are for the redhat enterprise settings but can be adopted for your distro.</p>
<pre class="brush: bash; title: ; notranslate">
$ wget http://superb-west.dl.sourceforge.net/sourceforge/fuse/fuse-2.6.5.tar.gz
$ tar -zxvf fuse-2.6.5.tar.gz
$ cd fuse-2.6.5
$ ./configure
$ make
$ sudo make install
</pre>
<p>Once compiled and installed the dynamic linker needs to be run so that the new libraries are added to the search path.</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo vi /etc/ld.so.conf.d/fuse.conf
</pre>
<p>add <code>/usr/local/lib</code> to the file and then run the linker.</p>
<pre class="brush: bash; title: ; notranslate">
$ ldconfig
</pre>
<p>With that done, its time to compile and install sshfs on your box.</p>
<pre class="brush: bash; title: ; notranslate">
$ wget http://easynews.dl.sourceforge.net/sourceforge/fuse/sshfs-fuse-1.7.tar.gz
$ tar -zxvf sshfs-fuse-1.7.tar.gz
$ cd sshfs-fuse-1.7
$ ./configure
$ make
$ make install
</pre>
<p>Now to mount the directory this is what you would need to do.</p>
<pre class="brush: bash; title: ; notranslate">
$ mkdir ~/localdev
$ sshfs -o port=&lt;place_your_port_here_if_non_standard&gt; rpandit@devbox.dom ~/localdev
</pre>
<p>The user mounting should obviously have write permission on the directory being used. Now you can browse the directory like your local directory and any changes done to files are automatically synced to the remote ssh file system.</p>
<p>Now the only other thing remaining is un-mouting the file, which can be done with one of the two commands.</p>
<pre class="brush: bash; title: ; notranslate">
$ fusermount -u ~/localdev
</pre>
<p>or </p>
<pre class="brush: bash; title: ; notranslate">
$ umount -u ~/localdev
</pre>
<p>Further Reading:</p>
<ul>
<li><a href="http://fuse.sourceforge.net/">Fuse Home Page</a></li>
<li><a href="http://fuse.sourceforge.net/sshfs.html">sshfs home page</a></li>
</ul>
<p>* Having called it unfriendly, its a really nice tool to use and if I wasnt lazy enough to read the manuals and remember the shortcut keys, I would have preferred using vi.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/02/20/securely-mount-remote-unix-directory-using-sshfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

