<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - A couple of nice things: shfs and Meld - Comments</title>
 <link>http://townx.org/blog/elliot/a_couple_of_nice_things</link>
 <description>Comments for &quot;A couple of nice things: shfs and Meld&quot;</description>
 <language>en</language>
<item>
 <title>Not a bad idea. Though</title>
 <link>http://townx.org/blog/elliot/a_couple_of_nice_things#comment-2640</link>
 <description>&lt;p&gt;Not a bad idea. Though Subclipse makes most sense in the context of Eclipse. Decent Nautilus &lt;span class=&quot;caps&quot;&gt;SVN &lt;/span&gt;integration would be excellent (I believe Konqueror has this), in the TortoiseSVN vein (could be there already - I haven&#039;t investigated much). Not sure how Nautilus treats an &lt;span class=&quot;caps&quot;&gt;SVN &lt;/span&gt;repository available over WebDAV: might be worth experimenting... Meld is pretty good, though.&lt;/p&gt;</description>
 <pubDate>Sat, 19 Aug 2006 14:38:53 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 2640 at http://townx.org</guid>
</item>
<item>
 <title>Subversion client</title>
 <link>http://townx.org/blog/elliot/a_couple_of_nice_things#comment-2602</link>
 <description>&lt;p&gt;Do you think that it would make sense to have something like Subclipse packaged as a standalone &lt;span class=&quot;caps&quot;&gt;SVN &lt;/span&gt;client application?&lt;/p&gt;</description>
 <pubDate>Fri, 18 Aug 2006 17:36:42 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 2602 at http://townx.org</guid>
</item>
<item>
 <title>Thanks!</title>
 <link>http://townx.org/blog/elliot/a_couple_of_nice_things#comment-2290</link>
 <description>&lt;p&gt;Thanks for the great intro to shfs mounting. I was tired of using the faux nautilus mount myself. While I hope they fix the inability to directly reference nautilus faux mounts in file selection dialogs this works great. Thanks again. -mf&lt;/p&gt;</description>
 <pubDate>Wed, 09 Aug 2006 23:18:48 -0500</pubDate>
 <dc:creator>Michael Favia</dc:creator>
 <guid isPermaLink="false">comment 2290 at http://townx.org</guid>
</item>
<item>
 <title>A couple of nice things: shfs and Meld</title>
 <link>http://townx.org/blog/elliot/a_couple_of_nice_things</link>
 <description>&lt;p&gt;I like the way in Gnome/Nautilus you can create a &quot;pseudo filesystem&quot; over an &lt;span class=&quot;caps&quot;&gt;SSH &lt;/span&gt;session: you can treat a remote filesystem sort of like part of your regular filesystem. However, it&#039;s not a real mount, as you can&#039;t reference it using a standard path (there&#039;s no /media/remote path you can point to from the command line, for example).&lt;/p&gt;

&lt;p&gt;I was facing this with a client this morning, where we wanted to make a filesystem mountable via an &lt;span class=&quot;caps&quot;&gt;SSH &lt;/span&gt;session. After a quick google, we found &lt;a href=&quot;http://shfs.sourceforge.net/&quot;&gt;shfs&lt;/a&gt;. This enables mounting a filesystem which is accessible via an &lt;span class=&quot;caps&quot;&gt;SSH &lt;/span&gt;session on a mount point on the local machine. We then found a &lt;a href=&quot;http://www.ma.utexas.edu/users/stirling/computergeek/lufs.html&quot;&gt;simple installation guide&lt;/a&gt; and had it up and running in about 10 minutes. On Ubuntu Dapper, here&#039;s an overview of the process:&lt;/p&gt;


&lt;ol&gt;
&lt;li&gt;Get root&lt;/li&gt;
&lt;li&gt;&lt;code&gt;apt-get build-essential shfs-source shfs-utils linux-headers-`uname -r`&lt;/code&gt;&lt;br /&gt;
(this installs everything you need to compile it up for your architecture; you may need to enable the Universe and Multiverse repositories)&lt;/li&gt;
&lt;li&gt;module-assistant build shfs&lt;/li&gt;
&lt;li&gt;module-assistant install shfs&lt;/li&gt;
&lt;li&gt;To mount a directory over &lt;span class=&quot;caps&quot;&gt;SSH&lt;/span&gt;:
&lt;ol&gt;
&lt;li&gt;Create a directory on the local machine (e.g. &lt;strong&gt;remote&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;Run this command: &lt;code&gt;shfsmount --persistent &lt;a href=&quot;mailto:user@server.com&quot;&gt;user@server.com&lt;/a&gt; /path/to/mount/onto&lt;/code&gt;&lt;br /&gt;
(the --persistent flag maintains the connection in the event of temporary outages at the server end causing breaks in the &lt;span class=&quot;caps&quot;&gt;SSH &lt;/span&gt;session)&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;To ensure the shfs module is loaded during boot:&lt;br /&gt;
&lt;code&gt;echo &#039;shfs&#039; &amp;gt;&amp;gt; /etc/modules&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;To mount the filesystem automatically at boot time, add a line like this to /etc/fstab:&lt;br /&gt;
&lt;code&gt;user@server.com   /path/to/mount/onto   shfs&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;If you mount onto a directory inside /media, it will pop up as an icon on your desktop too.&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;We needed to set a few permissions to finish up; here&#039;s where I&#039;m at so far in /etc/fstab:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;mailto:user@server.com&quot;&gt;user@server.com&lt;/a&gt;   /media/ssh  shfs   rmode=755,auto,rw,group,cmd-user=ell,type=shell,stable,user,uid=1000,gid=100 0 0&lt;/p&gt;

&lt;p&gt;This is useful as it logs into my remote machine using my personal public key, and sets the user and group to my user account and the users group. I&#039;m still having a few issues with writing into the root of the mounted directory from Nautilus (I can from the command line, though).&lt;/p&gt;

&lt;p&gt;We then explored whether tools like &quot;TortoiseSVN&quot;: are available for Linux. EasyEclipse is great, but a bit heavyweight for some users; perhaps a simple Explorer-like interface which allows visual diffs will do. Enter Meld. It&#039;s packaged for Debian/Ubuntu, so you can do:&lt;/p&gt;

&lt;code&gt;apt-get install meld&lt;/code&gt;

&lt;p&gt;I hadn&#039;t looked at it for a while, and when I last looked it was quite simple and only did file-file comparisons. But the latest version is really cool. You can use it like a Subversion client and do visual comparisons of a local working copy and a repository without much fuss. I plan to look at this a bit more as it could be a great tool for companies who don&#039;t want to go as far as Subversion (you can do directory-directory comparisons too). Couple with shfs, it could be a great lightweight &quot;revision control&quot; system for Linux.&lt;/p&gt;</description>
 <comments>http://townx.org/blog/elliot/a_couple_of_nice_things#comments</comments>
 <category domain="http://townx.org/tech">tech</category>
 <pubDate>Mon, 07 Aug 2006 17:35:52 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">376 at http://townx.org</guid>
</item>
</channel>
</rss>
