<?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>Ole Bakstad&#039;s blog &#187; linux</title>
	<atom:link href="http://dibon.net/wordpress/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://dibon.net/wordpress</link>
	<description>About stuff that happens, when it happens, if it happens.</description>
	<lastBuildDate>Mon, 15 Jun 2009 20:08:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Change TAB behavior in Firefox</title>
		<link>http://dibon.net/wordpress/change-tab-behavior-in-firefox/</link>
		<comments>http://dibon.net/wordpress/change-tab-behavior-in-firefox/#comments</comments>
		<pubDate>Sun, 17 May 2009 10:40:39 +0000</pubDate>
		<dc:creator>Ole Bakstad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[behavior]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dibon.net/wordpress/?p=116</guid>
		<description><![CDATA[Before I started using Linux as my default OS I used Mac OS for 5 years. In Mac OS the TAB key behaves different in Firefox than Ubuntu (my preferred distro). When using the TAB key in Mac OS it focuses on input fields only rather than every object (images, links, whatever) in a web [...]]]></description>
			<content:encoded><![CDATA[<p>Before I started using Linux as my default OS I used Mac OS for 5 years. In Mac OS the TAB key behaves different in Firefox than Ubuntu (my preferred distro). When using the TAB key in Mac OS it focuses on input fields only rather than every object (images, links, whatever) in a web page .</p>
<p>Today I finally took the time to find out what the difference between the Firefox in Mac OS and Ubuntu. I opened the about:config and searched for &#8220;tab&#8221;, and what do you know. I found an option called &#8220;accessibility.tabfocus&#8221; which was set to the value &#8220;7&#8243;.</p>
<p>A quick google search brought me to <a href="http://kb.mozillazine.org/Accessibility.tabfocus">this</a> site which tells you everything you want to know about accessibility.tabfocus.</p>
<p>If you want TAB behavior like the one in Mac OS you simply change the value of accessibility.tabfocus to &#8220;1&#8243;, et voilà, it works!</p>
<p>You can combine options. For example you can set the value &#8220;3&#8243; to select any form element on a web page. Read more at <a href="http://kb.mozillazine.org/Accessibility.tabfocus">http://kb.mozillazine.org/Accessibility.tabfocus</a>.</p>
<p><strong>edit:</strong></p>
<p>For those who didn&#8217;t know; you can press Shift+TAB to focus the <em>previous</em> selected element.</p>
]]></content:encoded>
			<wfw:commentRss>http://dibon.net/wordpress/change-tab-behavior-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Spotify URI&#8217;s working with wine</title>
		<link>http://dibon.net/wordpress/get-spotify-uris-working-with-wine/</link>
		<comments>http://dibon.net/wordpress/get-spotify-uris-working-with-wine/#comments</comments>
		<pubDate>Sun, 17 May 2009 09:43:58 +0000</pubDate>
		<dc:creator>Ole Bakstad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[spotify]]></category>
		<category><![CDATA[uri]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://dibon.net/wordpress/?p=114</guid>
		<description><![CDATA[This may be old news, but I didn&#8217;t notice this before today (thanks to Emil for the tip):
You can actually get the Spotify URI&#8217;s to work with wine!
To get this working for Firefox all you have to do is:
Make a runable bash script
echo '#!/bin/sh' &#62; ~/.browser2spotify
echo 'exec wine "C:\Program Files\Spotify\spotify.exe" /uri "$@"' &#62;&#62; ~/.browser2spotify
chmod 755 [...]]]></description>
			<content:encoded><![CDATA[<p>This may be old news, but I didn&#8217;t notice this before today (thanks to Emil for the tip):<br />
You can actually get the Spotify URI&#8217;s to work with wine!</p>
<p>To get this working for <a href="http://getfirefox.com">Firefox</a> all you have to do is:</p>
<p><strong>Make a runable bash script</strong></p>
<p><code>echo '#!/bin/sh' &gt; ~/.browser2spotify<br />
echo 'exec wine "C:\Program Files\Spotify\spotify.exe" /uri "$@"' &gt;&gt; ~/.browser2spotify<br />
chmod 755 ~/.browser2spotify</code></p>
<p><strong>Add settings to Firefox</strong></p>
<p>First open the config window (type about:config in the address field).</p>
<p>You now want to add the following options:</p>
<p><strong>network.protocol-handler.external.spotify = True<br />
</strong><strong>network.protocol-handler.app.spotify = ~/.browser2spotify</strong></p>
<p>The last option may vary depending on where you put your browser2spotify script.</p>
<p>You can find everything in this post at <a href="http://www.spotify.com/en/help/faq/wine/">http://www.spotify.com/en/help/faq/wine/</a>. They also have a howto for <a href="http://opera.com">Opera</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dibon.net/wordpress/get-spotify-uris-working-with-wine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use twitter from the terminal!</title>
		<link>http://dibon.net/wordpress/use-twitter-from-terminal/</link>
		<comments>http://dibon.net/wordpress/use-twitter-from-terminal/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 22:43:12 +0000</pubDate>
		<dc:creator>Ole Bakstad</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://dibon.net/wordpress/?p=77</guid>
		<description><![CDATA[Today I decided that I&#8217;m going to give twitter another try, but the first thing that struck me was how cumbersome it was to actually post a tweet.
The way I did it:

Open your favourite browser
Go to twitter.com
Log in
Write a tweet

I&#8217;m a Linux user and I love the terminal. Wouldn&#8217;t it be better to write tweets [...]]]></description>
			<content:encoded><![CDATA[<p>Today I decided that I&#8217;m going to give <a href="http://twitter.com">twitter</a> another try, but the first thing that struck me was how cumbersome it was to actually post a tweet.</p>
<p>The way I did it:</p>
<ol>
<li>Open your favourite browser</li>
<li>Go to twitter.com</li>
<li>Log in</li>
<li>Write a tweet</li>
</ol>
<p>I&#8217;m a Linux user and I love the terminal. Wouldn&#8217;t it be better to write tweets from the terminal? &#8211; Yes it would!</p>
<p>I have written a quick and dirty python script that enables you to write tweets from the terminal.</p>
<p>You can download the script <a href="http://dibon.net/tweet" target="_blank">here</a>.</p>
<h5>Install guide for Debian:</h5>
<p><strong>Step 1: Download<br />
</strong></p>
<p><code>$ wget http://dibon.net/tweet<br />
$ chmod +x tweet<br />
$ sudo mv tweet /usr/bin/</code></p>
<p><strong>Step 2: Install curl</strong></p>
<p>The script uses curl to send data to twitter, if you don&#8217;t have curl installed you have to install it:</p>
<p><code>$ sudo aptitude install curl</code></p>
<p><strong>Step 3: Make the config</strong></p>
<p>Make a file called &#8220;.tweet&#8221; in your home directory:</p>
<p><code>$ vim .tweet</code></p>
<p>And insert the following:</p>
<p><code>[login]<br />
username = YOURUSERNAME<br />
password = YOURPASSWORD</code></p>
<p>You may want to edit the permissions for the file</p>
<p><code>$ chmod 0700 .tweet</code></p>
<p>That&#8217;s about it. You may have you reopen your terminal window before you can use the tweet command.</p>
<p><strong>Usage:</strong></p>
<p><code>$ tweet "I'm writing a tweet in terminal!"</code></p>
<p>Unfortunately it is necessary to use single or double quotes before and after the message.</p>
]]></content:encoded>
			<wfw:commentRss>http://dibon.net/wordpress/use-twitter-from-terminal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Norwegian mac keyboard layout in Ubuntu</title>
		<link>http://dibon.net/wordpress/norwegian-mac-keyboard-layout-in-ubuntu/</link>
		<comments>http://dibon.net/wordpress/norwegian-mac-keyboard-layout-in-ubuntu/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 13:24:07 +0000</pubDate>
		<dc:creator>Ole Bakstad</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[norsk]]></category>
		<category><![CDATA[norwegian]]></category>

		<guid isPermaLink="false">http://dibon.net/wordpress/?p=38</guid>
		<description><![CDATA[For the last years I&#8217;ve been using Mac OS X, but now I&#8217;m running Ubuntu. Ubuntu has very much functionality build in, but the Norwegian mac keyboard layout isn&#8217;t that great out of the box.
There are three steps required to get the layout partially[NB!] right:

Change 3rd level chooser and switch Alt / Win (cmd) key.
Edit [...]]]></description>
			<content:encoded><![CDATA[<p>For the last years I&#8217;ve been using Mac OS X, but now I&#8217;m running Ubuntu. Ubuntu has very much functionality build in, but the Norwegian mac keyboard layout isn&#8217;t that great out of the box.</p>
<p>There are three steps required to get the layout <em>partially</em><sup>[NB!]</sup> right:</p>
<ol>
<li>Change 3rd level chooser and switch Alt / Win (cmd) key.</li>
<li>Edit the XKB-file to get keys right.</li>
<li>Set the keyboard in  Ubuntu to &#8220;Norway Macintosh&#8221;</li>
</ol>
<h5>Step 1:</h5>
<p>Open the keyboard settings (System -&gt; Preferences -&gt; Keyboard) and click the &#8220;Layouts&#8221; tab. Then click the &#8220;Other options&#8230;&#8221; button.</p>
<p>1.1) Press &#8220;Alt/Win key behavior&#8221; and choose &#8220;Left Alt is swapped with left Win-key&#8221;.<br />
1.2) Press &#8220;Third level choosers&#8221; and select &#8220;Press any of Alt keys to choose 3rd level&#8221; (or &#8220;Press left Alt keys to choose 3rd level&#8221;).</p>
<h5>Step 2:</h5>
<p>This part is a bit more tricky.</p>
<p>Open the terminal and open the folder &#8220;/usr/share/X11/xkb/symbols&#8221;</p>
<p><code>$ cd /usr/share/X11/xkb/symbols</code></p>
<p>The file we are going to edit is named &#8220;no&#8221;, but before we begin lets backup the file!<br />
From now on every command run as root (noted by #).</p>
<p><code># cp no no_backup</code></p>
<p>Now open the &#8220;no&#8221;-file with your favorite editor, I&#8217;m using <a href="http://www.vim.org/">VIM</a>.</p>
<p><code># vim no</code></p>
<p>Scroll down to the part which starts with:</p>
<p><code>// Copied from macintosh_vndr/no<br />
partial alphanumeric_keys<br />
xkb_symbols "mac" {</code></p>
<p>You now need to change the following lines:</p>
<p><code>key &lt;TLDE&gt;  { [      bar,    section, brokenbar, paragraph    ] };<br />
to:<br />
<strong>key &lt;TLDE&gt;  { [      apostrophe, </strong><strong>paragraph, bar, brokenbar ] };</strong></code></p>
<p>And:</p>
<p><code>key &lt;AE04&gt;    { [         4,  currency,       dollar,       dollar ]    };<br />
to:<br />
<strong>key &lt;AE04&gt;    { [         4,   dollar,       currency,       dollar ]    };</strong></code></p>
<p>Then save.</p>
<h5>Step 3:</h5>
<p>The only thing remaining is to select &#8220;Norwegian Macintosh&#8221; as your default keyboard layout.<br />
In System -&gt; Preferences -&gt; Keyboard, press the &#8220;Layouts&#8221;-tab and press the &#8220;+&#8221;-button.</p>
<p>If everything is done right you should have the basic Norwegian mac layout.</p>
<h5>NB!</h5>
<p>This layout is <em>not</em> equivalent to the real Norwegian mac layout. There is a lot of keys that needs mapping to do so. The original layout looks like <a href="http://files.dibon.net/xkb/macos_kb.html">this</a> (keys are pressed from left to right).</p>
<h5>Edit:</h5>
<p>It seems that if you use the newer versions of Apple&#8217;s keyboard you have to change the setup for the TLDE-key and the LSGT-key. I don&#8217;t know why, but it works!</p>
]]></content:encoded>
			<wfw:commentRss>http://dibon.net/wordpress/norwegian-mac-keyboard-layout-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
