<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.3" -->
<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/"
	>

<channel>
	<title>stochasticflux</title>
	<link>http://stochasticflux.com/blog</link>
	<description>public notepad...</description>
	<pubDate>Sat, 22 Aug 2009 20:04:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>
	<language>en</language>
			<item>
		<title>Improve rubyripper&#8217;s freedb access</title>
		<link>http://stochasticflux.com/blog/?p=14</link>
		<comments>http://stochasticflux.com/blog/?p=14#comments</comments>
		<pubDate>Sat, 22 Aug 2009 20:03:49 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Ubuntu</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=14</guid>
		<description><![CDATA[By default rubyripper points to the freedb server: http://freedb2.org:80.  I was finding that rubyripper would then fail to find a good number of cds that I could find when I searched the title on freedb.org.  The solution was to change the freedb server address in rubyripper&#8217;s preferences to http://freedb.freedb.org:80 .  Then it was able to [...]]]></description>
			<content:encoded><![CDATA[<p>By default rubyripper points to the freedb server: http://freedb2.org:80.  I was finding that rubyripper would then fail to find a good number of cds that I could find when I searched the title on freedb.org.  The solution was to change the freedb server address in rubyripper&#8217;s preferences to http://freedb.freedb.org:80 .  Then it was able to find everything.  <strong />
</p>
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=14</wfw:commentRSS>
		</item>
		<item>
		<title>AMD 64 k10 temperature module in Ubuntu</title>
		<link>http://stochasticflux.com/blog/?p=13</link>
		<comments>http://stochasticflux.com/blog/?p=13#comments</comments>
		<pubDate>Thu, 18 Jun 2009 14:57:44 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Ubuntu</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=13</guid>
		<description><![CDATA[Pallo has a great post on the Ubuntu mailing list on how to install the temperature module for new AMD 64 bit processors (link).  The issue is that every time the kernel is updated the module needs to be rebuilt as well.  I therefore wrote a quick bash script to download the necessary code, compile [...]]]></description>
			<content:encoded><![CDATA[<p>Pallo has a great post on the Ubuntu mailing list on how to install the temperature module for new AMD 64 bit processors (<a href="https://lists.ubuntu.com/archives/ubuntu-users/2009-May/183285.html">link</a>).  The issue is that every time the kernel is updated the module needs to be rebuilt as well.  I therefore wrote a quick bash script to download the necessary code, compile the module, and install it in the correct location.  You need to have the linux-source package installed along with the typical build tools.</p>
<blockquote><p>#!/bin/bash</p>
<p># Get the code for the k10 temperature module<br />
wget http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20080718/d51be536/attachment.bin</p>
<p># Create a directory for the module to be built in<br />
mkdir k10temp &#038;&#038; mv attachment.bin k10temp/k10temp.c<br />
cd k10temp</p>
<p># Create the make file<br />
echo &#8216;obj-m := k10temp.o&#8217; > Makefile<br />
echo &#8216;KDIR := /lib/modules/$(shell uname -r)/build&#8217; >> Makefile<br />
echo &#8216;PWD := $(shell pwd)&#8217; >> Makefile<br />
echo &#8216;default:&#8217; >> Makefile<br />
echo &#8216;$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules&#8217; >> Makefile</p>
<p># Compile the module<br />
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules</p>
<p># Insert the module and store it with the rest of the modules<br />
sudo insmod k10temp.ko<br />
sudo cp k10temp.ko /lib/modules/$(uname -r)/kernel/drivers/hwmon<br />
sudo depmod</p>
<p># Add k10temp to /etc/modules if not there so it will start at boot<br />
if grep -q k10temp /etc/modules<br />
then<br />
echo &#8216;k10temp already in /etc/modules&#8217;<br />
else<br />
sudo echo &#8216;k10temp&#8217; >> /etc/modules<br />
echo &#8216;k10temp added to /etc/modules&#8217;<br />
fi</p>
<p># Remove the temporary files<br />
cd ..<br />
rm -r k10temp</p></blockquote>
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=13</wfw:commentRSS>
		</item>
		<item>
		<title>Linux vs. OS X on a Macbook</title>
		<link>http://stochasticflux.com/blog/?p=12</link>
		<comments>http://stochasticflux.com/blog/?p=12#comments</comments>
		<pubDate>Thu, 11 Oct 2007 04:08:44 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Ubuntu</category>
	<category>Mac OS X</category>
	<category>MATLAB</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=12</guid>
		<description><![CDATA[About a year ago I decided to finally pick up a laptop to more easily facilitate bringing my work home.  After looking around at the options that were available I ended up with a Macbook.  It simply appeared to be the cheapest solution given the specifications I wanted in a 13&#8243; notebook.  [...]]]></description>
			<content:encoded><![CDATA[<p>About a year ago I decided to finally pick up a laptop to more easily facilitate bringing my work home.  After looking around at the options that were available I ended up with a Macbook.  It simply appeared to be the cheapest solution given the specifications I wanted in a 13&#8243; notebook.  For the first year I worked with OS X as I didn&#8217;t have the time to fiddle with Ubuntu to get everything working properly.  Though now with the upcoming release of Gusty Gibbon I decided to give the improved laptop support a shot.  I and I have to say I am really excited.  Nearly everything worked right out of the box, it was even easy to setup my apple bluetooth mouse and keyboard.  My only grips are the overly sensitive touchpad (this supposedly can be fixed through adjusting the settings) and the lack of automatic recognition of external monitor&#8217;s resolution.</p>
<p>Though I digress, the point of this post is that I have seen a number of discussions that Linux on the Macbook appears to be more responsive.  The Macbook is a great platform and is extremely fast when completing regular tasks under OS X or Ubuntu so I didn&#8217;t want to just speculate on performance.  Instead, I wanted to actually measure the difference in performance.  For me, the vast majority of my processor intensive computing is done via MATLAB and therefore this is where I looked for a performance comparison.</p>
<p>For reference I have a 2.0 Ghz Intel Core Duo Macbook with 2 GB of RAM.  I started up each operating system and right off of the back ran MATLAB 7.4 R2007a and the following benchmark code:</p>
<p><code>x = bench(10); mean(x)</code></p>
<p>Output under OS X:</p>
<p>ans =</p>
<p>0.3091    0.4460    0.3285    1.4133    1.0258    0.4507</p>
<p>Output under Ubuntu 7.10</p>
<p>ans =</p>
<p>0.3037    0.4127    0.2488    0.5628    0.4634    0.4018</p>
<p>As may be clearly seen, MATLAB under Ubuntu on the Macbook outperformed the MATLAB instillation on OS X.  I have yet to fully test out the performance when running some of my current research but these benchmarks provide some hope that I may spend less time waiting.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=12</wfw:commentRSS>
		</item>
		<item>
		<title>octave + aqua terminal + gnuplot on OS X</title>
		<link>http://stochasticflux.com/blog/?p=11</link>
		<comments>http://stochasticflux.com/blog/?p=11#comments</comments>
		<pubDate>Thu, 12 Apr 2007 23:41:57 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Mac OS X</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=11</guid>
		<description><![CDATA[Installing Octave on OS X (intel) with gnuplot.
1.) Install the pre-built binaries for octave from HPC  Mac OS X
2.) Install aqua term
3.) The pre-built binaries for gnuplot do not seem to work adequatley with aqua term and octave at the current time, so download the source for the newest version of gnuplot
4.) Untar the [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Octave on OS X (intel) with gnuplot.</p>
<p>1.) Install the pre-built binaries for octave from <a href="http://hpc.sourceforge.net/#octave">HPC  Mac OS X</a></p>
<p>2.) Install <a href="http://aquaterm.sourceforge.net/">aqua term</a></p>
<p>3.) The pre-built binaries for gnuplot do not seem to work adequatley with aqua term and octave at the current time, so download the source for the newest version of <a href="http://www.gnuplot.info/">gnuplot</a></p>
<p>4.) Untar the source files and open a terminal shell in the new directory and excute the following commands*</p>
<p><code>export CFLAGS='-arch i386'<br />
export LDFLAGS='-arch i386'<br />
./configure --with-readline=builtin<br />
make<br />
sudo make install</code></p>
<p>Afterwords, every thing should be working fine, test it out in octave with:</p>
<p><code>plot((-10:10).^2)</code></p>
<p>* Thanks to <a href="http://nick.vox.com/library/post/compiling-gnuplot-for-osx.html">Nick Vox</a> for this information.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=11</wfw:commentRSS>
		</item>
		<item>
		<title>latex to pdf in a nautilus script</title>
		<link>http://stochasticflux.com/blog/?p=10</link>
		<comments>http://stochasticflux.com/blog/?p=10#comments</comments>
		<pubDate>Fri, 15 Sep 2006 13:08:18 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Gnome</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=10</guid>
		<description><![CDATA[The vast majority of my writting is done using gedit and latex.  I have often thought it would be great to have a gedit plugin that would allow for a one button solution to converting the latex document into a pdf file and opening it in evince.  I do not have enough time [...]]]></description>
			<content:encoded><![CDATA[<p>The vast majority of my writting is done using gedit and latex.  I have often thought it would be great to have a gedit plugin that would allow for a one button solution to converting the latex document into a pdf file and opening it in evince.  I do not have enough time at this moment to develop such a solution, though I did find a good way of scratching my itch.  I chose to write a nautilus script in bash that would accomplish the same task.  First create the script in your nautilus script directory.</p>
<blockquote><p><strong>gedit ~/.gnome2/nautilus-scripts/latex\ to\ pdf</strong></p></blockquote>
<p>Next paste in the following script.</p>
<blockquote><p><strong>#!/bin/bash</strong></p>
<p><strong># Runs the file through pdflatex and opens it in evince if the pdf file exists</strong></p>
<p><strong>if echo $1 | grep -i &#8220;.tex&#8221;; then<br />
pdflatex $1<br />
PF=${1/tex/pdf}<br />
if [ -f $PF ]; then<br />
evince $PF<br />
else<br />
zenity &#8211;info &#8211;title=&#8221;latex to pdf&#8221; &#8211;text=&#8221;Failed to create the PDF file.&#8221;<br />
fi<br />
else<br />
zenity &#8211;warning &#8211;title=&#8221;latex to pdf&#8221; &#8211;text=&#8221;File must be a latex file with the extension .tex&#8221;<br />
fi   </strong></p></blockquote>
<p>Then make the script executable.</p>
<blockquote><p><strong>chmod +x ~/.gnome2/nautilus-scripts/latex\ to\ pdf</strong></p></blockquote>
<p>Now you are able to right click on a latex file and select the &#8220;latex to pdf&#8221; script to convert it to a pdf file and open it up in evince.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=10</wfw:commentRSS>
		</item>
		<item>
		<title>A sleek firewall from a wrap board and m0n0wall</title>
		<link>http://stochasticflux.com/blog/?p=9</link>
		<comments>http://stochasticflux.com/blog/?p=9#comments</comments>
		<pubDate>Tue, 11 Jul 2006 00:20:11 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=9</guid>
		<description><![CDATA[For the past couple of years I have been running Smoothwall on an old pc I rescued from the dumpster.  This has been a great method of securing my home network however living in a third floor apartment in the southern part of the United States heat can be an issue, especially in the [...]]]></description>
			<content:encoded><![CDATA[<p>For the past couple of years I have been running <a href="http://www.smoothwall.org">Smoothwall</a> on an old pc I rescued from the dumpster.  This has been a great method of securing my home network however living in a third floor apartment in the southern part of the United States heat can be an issue, especially in the summer time, and running an extra pc doesn&#8217;t help.  Therefore I began toying with the idea of using an embedded pc as a firewall.  I decided to go with the WRAP.1C-2 board from <a href="http://www.pcengines.ch/wrap.htm">PC Engines</a> due to the great price/performance ratio compared to other options.  In total the board, case, and adapter came to $164 before shipping from <a href="http://www.netgate.com/">Netgate</a>.</p>
<p align="center"><a class="imagelink" title="WRAP Box Closed" href="http://stochasticflux.com/blog/wp-content/uploads/2006/07/warp%20box%20closed.JPG"><img id="image8" alt="WRAP Box Closed" src="http://stochasticflux.com/blog/wp-content/uploads/2006/07/warp%20box%20closed.thumbnail.JPG" /></a><a class="imagelink" title="WRAP Box Open" href="http://stochasticflux.com/blog/wp-content/uploads/2006/07/warp%20box%20open.JPG"><img id="image7" alt="WRAP Box Open" src="http://stochasticflux.com/blog/wp-content/uploads/2006/07/warp%20box%20open.thumbnail.JPG" /></a></p>
<p align="left">For software I decided to run <a href="http://www.m0n0.ch/wall/">m0n0wall</a>.  I would have prefered a linux based solution over a FreeBSD based product but it appeared to be the best solution for my situation.  The setup was a breeze and it turns out my 64MB flash card was overkill as the entire image is under 8MB.   After working with m0n0wall&#8217;s web gui to setup the system I couldn&#8217;t stop thinking this is a fantastic product!  m0n0wall&#8217;s features are enough for almost any home or office network and the configuration is a breeze.  Most interesting is that the entire boot-time configuration is written in PHP.  Smoothwall and my dumpster pc served me well for a long time but m0n0wall and my WRAP box provide a more feature rich firewall in a much sleeker and cooler running package.</p>
<p align="center">
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=9</wfw:commentRSS>
		</item>
		<item>
		<title>Ubuntu 6.06 LTS CDs Arrive</title>
		<link>http://stochasticflux.com/blog/?p=6</link>
		<comments>http://stochasticflux.com/blog/?p=6#comments</comments>
		<pubDate>Wed, 05 Jul 2006 23:03:02 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Ubuntu</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=6</guid>
		<description><![CDATA[Waiting for me today when I got home was a nice surprise, the new Dapper CDs from Canonical.  It appears as if the ShipIt service has gotten better along with the distribution.  This is the first time I got the correct order fully intact, it was also the quickest I have recieved an [...]]]></description>
			<content:encoded><![CDATA[<p>Waiting for me today when I got home was a nice surprise, the new Dapper CDs from Canonical.  It appears as if the ShipIt service has gotten better along with the distribution.  This is the first time I got the correct order fully intact, it was also the quickest I have recieved an order yet.  They were also kind enough to throw in some sweet Ubuntu stickers!</p>
<p><a class="imagelink" title="Ubuntu 6.06 LTS CDs" href="http://stochasticflux.com/blog/wp-content/uploads/2006/07/dapper%20cds.JPG"><img title="Ubuntu 6.06 LTS CDs" id="image5" alt="Ubuntu 6.06 LTS CDs" src="http://stochasticflux.com/blog/wp-content/uploads/2006/07/dapper%20cds.thumbnail.JPG" /></a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=6</wfw:commentRSS>
		</item>
		<item>
		<title>XDMCP + Ubuntu = Thin Client</title>
		<link>http://stochasticflux.com/blog/?p=4</link>
		<comments>http://stochasticflux.com/blog/?p=4#comments</comments>
		<pubDate>Mon, 03 Jul 2006 16:52:52 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Ubuntu</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=4</guid>
		<description><![CDATA[With X Display Manager Control Protocol (XDMCP) and Ubuntu one is able to set up a thin client with very little effort.  This is a great way to make use of an older computer that doesn&#8217;t quite have the processing power needed to run a smooth system by itself.  In my case the [...]]]></description>
			<content:encoded><![CDATA[<p>With X Display Manager Control Protocol (XDMCP) and Ubuntu one is able to set up a thin client with very little effort.  This is a great way to make use of an older computer that doesn&#8217;t quite have the processing power needed to run a smooth system by itself.  In my case the computer my wife generally uses was not performing as well as she would like and I did not feel like shelling out the extra money for a new computer that would only be used for ocasional web browsing, word processing, and gimp usage.  XDMCP provided an easy and cheap solution.</p>
<p>For this example I will assume that Ubuntu is installed on both computers and that the server may be denoted by the hostname <strong>xdmcpserever.</strong></p>
<p>To start off first enable XDMCP on the host computer by editing the gdm.conf-custom file</p>
<blockquote><p><strong>sudo vim /etc/gdm/gdm.conf-custom</strong></p></blockquote>
<p>Make sure that it contains the following section.</p>
<blockquote><p><strong>[xdmcp]</strong><br />
<strong>Enable=true</strong></p></blockquote>
<p>If you want the remote login screen to be the same as the graphical greeter that is the default in the Ubuntu install make sure that the following is present.</p>
<blockquote><p><strong>[daemon]<br />
RemoteGreeter=/usr/lib/gdm/gdmgreeter</strong></p></blockquote>
<p>Now one is able to log in via the default gdm greeter on the client systems if so desired, but in my case I wanted the client to automatically boot to the login screen for the server.  The process is actually quite simply.  First a script to launch the daemon for the new XDMCP login must be created.</p>
<blockquote><p><strong>sudo vim /etc/init.d/xdmcp</strong></p></blockquote>
<p>In this file place the following script <a href="http://stochasticflux.com/ubuntu/xdmcp">[download here]</a>.</p>
<blockquote><p><strong>#! /bin/sh<br />
# Launchs XDMCP</strong></p>
<p><strong>set -e</strong></p>
<p><strong>PATH=/sbin:/bin:/usr/sbin:/usr/bin<br />
PIDFILE=/var/run/xdmcp.pid<br />
XDMCPSERVER=xdmcpserver</strong></p>
<p><strong>. /lib/lsb/init-functions</strong></p>
<p><strong>case &#8220;$1&#8243; in<br />
start)<br />
if pidof usplash > /dev/null; then<br />
/etc/init.d/usplash start<br />
fi<br />
log_begin_msg &#8220;Starting XDMCP&#8230;&#8221;<br />
start-stop-daemon &#8211;start &#8211;quiet &#8211;pidfile $PIDFILE &#8211;name xdmcp &#8211;exec /usr/bin/X &#8212; -query $XDMCPSERVER > /dev/null || log_end_msg 1<br />
log_end_msg 0<br />
;;<br />
stop)<br />
log_begin_msg &#8220;Stopping XDMCP&#8230;&#8221;<br />
start-stop-daemon &#8211;stop  &#8211;quiet &#8211;pidfile $PIDFILE &#8211;name xdmcp /usr/bin/X &#8212; query $XDMCPSERVER &#8211;retry 30<br />
log_end_msg 0<br />
;;<br />
restart)<br />
$0 stop || true<br />
$0 start<br />
;;<br />
*)<br />
log_success_msg &#8220;Usage: /etc/init.d/xdmcp {start|stop|restart}&#8221;<br />
exit 1<br />
;;<br />
esac</strong></p>
<p><strong>exit 0</strong></p></blockquote>
<p>The next step is to set the executable bit on this script with</p>
<blockquote><p><strong>sudo chmod +x /etc/init.d/xdmcp</strong></p></blockquote>
<p>The way I chose to have the system run the script on startup is by simply replacing the gdm startup script in the default runlevel with our new xdmcp startup script.</p>
<blockquote><p><strong>sudo rm /etc/rc2.d/S13gdm</strong></p>
<p><strong>sudo ln -s /etc/init.d/xdmcp /etc/rc.2/S99xdmcp</strong></p></blockquote>
<p>Now when we restart the client we will be presented with a login screen being served from our xdmcp server.</p>
<blockquote />
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=4</wfw:commentRSS>
		</item>
		<item>
		<title>Mounting filesystems over SSH with Ubuntu</title>
		<link>http://stochasticflux.com/blog/?p=3</link>
		<comments>http://stochasticflux.com/blog/?p=3#comments</comments>
		<pubDate>Fri, 30 Jun 2006 04:22:38 +0000</pubDate>
		<dc:creator>marten</dc:creator>
		
	<category>Ubuntu</category>
		<guid isPermaLink="false">http://stochasticflux.com/blog/?p=3</guid>
		<description><![CDATA[A great adition to Linux has been the filesystem in user-space project FUSE which brings us SSHFS.  One now has the ability to mount remote filesystems through ssh.  Installing sshfs is easy with a simple sudo apt-get install sshfs.
First one must add their user name to the fuse group either via the gui [...]]]></description>
			<content:encoded><![CDATA[<p>A great adition to Linux has been the filesystem in user-space project FUSE which brings us SSHFS.  One now has the ability to mount remote filesystems through ssh.  Installing sshfs is easy with a simple <strong>s</strong><strong>udo apt-get install sshfs</strong>.</p>
<p>First one must add their user name to the fuse group either via the gui or the command line tool <strong>adduser.</strong> <em>(As pointed out by Casey you need to logout-login for the group changes to take effect.)</em> Next one needs to insert the fuse module into the kernel with a</p>
<blockquote><p><strong>sudo modprobe fuse</strong></p></blockquote>
<p>This module should be appended to the end of /etc/modules inorder for it to load when the system boots.  Then it is possible to mount filesytems over ssh with a simple</p>
<blockquote><p><strong>sshfs username@sshserver: /media/directory</strong></p></blockquote>
<p>and then enter your password when prompted.  This will automatically mount the users home directory.  To mount a specific directory use</p>
<blockquote><p><strong>sshfs username@sshserver:/directory /media/directory</strong>.</p></blockquote>
<p>Though most of us don&#8217;t want to open up a command line and go through this hassle everytime we want to mount our remote filesystem.  For this I purpose the following solution. First we create a password-less login by setting up a trust realtionship with public keys.  On the local computer in your home directory run</p>
<blockquote><p><strong>ssh-keygen -t rsa</strong></p></blockquote>
<p>When prompted for the location to save the file and a passphrase simply hit enter.  The keys will be stored in $HOME/.ssh/id_rsa.  The next step is to copy the public keys over to the remote server which has already been mounted in /mount/directory.</p>
<blockquote><p><strong> cat ~/.ssh/id_rsa.pub >> /media/directory/.ssh/authorized_keys<br />
chmod 600 /media/directory/.ssh/authorized_keys</strong></p></blockquote>
<p>Now we can ssh into our remote box without the need for a password.  The other problem one runs into with implementing a clean graphical sshfs experience is the fact that if one wants to unomunt the filesystem they can not simple right click unmount the system from the Gnome desktop icon.  This is because umount requires root privlages, however fuse has a solution for this which is <strong>fusermount -u /media/directory</strong>.  The following bash script can be attached to a menu or panel icon to do the simple mounting of the system and the unmounting if it is already mounted.</p>
<blockquote><p><strong><span style="font-style: italic">#!/bin/bash</span><em><br style="font-style: italic" /> <span style="font-style: italic">if grep -q sshserver /proc/mounts</span><br style="font-style: italic" /><span style="font-style: italic">then fusermount -u /media/directory</span><br style="font-style: italic" /><span style="font-style: italic">else sshfs username@sshserver: /media/directory</span><br style="font-style: italic" /><span style="font-style: italic">fi</span></em></strong></p></blockquote>
<p>Don&#8217;t forget to replace <span style="font-style: italic">sshserver, username, </span>and<span style="font-style: italic"> directory</span> with the appropriate values for your situation.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://stochasticflux.com/blog/?feed=rss2&amp;p=3</wfw:commentRSS>
		</item>
	</channel>
</rss>

