<?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>Syntactic sugar &#187; linux</title>
	<atom:link href="http://syntacticsugar.nl/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://syntacticsugar.nl</link>
	<description>Random ramblings of another web-techy</description>
	<lastBuildDate>Sat, 09 Jan 2010 21:24:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HOWTO : Bluetooth Tethering with Nokia N900</title>
		<link>http://syntacticsugar.nl/2009/12/03/bluetooth-tethering-with-nokia-n900/</link>
		<comments>http://syntacticsugar.nl/2009/12/03/bluetooth-tethering-with-nokia-n900/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 10:40:07 +0000</pubDate>
		<dc:creator>buTTon</dc:creator>
				<category><![CDATA[Nokia N900]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[Internet Sharing]]></category>
		<category><![CDATA[Tethering]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://syntacticsugar.nl/?p=310</guid>
		<description><![CDATA[Tethering (using you&#8217;re mobile phone to get your laptop/notebook online) is a quite important feature for me, when I&#8217;m at a meeting I do not wish to rely on wireless connections from my customers or the hotel/cafe where I&#8217;m at. With my Nokia E90 I used JoikuSpot, which turns the E90 into a wireless accesspoint, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Tethering" target="_blank">Tethering</a> (using you&#8217;re mobile phone to get your laptop/notebook online) is a quite important feature for me, when I&#8217;m at a meeting I do not wish to rely on wireless connections from my customers or the hotel/cafe where I&#8217;m at. With my Nokia E90 I used <a href="http://www.joikushop.com/" target="_blank">JoikuSpot</a>, which turns the E90 into a wireless accesspoint, worked like a charm but drains the batteries extremely fast. One very big advantage of creating a Wifi-accesspoint is speed; I have 7.2 mbit 3.5G subscription (the E90 only got to 3.2 mbit though), which is too fast for bluetooth, you usually get about 1 mbit from bluetooth.. With wifi I was able to use the full 3.2 mbit my E90 was able to provide.</p>
<p><span id="more-310"></span></p>
<p>With the new Nokia N900 I&#8217;ve been looking for a way to get my Ubuntu Karminc netbook &amp; Ubuntu Jaunty laptop online, preferably with Wifi, but at least using Bluetooth. Wifi is unfortunately not yet supported because the some kernel-modules  (iptables, iptables_nat) are not available for Maemo (<a href="http://talk.maemo.org/showthread.php?t=30916&amp;highlight=tethering&amp;page=2" target="_blank">they are working on it</a>). Bluetooth is possible, and quite easy to archive with Ubuntu Karmic. I&#8217;ll explain how to get your Ubuntu Karmic laptop online with a N900 using the DUN-service (DailUpNetworking)</p>
<p><em>You need to be comfortable with the commandline/terminal and have <a href="http://talk.maemo.org/showthread.php?t=33911" target="_blank">rootsh </a>installed </em><em>on your N900</em><em> to do this! If you&#8217;re NOT comfortable with the Terminal : do not proceed, you will need to be root, and that enables you to brick your N900!</em></p>
<p><strong>On the N900</strong></p>
<p>You&#8217;ll need the following script (taken from <a href="http://wiki.maemo.org/index.php?title=Fremantle_Unsupported_Bluetooth_profiles#DUN_server" target="_blank">Maemo Wiki</a>):</p>
<pre>sdptool add --channel 1 DUN
while true; do
        rfcomm -S -- listen -1 1 /usr/bin/pnatd '{}'
        sleep 1
done</pre>
<p>I copied the script,  pasted it into a new text-file on my laptop (called it dun.sh) and sent it to my N900 with bluetooth. Your N900 will ask where to store the script, I stored into Documents. Now fire up the terminal application on the N900 and become root:</p>
<pre>~ $ sudo gainroot</pre>
<p>Move the uploaded file to /usr/bin :</p>
<pre>/home/user # mv /home/user/MyDocs/.documents/dun.sh /usr/bin/</pre>
<p>Make the file dun.sh executable;</p>
<pre>/home/user # chmod +x /usr/bin/dun.sh</pre>
<p>Start the DUN-service:</p>
<pre>/home/user # dun.sh</pre>
<p>You should see something like this:</p>
<pre>Dial-Up Networking Service Registered
Waiting for connection on channel 1</pre>
<p>Configuring the N900 is finished, next;</p>
<p><strong>configuring Ubuntu (Karmic)<br />
</strong></p>
<p><em>Be sure you have paired the N900 with your laptop</em></p>
<p><span style="text-decoration: underline;">Configuring the network-connection</span><em><br />
</em></p>
<ul>
<li>Left click on the network-manager from the notification area of the gnome-panel, select &#8220;Edit connections&#8221;</li>
<li>Select the &#8220;Mobile Broadband&#8221;-tab and press &#8220;Add&#8221;<br />
<a href="http://syntacticsugar.nl/wp-content/uploads/2009/12/Screenshot-Network-Connections.png"><img class="alignnone size-medium wp-image-311" title="Network Connections" src="http://syntacticsugar.nl/wp-content/uploads/2009/12/Screenshot-Network-Connections-300x219.png" alt="Network Connections" width="300" height="219" /></a></li>
<li>Click &#8220;forward&#8221; (leaving the selection to &#8220;any device&#8221;)</li>
<li>Select the country, click &#8220;forward&#8221; and select your mobile operator.</li>
<li>If you have the option to select a plan, do so (I needed to select Vodafone Business to get the correct APN), else click &#8220;forward&#8221;</li>
<li>Click &#8220;Apply&#8221; to save the new Mobile Broadband-service</li>
<li>A new window will appear to configure the Service, <em>be sure to enable &#8220;Connect automatically&#8221; </em>and click<em> </em>&#8220;apply&#8221;<em><br />
</em></li>
<li>Close the window &#8220;Network connections&#8221;<em><br />
</em></li>
</ul>
<p><span style="text-decoration: underline;">Next: connecting to your N900 with DUN</span></p>
<p>First; be sure you have <a href="http://blueman-project.org/">Blueman</a> Installed, you&#8217;ll need this to configure the connections.  If you do not have Blueman running install it following the instructions <a href="http://blueman-project.org/downloads.html">found here</a><br />
<em></p>
<blockquote><p>
In Ubuntu Karmic you can add blueman repositories by issuing this command:<br />
sudo add-apt-repository ppa:blueman/ppa</p>
<p>And to install it run:<br />
sudo apt-get update<br />
sudo apt-get install blueman
</p></blockquote>
<p></em></p>
<ul>
<li>Check if you have enabled the correct plugin;</li>
<li>Right-click on the bluetooth-icon in the notification area in the panel and select &#8220;plugins&#8221;<br />
<a href="http://syntacticsugar.nl/wp-content/uploads/2009/12/screenshot_0041.png"><img class="alignnone size-full wp-image-314" title="screenshot_004" src="http://syntacticsugar.nl/wp-content/uploads/2009/12/screenshot_0041.png" alt="screenshot_004" width="273" height="33" /></a></li>
<li>Enable &#8220;NMDUNSupport&#8221; (optionally you can enable the &#8220;NetUsage&#8221; plugin to monitor data-usage) and close the Plugins window.</li>
<li>Open the bluetooth manager (by  left-clicking on the bluetooth-icon in the notification area in the panel) and look for your N900.<br />
<a href="http://syntacticsugar.nl/wp-content/uploads/2009/12/Screenshot-Bluetooth-Devices.png"><img class="alignnone size-medium wp-image-324" title="Screenshot-Bluetooth Devices" src="http://syntacticsugar.nl/wp-content/uploads/2009/12/Screenshot-Bluetooth-Devices-300x218.png" alt="Screenshot-Bluetooth Devices" width="300" height="218" /></a></li>
<li>Right-click on the N900-icon and select &#8220;Refresh Services&#8221;</li>
<li>Again; right-click on the N900 and click &#8220;Dail-Up Networking&#8221;.. your laptop will try to connect to your N900</li>
<li>If the connection is OK you can establish the network-connection to your Mobile Broadband provider, left-click on the Network-manager in the notification area and select the network connection you created in the previous section (&#8220;Configuring the network-connection&#8221;).</li>
<li><em>If all goes well you should be online now!</em> (if you had a &#8216;normal&#8217; wifi connection, disconnect it to be sure you&#8217;re using the Dail-Up with your N900).</li>
</ul>
<p><strong>Possible Issues</strong></p>
<p>If you disconnect from dail-up networking and try to reconnect you could get an error : &#8220;Connection Failed: Port already in use&#8221;.. To fix this, restart bluetooth on your laptop:</p>
<p>sudo /etc/init.d/bluetooth restart</p>
<p><strong>Loose ends</strong></p>
<p>You could leave the DUN-script running in a terminal on your N900, I&#8217;m not yet sure if this could drain the battery. If it doesn&#8217;t it may be possible to add the script into the /etc/rc2.d directory, this way the script will be started at boot and you can connect to your N900 quickly without manually starting DUN. I&#8217;ll look into this when I&#8217;m sure the script doesn&#8217;t drain the battery (Update: It doesn&#8217;t; it&#8217;s save to autostart the script).</p>
<p>Ubuntu Jaunty doesn&#8217;t have the bluetooth manager which is used in Ubuntu Karmic; I&#8217;ll update this post with instructions for Jaunty later, and if anyone has a step by step howto for Windows, please let me know so I can add a link to your site or add the howto here <img src='http://syntacticsugar.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Update : If you&#8217;d like DUN started automatically, check out <a href="http://intr.overt.org/blog/?p=74">this</a> and <a href="http://intr.overt.org/blog/wp-trackback.php?p=88" target="_blank">this</a> helpful post</p>
<p>Update 12-30-09:<br />
The DUN script is now available in the Maemo-repositories; still in testing though.<br />
Also; I forgot to mention <strong>Blueman</strong> . I assumed it was part of Karmic and installed by default; but it&#8217;s not, i&#8217;ve added instructions (Thx to Alex &#038; Alex in the comments).</p>
]]></content:encoded>
			<wfw:commentRss>http://syntacticsugar.nl/2009/12/03/bluetooth-tethering-with-nokia-n900/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Nokia N900: first experiences</title>
		<link>http://syntacticsugar.nl/2009/12/02/nokia-n900-first-experiences/</link>
		<comments>http://syntacticsugar.nl/2009/12/02/nokia-n900-first-experiences/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 15:26:21 +0000</pubDate>
		<dc:creator>buTTon</dc:creator>
				<category><![CDATA[Nokia N900]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Maemo]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://syntacticsugar.nl/?p=301</guid>
		<description><![CDATA[Yay! Got my N900 directly from Nokia yesterday and I&#8217;ve been playing with it a lot. Overall I&#8217;m very happy with this new phone, finally something that beats the Nokia E90.
My findings for now;

Hardware
It&#8217;s a lot smaller than I expected, ok.. I was used to a E90 which is a huge brick (or my &#8220;mobile [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_277" class="wp-caption alignright" style="width: 160px"><a href="http://syntacticsugar.nl/wp-content/uploads/2009/11/nokia-n900-3.jpg"><img class="size-thumbnail wp-image-277" title="Nokia N900" src="http://syntacticsugar.nl/wp-content/uploads/2009/11/nokia-n900-3-150x150.jpg" alt="Nokia N900" width="150" height="150" /></a><p class="wp-caption-text">Nokia N900</p></div>
<p>Yay! Got my N900 directly from Nokia yesterday and I&#8217;ve been playing with it a lot. Overall I&#8217;m very happy with this new phone, finally something that beats the Nokia E90.</p>
<p>My findings for now;</p>
<p><span id="more-301"></span></p>
<p><strong>Hardware</strong><br />
It&#8217;s a lot smaller than I expected, ok.. I was used to a E90 which is a huge brick (or my &#8220;mobile fridge&#8221; as I used to call it).  It feels well constructed and solid; no creaky sounds when you squeeze it. The keyboard is a bit too small IMHO, but again; I was used to the keyboard of the E90 which is pretty large. The keyboard sliding-mechanism feels stirdy and will probably survive the phone.<br />
The touchscreen has a very soft feel, probably not very scratch-proof (I ordered a 3M Vikuiti DQC-160 screenprotector rightaway). Touch-response is good, though I do need the stylus for browsing, clicking a link with my fingers is practically impossible without zooming in.<br />
The speakers are quite good, though not as loud as the E90, but it has a surprisingly good stereo-sound with a large range. The headphones are also pretty good, have a lot of bass, but I&#8217;ll keep using my Sony MDR-E888&#8217;s for a while.</p>
<p><strong>Software</strong><br />
It&#8217;s clearly a phone for geeks; Maemo is very stable, pretty fast, but there are some things a &#8216;regular&#8217; phone-user will miss. Don&#8217;t get me wrong; almost everything works, but there are some issues I came across;</p>
<ul>
<li>The email-client; IMAP is supported, but my IMAP-account is filled with a lot of folders and emails (from over 7 years worth of business-email) and you can&#8217;t unsubscribe IMAP folders. The N900 checks them all and this take a lot of time and processor-usage (which will eventually drain the battery). After a while the mail-client just refused to open the Inbox-folder. According to <a href="https://bugs.maemo.org/show_bug.cgi?id=3762" target="_blank">this</a> bugreport this will be fixed in Nokia&#8217;s next update. There&#8217;s a workaround; you can use Nokia Messaging, in which you can select the IMAP-folder which need to be synced. Also there&#8217;s no support for IMAP-Idle.. which kinda sucks.</li>
<li>No MMS-support unfortunately. Maybe this will be implemented in a while.</li>
<li>Almost all apps have to be used in landscape mode; only the Phone-application switches. This is supposed to be fixed in next update (though I&#8217;m not sure about that)</li>
<li>&#8220;only&#8221; 256 mb storage available in the root-filesystem; though Nokia fixed this by creating a 2GB Ext3-filesystem and mounted this in /home/opt there are a lot of app&#8217;s out there that are not &#8216;optified&#8217; and use the root-filesystem. This shouldn&#8217;t be a problem if you only use the repositories from Nokia and Maemo Extras, but if you&#8217;re using Extras-testing and Extras-Devel you&#8217;re filling up the root-filesystem.. Which I found out the hard way <img src='http://syntacticsugar.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  .. Also most third-party apps are not optified, eg. Mozilla Fennec which takes roughly 35 mb of storage.  I&#8217;ll be trying some other file-system layouts later, after making backups <img src='http://syntacticsugar.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Nokia Maps is verrrry slow and uses a lot of processor. There&#8217;s no guided navigation available yet.. Sygic <a href="http://www.sygic.com/index.php/en/press-releases/press-news/225.html" target="_blank">announced</a> they will ship their navigation software at the end of 2009 .. I&#8217;d also like Google Maps for the N900, but there&#8217;s still no support for it (yet?).</li>
<li>I still haven&#8217;t found a way to select multiple files/messages (yet), mainly in the file-browser or in the mail-client.  If you want to remove multiple messages or move/delete multiple files this is annoying, you have to move/delete each file/message individually. Any tips on this are greatly appreciated.<br />
<em>Update 09-12-09</em>: selecting multiple files/email is supported, just click &#8220;delete&#8221; in the email-app and select the emails you&#8217;d like to delete, same goes for file-management..</li>
<li>Battery-life is kinda bad.. depends on what widgets and programs you&#8217;re running. I think I have to order a desktop-charger and some extra batteries soon.</li>
</ul>
<p>The good things about the N900:</p>
<ul>
<li>IM Integration: Skype, Gtalk, MSN, ICQ are integrated into the Contacts-app, which is very cool IMHO. You just select a contact and you&#8217;re able to choose; message using SMS, any kind of IM (if they are online), email, call using cellular, skype or GTalk.. the works! This really makes the N900 a multipurpose communicator ..</li>
<li>I wouldn&#8217;t use it; you can update the IM-status with your location, you can even choose which level of detail you&#8217;d like to expose: region, city or street.</li>
<li>The browser is verrrrry good, very fast, renders everything, also Flash and just works like the browser you have on your computer. Only small thing ; bookmarks.. I didn&#8217;t find a usable bookmarks-manager. You can only create folders in bookmarks by adding a bookmark, not by editting (but maybe I missed something). I&#8217;ve tried Fennec also, but the default browser is much faster, uses less memory and has better controls.</li>
<li>When connected using Wifi in my home-network the media-player and filebrowser automatically detected uPNP-shares from my Mac and my MediaTank.</li>
<li>Finally a phone on which I can be ROOT! (without hacking/jailbreaking) <img src='http://syntacticsugar.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
<li><span style="text-decoration: line-through;">Syncing Google Calendar works great with the Mail For Exchange-feature.. as long as you keep syncing of email and contacts disabled.<br />
</span><em>Update 09-12-09</em> : Syncing Google Calendar worked great, but now it keeps telling me &#8220;Cannot connect to server&#8221; .. annoying!<span style="text-decoration: line-through;"></span></li>
<li>The FM-transmitter is very cool.. It even sends the text &#8220;Nokia&#8221; to RDS-enabled radios..</li>
<li>I can use WAVE from my Mobile!!! w000t!</li>
</ul>
<p>In general I&#8217;m very happy with the N900, mainly because everything that in my house that has a processor is running some kind of Unix/Linux-flavour. Maemo has a promising future and I can&#8217;t wait for the next update; not only for bugfixes, also because I&#8217;m very curious what new features will be added.</p>
<div dir="ltr"><span id="result_box"><span style="background-color: #ffffff;" title="nieuwsgierig"><br />
</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://syntacticsugar.nl/2009/12/02/nokia-n900-first-experiences/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ordered the N900</title>
		<link>http://syntacticsugar.nl/2009/11/12/ordered-the-n900/</link>
		<comments>http://syntacticsugar.nl/2009/11/12/ordered-the-n900/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 08:19:48 +0000</pubDate>
		<dc:creator>buTTon</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Maemo]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://syntacticsugar.nl/?p=276</guid>
		<description><![CDATA[After almost 3 years of Nokia E90 usage I  ordered a Nokia N900. Imho it&#8217;s the only phone/MID worthy of replacing my E90.  Ok; it&#8217;s bulky, heavy (the E90 is a brick too)  and the OS is probably a bit rough around the edges, but it runs Linux (maemo), has a 800&#215;480 px screen, 1 [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_277" class="wp-caption alignright" style="width: 160px"><a href="http://syntacticsugar.nl/wp-content/uploads/2009/11/nokia-n900-3.jpg"><img class="size-thumbnail wp-image-277" title="Nokia N900" src="http://syntacticsugar.nl/wp-content/uploads/2009/11/nokia-n900-3-150x150.jpg" alt="Nokia N900" width="150" height="150" /></a><p class="wp-caption-text">Nokia N900</p></div>
<p>After almost 3 years of Nokia E90 usage I  ordered a Nokia N900. Imho it&#8217;s the only phone/MID worthy of replacing my E90.  Ok; it&#8217;s bulky, heavy (the E90 is a brick too)  and the OS is probably a bit rough around the edges, but it runs Linux (maemo), has a 800&#215;480 px screen, 1 gb of RAM (of which 768 mb is swap) and a whopping 32 gb storage.  I will miss Route66 though, not sure if Nokia Maps is capable of keeping me on track&#8230;</p>
<p>Can&#8217;t wait to get root on my phone <img src='http://syntacticsugar.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://syntacticsugar.nl/2009/11/12/ordered-the-n900/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cordless Trackman Marble FX on Ubuntu Jaunty</title>
		<link>http://syntacticsugar.nl/2009/06/28/cordless-trackman-marble-fx-on-ubuntu-jaunty/</link>
		<comments>http://syntacticsugar.nl/2009/06/28/cordless-trackman-marble-fx-on-ubuntu-jaunty/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 09:45:00 +0000</pubDate>
		<dc:creator>buTTon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Cordless]]></category>
		<category><![CDATA[HAL]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Marble]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[Trackman Marble FX]]></category>
		<category><![CDATA[Ubuntu 9.04]]></category>
		<category><![CDATA[xorg.conf]]></category>

		<guid isPermaLink="false">http://syntacticsugar.nl/?p=232</guid>
		<description><![CDATA[My all-time-favorite mouse trackball is the Logitech Trackman Marble FX (Cordless).  Logitech stopped making those a couple of years ago, but I&#8217;ve bought 5 of them and since the first one still works fine I&#8217;ll probably be using this model until USB is replaced with a new kind of port;)
The Trackman FX has 4 buttons [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_233" class="wp-caption alignright" style="width: 160px"><a href="http://syntacticsugar.nl/wp-content/uploads/2009/06/74538_fx_marble_mouse.col.jpg"><img class="size-thumbnail wp-image-233" title="74538_fx_marble_mouse.col" src="http://syntacticsugar.nl/wp-content/uploads/2009/06/74538_fx_marble_mouse.col-150x150.jpg" alt="Trackman Marble FX Cordless" width="150" height="150" /></a><p class="wp-caption-text">Trackman Marble FX Cordless</p></div>
<p>My all-time-favorite <span style="text-decoration: line-through;">mouse</span> trackball is the Logitech Trackman Marble FX (Cordless).  Logitech stopped making those a couple of years ago, but I&#8217;ve bought 5 of them and since the first one still works fine I&#8217;ll probably be using this model until USB is replaced with a new kind of port;)</p>
<p>The Trackman FX has 4 buttons and no dedicated scrollwheel. Before Ubuntu Jaunty (9.04) I was able to configure the buttons from /etc/X11/xorg.conf, but I upgraded from Ubuntu Hedgy (8.04) to Ubuntu Intrepid (8.10) all the way to Ubuntu Jaunty (9.04) and Ubuntu dropped the mouse-configuration from xorg.conf in favour of the HAL-device-manager.</p>
<p><span id="more-232"></span><br />
My xorg.conf setup for the Trackman FX looked like this:</p>
<pre><code>Section "InputDevice"
	Identifier "TFX"
	Driver "mouse"
	Option "CorePointer"
	Option "Device" "/dev/input/mice"
	Option "Name" "TrackMan Marble FX"
	Option "Vendor" "Logitech"
	Option "Protocol" "ExplorerPS/2"
	Option "Buttons" "9"
	Option "Emulate3Buttons" "true"
	Option "EmulateWheel" "1"
	Option "EmulateWheelButton" "8"
	Option "YAxisMapping" "4 5"
	Option "XAxisMapping"   "6 7"
EndSection</code></pre>
<p>Using this configuration the upper-left button was assigned as scroll-switch; if I&#8217;d keep the button pressed and use the trackball I could scroll.  The left-middle button was used as &#8220;normal&#8221; left-mouse-button, and the lower-left button used as back-button for Firefox and Nautilus.<br />
However; xorg.conf configuration didn&#8217;t work anymore in Jaunty; HAL took over, but how to configure the Trackman FX from HAL? After several searches in Google I came across <a href="https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/313148" target="_blank">this</a> bugreport in Launchpad. According to the posts I&#8217;d had to create the file /etc/hal/fdi/policy/mouse-wheel.fdi and enter the following :</p>
<pre><code>&lt;deviceinfo version="0.2"&gt;
        &lt;device&gt;
                &lt;match key="info.product" string="Logitech USB Receiver"&gt;
                        &lt;merge key="input.x11_options.Buttons" type="string"&gt;9&lt;/merge&gt;
                        &lt;merge key="input.x11_options.EmulateWheel" type="string"&gt;true&lt;/merge&gt;
                        &lt;merge key="input.x11_options.EmulateWheelTimeout" type="string"&gt;300&lt;/merge&gt;
                        <!--<merge key="input.x11_options.ButtonMapping" type="string">1 8 3 4 5 6 7 2 9</merge>-->
                        &lt;merge key="input.x11_options.EmulateWheelButton" type="string"&gt;8&lt;/merge&gt;
                        &lt;merge key="input.x11_options.XAxisMapping" type="string"&gt;6 7&lt;/merge&gt;
                        &lt;merge key="input.x11_options.YAxisMapping" type="string"&gt;4 5&lt;/merge&gt;
                        <!--<merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>-->
                        &lt;merge key="input.x11_options.Emulate3Buttons" type="string"&gt;true&lt;/merge&gt;
                &lt;/match&gt;
        &lt;/device&gt;
&lt;/deviceinfo&gt;</code></pre>
<p>After a reboot (which isn&#8217;t neccesary; unplugging it and plug it in again is enough) the Trackman didn&#8217;t do what I wanted it to do.  After some digging I suddenly realized the Trackman I used was cordless, and the model in mouse-wheel.fdi was defined as <em>Logitech USB Trackball</em>, the wired model.  It seemed HAL didn&#8217;t match the info.product-string with the cordless Trackman, so I needed to find out what would match my Trackman.  This was quite easy; from a terminal type:</p>
<pre>sudo hal-device|less</pre>
<p>You&#8217;ll get a list of all devices in HAL,  press slash (/) and enter <em>Logitech</em> to search for any device from Logitech and you&#8217;ll run into <em>&#8220;info.product = &#8216;Logitech USB Receiver&#8217;  (string)&#8221;</em>. The Cordless Trackman FX apparently had the product-id : &#8220;Logitech USB Receiver&#8221;, so I changed the line <em>match key=&#8221;info.product&#8221;</em> in  mouse-wheel.fdi to this product-id. Unplugged the Trackman, plugged it in again and hurray!!! Scrolling worked!</p>
<p>If you have a Trackman Marble FX Cordless, all you have to do is create /etc/hal/fdi/policy/mouse-wheel.fdi and enter/copy-paste:</p>
<pre><code>&lt;deviceinfo version="0.2"&gt;
        &lt;device&gt;
                &lt;match key="info.product" string="Logitech USB Receiver"&gt;
                        &lt;merge key="input.x11_options.Buttons" type="string"&gt;9&lt;/merge&gt;
                        &lt;merge key="input.x11_options.EmulateWheel" type="string"&gt;true&lt;/merge&gt;
                        &lt;merge key="input.x11_options.EmulateWheelTimeout" type="string"&gt;300&lt;/merge&gt;
                        &lt;merge key="input.x11_options.ButtonMapping" type="string"&gt;1 8 3 4 5 6 7 2 9&lt;/merge&gt;
                        &lt;merge key="input.x11_options.EmulateWheelButton" type="string"&gt;8&lt;/merge&gt;
                        &lt;merge key="input.x11_options.XAxisMapping" type="string"&gt;6 7&lt;/merge&gt;
                        &lt;merge key="input.x11_options.YAxisMapping" type="string"&gt;4 5&lt;/merge&gt;
                        <!--<merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>-->
                        &lt;merge key="input.x11_options.Emulate3Buttons" type="string"&gt;true&lt;/merge&gt;
                &lt;/match&gt;
        &lt;/device&gt;
&lt;/deviceinfo&gt;</code></pre>
<p>Unplug the Trackman (or the Receiver), plug it in again and you should be ready!</p>
<p><em>Small update:</em><br />
The outer left button didn&#8217;t act as third-mouse-button, as I was used to. Using the method above it will be used as back-button. If you&#8217;d like it to be used as third-mouse-button, remove the line :</p>
<pre>
<code>&lt;merge key="input.x11_options.ButtonMapping" type="string"&gt;1 8 3 4 5 6 7 2 9&lt;/merge&gt;</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://syntacticsugar.nl/2009/06/28/cordless-trackman-marble-fx-on-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Ubuntu Firefox, Moonlight and Microsoft Codecs Pack</title>
		<link>http://syntacticsugar.nl/2009/06/19/ubuntu-firefox-moonlight-and-microsoft-codecs-pack/</link>
		<comments>http://syntacticsugar.nl/2009/06/19/ubuntu-firefox-moonlight-and-microsoft-codecs-pack/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 17:17:08 +0000</pubDate>
		<dc:creator>buTTon</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[firefox 3]]></category>
		<category><![CDATA[microsoft codecs]]></category>
		<category><![CDATA[moonlight]]></category>
		<category><![CDATA[permission denied]]></category>

		<guid isPermaLink="false">http://syntacticsugar.nl/?p=192</guid>
		<description><![CDATA[I have Ubuntu 8.04 running on my laptop, and with Wimbledon coming up I wanted to install Moonlight , the Linux alternative to Silverlight, since Net5 (the dutch channel airing Wimbledon) only uses Silverlight  (annoying!!!)
Installing Moonlight was quite easy, just go to http://www.go-mono.com/moonlight/, click on the image under &#8220;2. Download the plugin&#8221; and Firefox will [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://syntacticsugar.nl/wp-content/uploads/2009/06/moonlight_logo.png"><img class="alignright size-full wp-image-194" title="moonlight_logo" src="http://syntacticsugar.nl/wp-content/uploads/2009/06/moonlight_logo.png" alt="moonlight_logo" width="100" height="125" /></a>I have Ubuntu 8.04 running on my laptop, and with Wimbledon coming up I wanted to install <a href="http://www.go-mono.com/moonlight/" target="_blank">Moonlight </a>, the Linux alternative to Silverlight, since Net5 (the dutch channel airing Wimbledon) only uses Silverlight  (annoying!!!)</p>
<p>Installing Moonlight was quite easy, just go to <a href="http://www.go-mono.com/moonlight/" target="_blank">http://www.go-mono.com/moonlight/</a>, click on the image under <em>&#8220;2. Download the plugin&#8221;</em> and Firefox will ask if it may install the Moonlight Add-on. But; Moonlight by itself is quite useless without the copyrighted audio &amp; video codecs from Microsoft. Novell (moonlight&#8217;s daddy) can&#8217;t distribute those codecs in Moonlight itself and you need to install them after Moonlight has been installed. This is supposed to be easy, go to the Moonlight-website, rightclick on the notice at the top saying &#8220;Congratulations!! You&#8217;re running the current release of Moonlight&#8221; and select &#8220;install microsoft codecs&#8221;. You&#8217;ll need to accept that you&#8217;re willing to sell your soul to Microsoft .. eh.. the EULA and the codecs will be downloaded and installed.<br />
However, after the download I got the message &#8220;<em>Permission Denied</em>&#8220;. Obviously some directory was off limits for me, but I didn&#8217;t know which directory. So I tried to install Moonlight and the codecs as root,  <em>gksudo firefox</em>, which went fine. Next I started looking for files, where did Moonlight leave the codecs? In /usr/lib? /usr/share/firefox? I found it in the home-directory of root; /root/.mozilla/plugins/moonlight/silverlight-media-pack-linux-x86-5-1.so.  Next stop; copy the .so-file to my own home-directory, but wtf? No directory /home/[me]/.mozilla/plugins? So.. i created the directory, and while I was at it, also created /home/[me]/.mozilla/plugins/moonlight, chmodded it to allow writing by me and tried to install the codecs;  Success!!! And they actually work; the codecs:)</p>
<p><span id="more-192"></span><br />
So.. all you need to do to get Moonlight with Microsoft Codecs Pack installed, step by step</p>
<ol>
<li>Go to <a href="http://www.go-mono.com/moonlight/">http://www.go-mono.com/moonlight/</a> and click on the image under &#8220;2. Download the plugin&#8221; (see <a href="http://www.go-mono.com/moonlight/#instructions" target="_blank">here</a> for moonlight installation instructions )</li>
<li>You&#8217;ll be asked to restart firefox, don&#8217;t.. Bookmark this page and open up a terminal.</li>
<li>In the terminal; type:<br />
<em>mkdir ~/.mozilla/plugins</em> [enter]<br />
and<br />
<em>mkdir ~/.mozilla/plugins</em>/<em>moonlight</em> [enter]<br />
and<br />
<em>chmod +w ~/.mozilla/plugins/moonlight</em></li>
<li>Restart firefox</li>
<li>Go to the Moonlight website again, and if Moonlight was installed successfully you&#8217;ll see<em> &#8220;Congratulations!! You&#8217;re running the current release of Moonlight&#8221; </em>somewhere at the top of the page. Right click on that (the normal context menu of firefox will show up, click somewhere on the page to hide it)</li>
<li>Click &#8220;Install Microsoft Codecs&#8221;</li>
<li>A popup will appear with a lengthy EULA, accept it (if applicable) and the download of codecs will start</li>
<li>When finished installation will start as well and you should be done.</li>
<li>Check the moonlight site again to make sure it&#8217;s running OK; if you right click the notification you shouldn&#8217;t see the item &#8220;Install Microsoft Codecs&#8221; anymore</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://syntacticsugar.nl/2009/06/19/ubuntu-firefox-moonlight-and-microsoft-codecs-pack/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
