<?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>Don't call me DOM &#187; Gnome desktop</title>
	<atom:link href="http://people.w3.org/~dom/archives/category/work-environment/gnome-desktop/feed/" rel="self" type="application/rss+xml" />
	<link>http://people.w3.org/~dom</link>
	<description>W3C has the DOM, and the Dom ; pick the one you prefer.</description>
	<lastBuildDate>Sat, 07 Nov 2009 11:02:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Diving in transcription</title>
		<link>http://people.w3.org/~dom/archives/2009/02/diving-in-transcription/</link>
		<comments>http://people.w3.org/~dom/archives/2009/02/diving-in-transcription/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 18:28:31 +0000</pubDate>
		<dc:creator>Dom</dc:creator>
				<category><![CDATA[Gnome desktop]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://people.w3.org/~dom/?p=221</guid>
		<description><![CDATA[So, my exploration in world of Web video started in the land of transcription.
As I mentioned previously, one of the requirements for us on the W3C Staff to  be allowed to publishing media content is to make sure it meets some minimal level of accessibility, and in the current (draft) state of affairs, this [...]]]></description>
			<content:encoded><![CDATA[<p>So, my <a href="http://people.w3.org/~dom/archives/2009/02/exploring-the-world-of-web-video/">exploration in world of Web video</a> started in the land of transcription.</p>
<p>As I mentioned previously, one of the requirements for us on the W3C Staff to  be allowed to publishing media content is to make sure it meets some minimal level of accessibility, and in the current (draft) state of affairs, this means providing a transcription of its content. <ins>(Oct 8 2009: that policy is now <a href="http://www.w3.org/2008/06/video-notes">publicly available</a>)</ins></p>
<p>My first reaction to that policy was slightly annoyed: I was afraid this would create too high a barrier on us from publishing multimedia content, which in this age and days seems to be a fairly important expression mechanism.</p>
<p>But the argument was made that we don&#8217;t publish non-valid HTML documents, that we try to maintain some minimum level of accessibility across the W3C site, and that multimedia content had no reason to be treated differently &#8211; and I was convinced.</p>
<p>Convinced, but still preoccupied to the potential barriers it creates; and if it creates barriers for us, in an organization of technophiles with a strong interest in creating accessible content, how great these barriers would be for most of the rest of the world, who primarily wants to share their content, without much direct interest in the technologies behind it?</p>
<p>I figured the best way to evaluate that was to go through the exercise myself; I should note that our policy should be accompanied with a budget so that we don&#8217;t have to do it ourselves, but it still seemed important to make my hand dirty in the transcription process to  understand it better.</p>
<p>While we&#8217;re only required to provide a transcription, I was more interested in providing captions of the <a href="http://www.dailymotion.com/parisweb/parisweb/video/x4lzho_bonnes-pratiques-du-web-mobile_tech">video of my ParisWeb presentation</a> &#8211; given its duration of one hour, I was pretty sure I would get bored by the transcription process if I didn&#8217;t get the nice results of synchronized captions at the end.</p>
<p>So I started looking for tools to create these captions; the first one I found on my <a href="http://www.gnome.org/">Gnome</a> desktop was <a href="http://home.gna.org/subtitleeditor/">Subtitle Editor</a>, which offers a pleasant user interface, showing the video with the subtitles as you write them, and shows also a waveform (i.e. a visual representation) of the audio track to help locate pauses in it.</p>
<p>But it appeared pretty quickly that the tool was more geared towards editing existing subtitles, than creating new ones from scratch: the user interactions to adjust the timing of the subtitles were really overly complex, and not adapted to the setting of what would appear to be 950 synchronization points!</p>
<p>Looking for another tool, I found <a href="http://trans.sourceforge.net/en/presentation.php">Transcriber</a>, available on Windows, Mac and Linux.</p>
<p>While the rather ugly Tcl/Tk interface of the tool and its lack of integration with the audio system in place on my Gnome desktop were a bit annoying, the tool itself and its well-defined keyboard shortcuts made it a much better tool for that captioning process:</p>
<ul>
<li>you load the audio file, from which a waveform is built and displayed in the lower part of the window;</li>
<li>you can then use the <kbd>tab</kbd> key to start and pause the audio track, and jump back and forth in the audio track using the arrow keys;</li>
<li>meanwhile, you can type the transcription and end each line of captions with the enter key</li>
</ul>
<p>I&#8217;ve made a <a href="http://dotsub.com/view/b1691c89-f9cd-474a-b1a2-32dbaf222065">screencast</a> (my latest whim on which I&#8217;ll come back later) showing that rough process of the transcription of the first few seconds of the video:</p>
<object  height="347" width="420" type="application/x-shockwave-flash" name="mpl" data="http://dotsub.com/static/players/portalplayer.swf">

<param name="swliveconnect" value="true"  />

<param name="allowFullScreen" value="true" />

<param name="allowScriptAccess" value="always" />

<param name="flashvars" value="mediauri=/media/b1691c89-f9cd-474a-b1a2-32dbaf222065/em/flv/en&amp;screenshoturi=/media/b1691c89-f9cd-474a-b1a2-32dbaf222065/p&amp;mediaDuration=11000&amp;lang=fre_fr "/>
<object height="347" width="420" type="video/x-flv" data="http://dotsub.com/media/b1691c89-f9cd-474a-b1a2-32dbaf222065/em/flv/en" >
<object height="347" width="420" type="video/ogg" data="http://media.w3.org/2009/02/screencast-transcriber.ogv">
<object height="347" width="420" type="video/avi" data="http://media.w3.org/2009/02/screencast-transcriber.avi">
<img src="/~dom/2009/transcriber.jpg" alt="Screenshot of transcriber in action" width="315" height="305" />
</object>
</object>
</object>
</object>
<p>(also available as <a href="http://media.w3.org/2009/02/screencast-transcriber.ogv">Ogg/Theora</a>, with a <a href="http://media.w3.org/2009/02/screencast-transcriber.xml">Timed Text transcription</a>)</p>

<p>Transcriber is already pretty good as is, but there are two improvements I could see to such a tool that would make it even better:</p>
<ul>
<li>provide auto-completion of words, both from existing dictionaries, and from the words already used in the transcription (probably with a priority to the latter);</li>
<li>work directly with video, and show video with subtitles live, the same way subtitle editor does &#8211; this provides a nice instantaneous feedback that is quite useful in this rather laborious effort;</li>
</ul>
<p>But even with a nice tool, transcription is a very tedious work; the purely transcription part (i.e. typing what you&#8217;re hearing) is probably the worse &#8211; the synchronizing part could almost made fun by turning it into a video game of some sort&hellip;</p>
<p>Clearly, having a speech recognition engine doing a first pass at the transcription would be incredibly useful; I didn&#8217;t find any ready to use (and open source) package to do for a French track, but in the process of looking for one, I stumbled on a few interesting projects:</p>
<ul>
<li><a href="http://www.voxforge.org/home/about">VoxForge</a> which collects free voice samples to create voice profiles that can then be used by open source speech recognition projects; I contributed a couple of French samples, although the Java applet they&#8217;re using kept bugging, making the process much less easy than it should be;</li>
<li>and related to it, <a href="http://librivox.org/">LibriVox</a> which is set to create a free and community-based library of audio books; quite appealing, although I found the process for getting started a bit too intimidating &#8211; I think an even more open system where anyone could contribute any reading from a very large list of possible texts would bring much more content (in a classical <a href="http://www.catb.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/">Cathedral and Bazaar</a> fashion).</li>
</ul>
<p>Back to transcription &#8211; I didn&#8217;t measure how long it took me to transcribe the one hour long track, but at least 3 or 4 times that duration; clearly this is an exercice I&#8217;d do myself again only for much shorter content; but then, people are much more likely to watch much shorter content as well, so that&#8217;s probably a reasonable assumption.</p>
<p>Beyond accessibility, I found the following interesting benefits in transcribing my own presentation</p>
<ul>
<li>first, I re-heard the entirety of it, and it made me look at what had changed since then, what still holds and what doesn&#8217;t any more;</li>
<li>it gave me a chance to analyse my own public speaking; I don&#8217;t know if that&#8217;s really a benefit, because it really highlighted a bunch of annoying speech tics, some twisted sentences, etc. But even if it hurts my ego somewhat, I&#8217;m hoping it can help me reduce some of these bad habits&hellip;</li>
<li>I got a chance to correct in the transcript some rather obvious mistakes I made while talking (using &#8220;computers&#8221; where I meant &#8220;phones&#8221; for instance); I&#8217;m sure there are conventions on how to express this &#8211; I used &#8220;[phones]&#8220;;</li>
<li>generally speaking, having a text transcript of the video offers a bunch of creative usage of that new text for further manipulation; e.g. here is the <a href="http://www.wordle.net/">Wordle</a> of the transcript of the video:<br />
<a href="/~dom/2009/wordle-parisweb.png"><img src="/~dom/2009/wordle-parisweb-sm" alt="Cloud of words taken from the audio track of the video" width="200" height="122" /></a>.</li>
</ul>
<p>And more importantly, this was a trigger for me to look more into the video / text synchronization questions, which will be the <a href="http://people.w3.org/~dom/archives/2009/02/synchronizing-text-and-videosynchronizing-text-and-video/">topic of my next blog entry</a> in this series.</p>]]></content:encoded>
			<wfw:commentRss>http://people.w3.org/~dom/archives/2009/02/diving-in-transcription/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
<enclosure url="http://dotsub.com/media/b1691c89-f9cd-474a-b1a2-32dbaf222065/em/flv/en" length="1058079" type="video/x-flv" />
<enclosure url="http://media.w3.org/2009/02/screencast-transcriber.ogv" length="172032" type="video/ogg" />
<enclosure url="http://media.w3.org/2009/02/screencast-transcriber.avi" length="381882" type="video/x-msvideo" />
		</item>
		<item>
		<title>Using a Treo 650 PDA with Debian on a Dell</title>
		<link>http://people.w3.org/~dom/archives/2006/01/using-a-treo-650-pda-with-debian-on-a-dell/</link>
		<comments>http://people.w3.org/~dom/archives/2006/01/using-a-treo-650-pda-with-debian-on-a-dell/#comments</comments>
		<pubDate>Wed, 11 Jan 2006 12:57:56 +0000</pubDate>
		<dc:creator>Dom</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Gnome desktop]]></category>
		<category><![CDATA[Mobile Web]]></category>

		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2006/01/using-a-treo-650-pda-with-debian-on-a-dell/</guid>
		<description><![CDATA[
I just got a brand new PDA-phone last Monday, a Tréo 650 running PalmOS.
I have been reluctant to cell phones for a long while, finding them rather invasive: when you own a cell phone, people expect to be able to reach you on it pretty much all the time and everywhere. At some point, the [...]]]></description>
			<content:encoded><![CDATA[<p class="illustration"><a href="/~dom/wp-content/treo.jpg" title="Larger version of the photo of my treo"><img src="/~dom/wp-content/treo-thumb.jpg" alt="My Treo 650 showing this very web page" width="64" height="120" /></a></p>
<p>I just got a brand new <acronym title="Personal Digital Assistant">PDA</acronym>-phone last Monday, a Tréo 650 running PalmOS.</p>
<p>I have been reluctant to cell phones for a long while, finding them rather invasive: when you own a cell phone, people expect to be able to reach you on it pretty much all the time and everywhere. At some point, the trade off between this cost and the advantage of being able to call some people all the time and everywhere tipped the balance, and I finally decided to get a cell phone for my personal usage.</p>
<p>With this new toy, not only am using now a cell phone for my professional usage (the primary reason behind it), I&#8217;m also jumping into the PDA adventure; again, I&#8217;ve never been really convinced by the need to get a PDA; I organize most of my work using my computer, and even though I move quite a bit for my work, the need to have access to all my data all the time has never appeared so urgent to me.</p>
<p>But even if the primary reason to couple my cell phone with a PDA was to get my hands on some real <a href="http://people.w3.org/~dom/archives/2005/09/new-responsibilities/">Mobile Web</a> experiences [Note to self: this site looks horrible on my PDA], I&#8217;m hoping to also make this an opportunity to give a shot at using a PDA for real, with access to my calendar, my email messages and a Web browser. Maybe the few times I remember having thought &#8220;too bad I can&#8217;t look <var>this</var> up&#8221; combined with the geeky joy of using a new gadget will make me a real adept of the digital life on the move?</p>
<h4>Debian and Bluetooth</h4>
<p>The first step in that direction was to make the said PDA to work well in cooperation with my Dell laptop (Latitude D600) running Debian, and where I keep most of the data relevant to my PDA using Gnome and Evolution.</p>
<p>Some part of this process were fairly easy, but way too many were incredibly difficult compared to the task.</p>
<p>Setting up my laptop to talk to my PDA using bluetooth was really simple, mostly thanks to <a href="http://www.newt.com/debian/treo650.html">Bill Wohler&#8217;s complete description</a> of the steps needed to get Debian to work with the Treo. I guess I hope at some point most of this configuration work could be automated using hardware detection (e.g. <a href="http://freedesktop.org/Software/hal">HAL</a>), but the current cost of editing a few text files is more than acceptable to me.</p>
<p>Getting them to talk together means that:</p>
<ul>
<li>they can detect each other and authorize each other as Bluetooth devices</li>
<li>I can use my laptop as a network gateway for my PDA, thus making it possible to test all the network operations without eating my GPRS paid time</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://people.w3.org/~dom/archives/2006/01/using-a-treo-650-pda-with-debian-on-a-dell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating a new URIs scheme handler to Gnome and Firefox</title>
		<link>http://people.w3.org/~dom/archives/2005/09/integrating-a-new-uris-scheme-handler-to-gnome-and-firefox/</link>
		<comments>http://people.w3.org/~dom/archives/2005/09/integrating-a-new-uris-scheme-handler-to-gnome-and-firefox/#comments</comments>
		<pubDate>Wed, 14 Sep 2005 22:40:22 +0000</pubDate>
		<dc:creator>Dom</dc:creator>
				<category><![CDATA[Gnome desktop]]></category>

		<guid isPermaLink="false">http://people.w3.org/~dom/?p=83</guid>
		<description><![CDATA[As DanC mentioned, we&#8217;ve been playing with configuring Firefox in Gnome to use tel: URIs with our Vonage service; in short, this means you can click on a link à la tel:+1.555.123.4567 and get your Vonage phone calls the said the number. In practice, your phone starts ringing, and once you pick it up, it [...]]]></description>
			<content:encoded><![CDATA[<p>As <a href="http://www.advogato.org/person/connolly/diary.html?start=34">DanC mentioned</a>, we&#8217;ve been playing with configuring Firefox in Gnome to use <code>tel:</code> URIs with our <a href="http://www.vonage.com/">Vonage service</a>; in short, this means you can click on a link à la <a href="tel:+1.555.123.4567">tel:+1.555.123.4567</a> and get your Vonage phone calls the said the number. In practice, your phone starts ringing, and once you pick it up, it dials the said number.</p>
<p>Most of the actual work is done by <a href="https://secure.click2callu.com">Click 2 Call</a> which offers a Web interface to your Vonage line. But getting integrated nicely in your browsing/desktop experience is fun.</p>
<p>So, how do you get a new URI scheme to be handled by Firefox or Gnome?</p>
<p>Well, first, getting a new URI scheme to be handled by Firefox is equivalent as getting it handled for Gnome, since for some reason, Firefox uses the generic <code>gnome-open</code> command to handled unknown URI schemes. I haven&#8217;t been able to find how or why, so I don&#8217;t know if that&#8217;s Debian specific or if this is true for any Firefox running on Linux et al.</p>
<p>Getting a new URI handler in Gnome is not necessarily well-documented, but once you know, it&#8217;s very easy; the set of three commands below is all that&#8217;s needed to get my local script <a href="/~dom/2005/vonage-call">vonage-call</a> to be added as the handler for <code>tel:</code> URIs:</p>
<p><kbd>gconftool-2 -t string -s /desktop/gnome/url-handlers/tel/command "bin/<a href="/~dom/2005/vonage-call">vonage-call %s</a>"</kbd><br />
<kbd>gconftool-2 -s /desktop/gnome/url-handlers/tel/needs_terminal false -t bool</kbd><br />
<kbd>gconftool-2 -t bool -s /desktop/gnome/url-handlers/tel/enabled true</kbd></p>
<p>The same kind of commands allows to add any kind of URI handler, like my <a href="http:////lists.w3.org/Archives/Public/uri/2002Dec/0005.html">MID dereferencer</a>,  my <a href="http://www.nimbustier.net/blogs/2003/04/jdm_5">urn:isbn dereferencer</a> or the <a href="impressive.net/people/gerald/2000/12/edit-bookmarklet.html">x-edit bookmarklet hack</a>.</p>

<p>So, what does this <code>vonage-call</code> script do? Well, most of the actual work is done by a simple curl call to the said Web interface; but I&#8217;ve added a bit of interfacing to be improve the look &amp; feel of the operation, using <code>zenity</code>, Gnome&#8217;s equivalent of xdialog.</p>
<p>So, when you call <code>vonage-call</code> without argument, you&#8217;re asked for a phone number to call:<br />
<img src="/~dom/2005/vonage-call-number2.png" alt="Screenshot of the dialog asking to enter the phone number to be called"  /></p>
<p>Once entered (or directly if you&#8217;ve followed a <code>tel:</code> link), you&#8217;re asked for confirmation :<br />
<img src="/~dom/2005/vonage-call-confirm.png" alt="Screenshot of the dialog asking confirmation for the call" /></p>
<p>And eventually, there is even a progress bar for the few seconds it takes to run the curl command:<br />
<img src="/~dom/2005/vonage-call-dialing.png" alt="Screenshot of the progress bar" /></p>
<p>To finalize the integration of this small script into the desktop, and following <a href="http://developers.sun.com/solaris/articles/integrating_gnome.html">Sun&#8217;s documentation on Gnome integration</a>, I&#8217;ve managed to add an entry in my Applications->Internet menu&#8230; with great pain, I must confess.</p>
<p>The key to be able to use a personalized menu per-User on gnome is to have the following file created
<code>.gnome2/vfolders/applications.vfolder-info</code></p>
<pre><code>
&lt;VFolderInfo>
  &lt;!-- path doesn't understand $HOME or ~/ ; maybe it would understand it as a relative path to $HOME? didn't test --&gt;
  &lt;WriteDir><var>/home/dom/</var>.gnome2/vfolders/applications&lt;/WriteDir>
&lt;/VFolderInfo>
</code></pre>
<p>This basically instructs Gnome that it can write into the said directory &mdash; make sure to actually create it (<kbd>mkdir -p .gnome2/vfolders/applications</kbd>) &mdash; when you try to personalize the menu with Nautilus; otherwise, you get a permission denied error, since Nautilus would try to modify the content of the directory defined at a higher level in <code>/etc/gnome-vfs-2.0/applications-all-users.vfolder-info</code>; once this is done (and despite the complete lack of documentation of this), you can use Nautilus to add (and probably remove) launchers in your menu. This is with Gnome 2.8; I&#8217;ve read that Gnome 2.12 fixes some of the menu-editing difficultiess, so this may be easier if you&#8217;re running a bleeding edge version.</p>
<p>A launcher in Gnome (and KDE) is a simple <code>.desktop</code> file that lists a <a href="http://www.freedesktop.org/wiki/Standards_2fdesktop_2dentry_2dspec">set of well-defined properties</a>; here is what I&#8217;ve used for my little script <code>vonage.desktop</code> that I placed in the directory created above, <code>.gnome2/vfolders/applications</code>:</p>
<pre><code>
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Vonage caller
Comment=Call phone numbers using Vonage
Exec=<var>/home/dom/</var>bin/vonage-call
Icon=stock_landline-phone.png
Terminal=false
Type=Application
Categories=Application;Internet;
</code></pre>
<p>This can actually be created with the graphical interface, I think: right-click on your desktop, create a new launcher bound to the right command and selecting the right icon; once done, open the &#8220;Applications&#8221; virtual folder in Nautilus (either from the virtual &#8220;Start here&#8221; folder, or using the <code>applications-all-users://</code> URI (sigh!)), and copy your new launcher in it; the right thing should happen:
<img src="/~dom/2005/internet-menu.png" alt="List of items in the Internet menu in Gnome, with the Vonage caller script added" /></p>
<p>Well, that&#8217;s about it; there is still a bit too much of magic for my liking, but the fact that this is doable, and even fairly easy once you know the magic is already pretty sweet!</p>]]></content:encoded>
			<wfw:commentRss>http://people.w3.org/~dom/archives/2005/09/integrating-a-new-uris-scheme-handler-to-gnome-and-firefox/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Setting up a secure remote X session with gdm</title>
		<link>http://people.w3.org/~dom/archives/2005/09/setting-up-a-secure-remote-x-session-with-gdm/</link>
		<comments>http://people.w3.org/~dom/archives/2005/09/setting-up-a-secure-remote-x-session-with-gdm/#comments</comments>
		<pubDate>Wed, 14 Sep 2005 11:44:32 +0000</pubDate>
		<dc:creator>Dom</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Gnome desktop]]></category>

		<guid isPermaLink="false">http://people.w3.org/~dom/?p=85</guid>
		<description><![CDATA[After the video card in my desktop computer fried last week for some reasons unknown to me, I moved to use my laptop as the basis of my daily work environment for a few days. And now that my desktop is back in service, I&#8217;m thinking to move to a laptop-only mode. But this move [...]]]></description>
			<content:encoded><![CDATA[<p>After the video card in my desktop computer fried last week for some reasons unknown to me, I moved to use my laptop as the basis of my daily work environment for a few days. And now that my desktop is back in service, I&#8217;m thinking to move to a laptop-only mode. But this move is pending some hardware complements (e.g. a port replicator), and I decided that I should start using my laptop system right now rather than later; I&#8217;d rather not plug all my existing devices in the laptop since I would have to unplug them too frequently, so I&#8217;ve decided to transform at least temporarily my desktop in a simple X Terminal.</p>
<p>I toyed with the idea of using a solution based on VNC, which allows one to share a unique X Session on two or more computers, especially as Gnome includes a server (vino) easily configurable; but my tests with various clients (xtightvncserver, xvncserver, svncviewer) were quite inconclusive, the resulting experience being always very sluggish (limited by CPU, I think, which on a 1.60 GHz computer would be disappointing), and sometimes buggy (e.g. key press being repeated too many times). I probably should investigate further whether this is to be expected or due to some failure on my part&#8230;</p>
<p>Meanwhile, I decided to took the traditional X-over-the-network approach ; the default and well-deployed solution is to use XDMCP, which is really easy to set up when using Gnome login manager (gdm); the only problem is that XDMCP is really insecure (transmitting passwords on the clear), and although this would be mainly to run on my local wired network, I don&#8217;t want to rely on security through obscurity.</p>
<p>Unfortunately, it appears one cannot run XDMCP through ssh, since it relies on UDP traffic which apparently ssh can&#8217;t tunnel. So securing XDMCP is not directly easy.</p>
<p>I then found about sdm which basically does what I want: it acts as a graphical login manager, which instead of running a traditional X-session starts an ssh connection to your target host and launch your traditional X session manager there.</p>
<p>The only problem with that solution is that I don&#8217;t want to rely on another login manager but gdm, since it&#8217;s well integrated with Gnome; so instead, I quickly reimplemented the equivalent solution for GDM, which proved to be quite easy: I only had to add (in Debian) the two following files to get a new session type available from the GDM session menu under the name &#8220;SSH&#8221;.</p>
<p>The most important file is a simple shell script that will act as the X session manager: it asks graphically which host to connect to, asks the passphrase, connects through ssh and invokes the local x-session-manager. I placed it under <var>/usr/local/bin/ssh-session</var>:</p>
<pre><code>
#!/bin/bash

TARGETHOST=`zenity --title "Host to connect to" --entry --text "Enter the name of the host you want to log in to"`
#@@@ should probably get a user name too; I don't need it so didn't set it up that way
#@@@ should it do an ssh-add so the user doesn't have to enter its passphrase again?
SSH_ASKPASS=/etc/alternative/ssh-askpass /usr/bin/ssh -A -X -T -n "$TARGETHOST" /usr/bin/x-session-manager
</code></pre>
<p>(Ideally, the zenity call should include a list of servers, either taken from <var>.ssh/known_hosts</var>, or from a zeroconf lists of local servers that provide an ssh connection; too bad Zeroconf is still so little implemented on linux, but hopefully <a href="http://www.freedesktop.org/Software/Avahi">Avahi</a> should fix that in the near future)</p>
<p>The other file is the one responsible to linking that session manager from GDM; it&#8217;s a simple .desktop file, which I placed at<br />
<code>/etc/dm/Sessions/ssh.desktop</code>:</p>
<pre><code>
[Desktop Entry]
Encoding=UTF-8
Name=SSH
Comment=This session logs you into a remote host using ssh
Exec=/usr/local/bin/ssh-session
Type=Application
</code></pre>
<p>(Given that it relies on the existing Debian conventions, this should also work to start a remote KDE session through kdm.)</p>
<p>So now I can connect from my desktop directly into my laptop system, and the resulting experience is impressively good with a 100Mbs ethernet connection (on the 11 Mbs wireless connection, the result is much less pleasing) ; it doesn&#8217;t seem to take much CPU at all on the laptop either.</p>
<p><ins datetime="2006-01-17"><strong>Update</strong> (17 Jan 2006): As part of the <a href="http://bugzilla.gnome.org/show_bug.cgi?id=322155">Bug 322155</a> and with lots of helpful comments from Brian Cameron, I have produced a patch to make such a session a built-in in GDM, patch that has been committed to the CVS server.</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://people.w3.org/~dom/archives/2005/09/setting-up-a-secure-remote-x-session-with-gdm/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Worldclock with gdesklets</title>
		<link>http://people.w3.org/~dom/archives/2005/09/wordclock-with-gdesklets/</link>
		<comments>http://people.w3.org/~dom/archives/2005/09/wordclock-with-gdesklets/#comments</comments>
		<pubDate>Thu, 08 Sep 2005 08:55:27 +0000</pubDate>
		<dc:creator>Dom</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Gnome desktop]]></category>

		<guid isPermaLink="false">http://people.w3.org/~dom/?p=81</guid>
		<description><![CDATA[Working with people around the world, I often ask myself what time is it where X is? How long Y will be available? Until when Z will be pestering me? Although there are plenty of web sites that give you that information (I particularly like the worldclock from time and date.com), this kind of information [...]]]></description>
			<content:encoded><![CDATA[<p>Working with people around the world, I often ask myself what time is it where X is? How long Y will be available? Until when Z will be pestering me? Although there are plenty of web sites that give you that information (I particularly like the <a href="http://www.timeanddate.com/worldclock/">worldclock from time and date.com</a>), this kind of information is something I want directly available on my desktop, especially when I&#8217;m using IRC &#8211; our primary mode of instant communication in W3C.</p>
<p>So, using a <a href="http://www.gnome.org/">Gnome desktop</a>, I installed a set of <a href="http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&amp;gd_app_id=12">4 clocks on my desktop</a> set on the timezones of the people I work the most often with&#8230; Et voilà !</p>
<p><img src="/~dom/2005/worldclock.png" alt="4 clocks on my desktop" /></p>]]></content:encoded>
			<wfw:commentRss>http://people.w3.org/~dom/archives/2005/09/wordclock-with-gdesklets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>copy/pasting between Emacs and other apps</title>
		<link>http://people.w3.org/~dom/archives/2005/01/copypasting-between-emacs-and-other-apps/</link>
		<comments>http://people.w3.org/~dom/archives/2005/01/copypasting-between-emacs-and-other-apps/#comments</comments>
		<pubDate>Fri, 07 Jan 2005 14:02:19 +0000</pubDate>
		<dc:creator>Dom</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Gnome desktop]]></category>

		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2005/01/copypasting-between-emacs-and-other-apps/</guid>
		<description><![CDATA[Finally, a good solution to make Emacs behave reasonably well within my Gnome Desktop with copy &#38; paste operation.
One of these terrible &#8220;un-break me&#8221; configuration options, where the user is left to wonder why this was broken in the first place&#8230;]]></description>
			<content:encoded><![CDATA[<p>Finally, a good solution <a href="http://www.oreillynet.com/pub/wlg/6162">to make Emacs behave reasonably well within my Gnome Desktop</a> with copy &amp; paste operation.</p>
<p>One of these terrible &#8220;un-break me&#8221; configuration options, where the user is left to wonder why this was broken in the first place&#8230;</p>]]></content:encoded>
			<wfw:commentRss>http://people.w3.org/~dom/archives/2005/01/copypasting-between-emacs-and-other-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New laptop</title>
		<link>http://people.w3.org/~dom/archives/2004/09/new-laptop/</link>
		<comments>http://people.w3.org/~dom/archives/2004/09/new-laptop/#comments</comments>
		<pubDate>Mon, 27 Sep 2004 15:15:38 +0000</pubDate>
		<dc:creator>Dom</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Gnome desktop]]></category>

		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2004/09/new-laptop/</guid>
		<description><![CDATA[Friday, I got a new laptop, a Dell Latitude D600, to replace my Compac Evo N400c; using the new Debian installer for Sarge, it took less than 20 minutes to get a working environment, with Gnome 2.6 and most of the hardware functionalities working&#8230; Quite a big improvement since the last time I used the [...]]]></description>
			<content:encoded><![CDATA[<p>Friday, I got a new laptop, a Dell Latitude D600, to replace my <a href="http://www.nimbustier.net/publications/linux/linux-evon400c-en.html">Compac Evo N400c</a>; using the new Debian installer for Sarge, it took less than 20 minutes to get a working environment, with Gnome 2.6 and most of the hardware functionalities working&#8230; Quite a big improvement since the last time I used the Debian installer!</p>
<p>The main piece that didn&#8217;t quite work as is, is the ACPI configuration; fortunately, other people than me have gone through this, and following <a href="http://www.loria.fr/~thome/d600/">these Dell D600 tips for Linux</a>, I think I got the remaining bits working; a few notes to other Debian users with regard to the notes linked above:</p>
<ol>
<li>as of today, Debian <code>acpid</code> won&#8217;t read configuration files with a <code>.</code> in them (see a <a href="http://groups.google.com/groups?hl=en&amp;lr=&amp;ie=UTF-8&amp;threadm=1XZ3T-2Ff-13%40gated-at.bofh.it&amp;rnum=1&amp;prev=/groups%3Fq%3Dacpid%2B%2522ignoring%2Bconf%2Bfile%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3D1XZ3T-2Ff-13%2540gated-at.bofh.it%26rnum%3D1">related bug report</a>), so rename the <code>trap_all.conf</code> and <code>PBTN.conf</code> files without their <code>.conf</code> extensions</li>
<li>the <code>radeontool</code> binary compiled in the process hardcodes the location of the <code>lspci</code> util at <code>/sbin/lspci</code> whereas Debian has it in <code>/usr/bin/lspci</code>; so either recompile it with the proper fix, or make a symbolic link from one to the other</li>
<li>the <code>acpi_handler.pl</code> file needs to be tweaked to be adapted to Debian, too; that&#8217;s mostly replacing <code>/sbin/service </code> by <code>/etc/init.d/</code></li>
</ol>
<p>As far as I can tell, now my laptop goes to suspend when the lid is closed and the AC power is off; and the screen goes blank when the lid is shut, whatever state the AC power is at.</p>
<p>See also my <a href="/~dom/d600-kernel-config">kernel configuration file</a>, my <a href="/~dom/d600-XF86Config-4">XF86 configuration file</a> (both shamelessly stolen from colleagues of mine), my <a href="/~dom/d600-acpi-handler.pl">modified version of <code>acpi-handler.pl</code></a>.</p>
<p>I hope that the weird disk noises that I heard this morning were just that, and not the sign of anything worse&#8230; Also, I still get to get the internal Wifi card to work, although the fact that my PCMCIA card works as is doesn&#8217;t really motivate me to make it work&#8230;</p>]]></content:encoded>
			<wfw:commentRss>http://people.w3.org/~dom/archives/2004/09/new-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Viewing application/*+xml in Galeon (and possibly other mozilla derivatives)</title>
		<link>http://people.w3.org/~dom/archives/2004/07/viewing-rfc3023xml-in-mozilla/</link>
		<comments>http://people.w3.org/~dom/archives/2004/07/viewing-rfc3023xml-in-mozilla/#comments</comments>
		<pubDate>Mon, 19 Jul 2004 13:07:15 +0000</pubDate>
		<dc:creator>Dom</dc:creator>
				<category><![CDATA[Gnome desktop]]></category>
		<category><![CDATA[Semantic Web]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2004/07/viewing-rfc3023xml-in-mozilla/</guid>
		<description><![CDATA[Getting Galeon to visualize <code>application/rdf+xml</code> as it would visualize <code>application/xml</code>]]></description>
			<content:encoded><![CDATA[<p>For quite some time, <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=155730">Mozilla&#8217;s bug about not recognizing the <code>application/*+xml</code> MIME Type</a> as an XML Mime Type has made my life harder than it should be; that&#8217;s especially true for RDF files served as <code>application/rdf+xml</code> (see the <a href="http://www.ietf.org/internet-drafts/draft-swartz-rdfcore-rdfxml-mediatype-05">proposed registration of this MIME Type</a>). Enough being enough, I&#8217;ve set up a work around this bug in my Gnome 2.6 + Galeon 1.3 set up; it&#8217;s not clear how much of this can be re-used in other environments, although I think it&#8217;s likely it should work with other Gnome+Mozilla derivatives set up.</p>
<p>The basic idea is to get my browser to understand that <code>application/*+xml</code> is really just like <code>application/xml</code>, unless it knows better. To that end, I first wrote a <a href="http://www.w3.org/2004/07/viewAsXml">small CGI script that more or less proxies resources served as <code>application/<var>*</var>+xml</code> into <code>application/xml</code></a>, by simply rewriting the Content-Type header. Note that it respects the <code>charset</code> parameter if it is set, and also forwards HTTP Authorization requests and responses between the client and the server.</p>
<p>Once this was available and working (as <a href="http://www.w3.org/2004/07/viewAsXml?uri=http://www.w3.org/2002/01/tr-automation/new-tr.rdf">demonstrated by applying it to a W3C RDF file</a>), I needed a way to tell my browser to use this service for the relevant MIME Types; in Gnome (and thus Galeon), this is done using the &#8220;File Types and Programs&#8221; tool in the advanced preferences menu; I added an RDF entry inside the &#8220;Information&#8221; category, with the MIME Type <code>application/rdf+xml</code>, and made it handled by a very simple shell script that I had created in my <code>~/bin</code> directory:</p>
<pre><code>
#!/bin/bash
galeon --no-raise -x "http://www.w3.org/2004/07/viewAsXml?uri=$1"
</code></pre>
<p>This should have been enough, but the fact that by default, tools that are specified using this tool aren&#8217;t supposed to understand URLs, so that Galeon would first download the file in <code>/tmp</code> and then pass <code>/tmp/<var>filename.rdf</var></code> to my little shell script, making it call the CGI script on a bogus URI&#8230;</p>
<p>After some investigation, I found out that adding the following lines in the relevant section of  my <code>~/.gnome/application-info/user.applications</code> configuration file (and despite the warning at the top not to edit it by hand) would finally make my browser do the right thing:</p>
<pre><code>
 viewAsXml
<var>        ...</var>
        mime_types=application/rdf+xml
<ins>        expects_uris=true
        supported_uri_schemes=http</ins>
</code></pre>
<p>Now I can view RDF files in my Web browser happily again!</p>
<p>Of course, the real solution would be to solve Mozilla&#8217;s bug itself; pending that, this solution could be improved:</p>
<ul>
<li>to work with any Mozilla derivative; I believe that with Mozilla (or Firefox) in Gnome, setting the preference to have it use the systems default should be enough; KDE has probably the same kind of capacity has Gnome in that regard, so this should be easy enough to adapt to that case; for Mozilla alone, I haven&#8217;t found a way to configure the <code>mimeTypes.rdf</code> file properly to make it pass the URL along</li>
<li>to work with any <code>application/<var>*</var>+xml</code> MIME Type ; right now, it only works for the one you actually specify, but I&#8217;m doubtful that the underlying MIME Types system has any capacity to match such a pattern</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://people.w3.org/~dom/archives/2004/07/viewing-rfc3023xml-in-mozilla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
