<?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>Daniel Smedegaard Buus &#187; KDE</title>
	<atom:link href="http://danielsmedegaardbuus.dk/category/tech-stuff/linux/kde/feed/" rel="self" type="application/rss+xml" />
	<link>http://danielsmedegaardbuus.dk</link>
	<description>Home of the BeatsMeException</description>
	<lastBuildDate>Tue, 20 Mar 2012 23:07:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Fixing the Broken and Mangled Search in Firefox (4) on Linux Mint</title>
		<link>http://danielsmedegaardbuus.dk/2011-04-09/fixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint/</link>
		<comments>http://danielsmedegaardbuus.dk/2011-04-09/fixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 08:48:23 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Off the record]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=836</guid>
		<description><![CDATA[So, while being busy doing other stuff and therefore postponing actually getting rid of this buggy Mint version of Linux Mint 10 KDE (which is basically 100% Kubuntu minus Canonical goodness and instead tons of additional bugs and Mint branding everywhere), I was getting pretty bitchy about the totally fucked up search in my Firefox [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>So, while being busy doing other stuff and therefore postponing actually getting rid of this buggy Mint version of Linux Mint 10 KDE (which is basically 100% Kubuntu minus Canonical goodness and instead tons of additional bugs and Mint branding everywhere), I was getting pretty bitchy about the totally fucked up search in my Firefox 4 installation.</p>
<p>This Mint-branded partner search crap is everywhere and not so easy to get rid of. The actual search bar was easy enough &#8211; manage the search providers, delete Google from the list, then search for new providers with &#8220;google search english&#8221; as keywords. Reinstall, and that part&#8217;s taken care of.</p>
<p>Then there&#8217;s the deal with the &#8220;Mint Enhancement&#8221; add-on crap that can be deleted for everyone by just doing a,</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p836code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8364"><td class="code" id="p836code4"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>firefox-<span style="color: #000000;">4.0</span><span style="color: #000000; font-weight: bold;">/</span>extensions<span style="color: #000000; font-weight: bold;">/</span>mint-search-enhancer<span style="color: #000000; font-weight: bold;">@</span>linuxmint.com</pre></td></tr></table></div>

<p>Easy peasy, but might need to be done again after an update. At least until replacing the OS itself with Kubuntu.</p>
<p>The more tricky part is fixing the address bar type-to-search feature which on Mint 10 KDE results in awful Mint-branded results in what appears to be Thai. Leaves me hungry for veggies, rice, nuts and coconut milk, but not satisfied with my results. The language part is the easy one. It seems the Mint branding fucks up the preferences&#8217; lang setting, which is specified as <em>[chrome://global/locale/intl.properties]</em> &#8211; clearly <strong>supposed</strong> to be an instruction to fetch the system&#8217;s locale and use that, except it obviously doesn&#8217;t work. Go to Preferences &gt; Content &gt; Languages and fix it manually.</p>
<p>Left is the annoying Mint branding itself which apart from being ugly removes all the usual Google search options, modifiers, and Google account links at the top. The problem can&#8217;t be fixed by visiting about:config or anything like that. The problem lies deeper, as a mangled system-wide Firefox search engine XML configuration file. Go to a console and type:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p836code5'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8365"><td class="code" id="p836code5"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>firefox-addons<span style="color: #000000; font-weight: bold;">/</span>searchplugins<span style="color: #000000; font-weight: bold;">/</span>en-US<span style="color: #000000; font-weight: bold;">/</span>google.xml</pre></td></tr></table></div>

<p>Remove everything in it (ctrl+K deletes an entire line) and paste this text in it:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p836code6'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8366"><td class="code" id="p836code6"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;SearchPlugin</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.mozilla.org/2006/browser/search/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ShortName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Google<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ShortName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Google Search<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;InputEncoding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>UTF-8<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/InputEncoding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Image</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;16&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;16&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>data:image/x-icon;base64,R0lGODlhEAAQAPfLAAATVikwdA8SnxUfgAsWpAAilholjxw4jBc7kwAlvQQ2sRMsoBUqqhMzuhY/vxw4tSgmiyM1mSUztiQ6sTE3sQ4qyxMxxRoyxiAuxR1CtBxJsBxasSJuuTFguBte0Rlf2xVc9h9W9xVjzxVr0gdj6BRh4R1o5yBcyiZbyydT1i9b2Ddb1iFY6CJg2Vpor1dzvEJu20Z0yi23QDy1REi2OUy0O1WzOVC4PU+tVUe5Sk2xQU2zRUO4UE21Ula2SmKEqWWF2HyPx2+a6X6e6Xqk1m+s78sUDs4UGdEQB9YfDdwaANEfHd0YEscjAM4mAM0qANIoD9IkGdslGswuItYgL4aP0ImP2YGZ36Opzaq2wq/S+rzX/7/e8MrS1MLO/sTb48rT8snX/83c89PZ+crq+cH1/9Dl/9Ln/93r/9fy/+Hf7P/42eDm/O7u/+T29uX2/eT2/+f4/+f5/+j/9u//8+3/9u7/9ur5/+j//+n//+v//u3//+7//e7//+////b66/T/6vX/6/f/7f/07fj/4fv/4Pj/5v/45v7/4/r+7/3/6fDw+Pfx//D/9/X/8fT/8/f/8ff/8/D///H///L8/fL///P///X7//b6/ff/+/T///b9//f///v19//w9v/09P/29v/x+f/y///z///1+v/1///2///3//j79P/58/z/8/z99/z/9v7/9P7/9vn7//v6//j9//n9//j///n///v//vv////4+v/5+//6+P/4///6/P/6/v/6///7///9+P/8+v/9+v7/+Pz////8/f/9/f79///8///9//7//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAMsALAAAAAAQABAAAAj/AEn4oIFjBw8bOnrMuJGjhowZM1T8UdYJUZ5ZcNRYWjSrVK5QU0DMmtUnzRAXEy4o6FCEy6NDTkQIq1MmRgM0eZTlCXMgQJtRSE4gmgUkwh1EiZTNUiamy6NUUExcuoJgDCdDjQg9KgVL2SNFT1hwEvKglLBWuixZ+jSrlSBdRlL04bBBkTBdpZTpIqWsFaBcTEr0QaEhl6dWlswKW6poDRUPlmAUQKWMkTJLc76QMQNGUZMWgIgkCFJnlq5WXigwkFClVZQQyuRgELAlk7JBymCZGYAF0ZEPrQixgUDAihxVdPpoAZAFUZIRfThxgvPCwAILDipk+OFG2ZIVoxApERtPfvwlvZ+kQFzPvv0MJQEBADs=<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Image<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Url</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;application/x-suggestions+json&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;GET&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;http://suggestqueries.google.com/complete/search?output=firefox&amp;amp;client=firefox&amp;amp;qu={searchTerms}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Url</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/html&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;GET&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;http://www.google.com/search&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;hl&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;en&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;q&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;{searchTerms}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/SearchPlugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>If you prefer search results in your native language, you would want to not include the <strong>&lt;Param name=&#8221;hl&#8221; value=&#8221;en&#8221;/&gt;</strong> line which tells Google that, &#8220;Yes, I know I&#8217;m currently in Denmark, but I still want to see search results in English, please!&#8221;</p>
<p>Once again, an update might want to mess with this file. Keep a link to this post just in case <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Restart Firefox and enjoy not being kicked in the teeth by Mint any longer.</p>
<div class="shr-publisher-836"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-04-09%2Ffixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint%2F' data-shr_title='Fixing+the+Broken+and+Mangled+Search+in+Firefox+%284%29+on+Linux+Mint'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-04-09%2Ffixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-04-09%2Ffixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint%2F' data-shr_title='Fixing+the+Broken+and+Mangled+Search+in+Firefox+%284%29+on+Linux+Mint'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2011-04-09/fixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint/&via=danielbuus&text=Fixing the Broken and Mangled Search in Firefox (4) on Linux Mint&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2011-04-09/fixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint/&via=danielbuus&text=Fixing the Broken and Mangled Search in Firefox (4) on Linux Mint&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://danielsmedegaardbuus.dk/2011-04-09/fixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fixing Rubber Stamp and Clone Tools in Photoshop Under WINE</title>
		<link>http://danielsmedegaardbuus.dk/2010-12-19/fixing-rubber-stamp-and-clone-tools-in-photoshop-under-wine/</link>
		<comments>http://danielsmedegaardbuus.dk/2010-12-19/fixing-rubber-stamp-and-clone-tools-in-photoshop-under-wine/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 14:23:54 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=753</guid>
		<description><![CDATA[Annoying as hell. The default behavior in Linux when holding down Alt and clicking a window is to start a drag movement. This conflicts with certain tools in Photoshop when running under WINE. Quick fix is to change the movement combo key that Linux acts on for moving windows from Alt to the Win, or [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Annoying as hell. The default behavior in Linux when holding down Alt and clicking a window is to start a drag movement. This conflicts with certain tools in Photoshop when running under WINE.</p>
<p>Quick fix is to change the movement combo key that Linux acts on for moving windows from Alt to the Win, or Meta, key.</p>
<p>In KDE: System Settings > Window Behavior > Window Behavior > Window Actions > Modifier key dropdown.</p>
<div class="shr-publisher-753"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-12-19%2Ffixing-rubber-stamp-and-clone-tools-in-photoshop-under-wine%2F' data-shr_title='Fixing+Rubber+Stamp+and+Clone+Tools+in+Photoshop+Under+WINE'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-12-19%2Ffixing-rubber-stamp-and-clone-tools-in-photoshop-under-wine%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-12-19%2Ffixing-rubber-stamp-and-clone-tools-in-photoshop-under-wine%2F' data-shr_title='Fixing+Rubber+Stamp+and+Clone+Tools+in+Photoshop+Under+WINE'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2010-12-19/fixing-rubber-stamp-and-clone-tools-in-photoshop-under-wine/&via=danielbuus&text=Fixing Rubber Stamp and Clone Tools in Photoshop Under WINE&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2010-12-19/fixing-rubber-stamp-and-clone-tools-in-photoshop-under-wine/&via=danielbuus&text=Fixing Rubber Stamp and Clone Tools in Photoshop Under WINE&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://danielsmedegaardbuus.dk/2010-12-19/fixing-rubber-stamp-and-clone-tools-in-photoshop-under-wine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Missing Network Management in Kubuntu</title>
		<link>http://danielsmedegaardbuus.dk/2010-10-10/fixing-missing-network-management-in-kubuntu/</link>
		<comments>http://danielsmedegaardbuus.dk/2010-10-10/fixing-missing-network-management-in-kubuntu/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 13:18:05 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=700</guid>
		<description><![CDATA[This thing was driving me crazy. I actually thought I had broken my laptop. Thing is, my laptop had been asleep, and going to bed, I thought I&#8217;d just check my mail and stuff before turning in, so I grabbed my lappie and took it with me under the covers. Opening it and pressing space [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This thing was driving me crazy. I actually thought I had broken my laptop. Thing is, my laptop had been asleep, and going to bed, I thought I&#8217;d just check my mail and stuff before turning in, so I grabbed my lappie and took it with me under the covers.</p>
<p>Opening it and pressing space to wake it, I somehow managed to bang it pretty hard with my knee at the same time. The laptop didn&#8217;t wake up, but rather ended in some kind of limbo state between sleeping and waking up. I waited for abit to see if it was just the harddrive safe-locking due to the bump, but it never came back up, and I couldn&#8217;t go to a regular TTY either.</p>
<p>I ended up having to hard-reboot it, but when it entered KDE, there was no network anymore. Knetworkmanager just said, when hovered, &#8220;Network management disabled&#8221;, and clicking it, I just got a small context-like menu with &#8220;Unmanaged&#8221; written in it. Opening a konsole window, and doing ifconfig showed no eth0 device nor any wlan0 device.</p>
<p>This got me abit nervous, because I hadn&#8217;t done any updates or configuration either, so there was no reason to think that this was a configuration issue. I started worrying if the bump had either dislodged some wire or my cards from their socket(s) so that I no longer had physical access to the cards. Doing an lspci did however show both my wired and wireless cards present.</p>
<p>Puzzled, I tried modprobing pretty much any module that seemed to fit, but to no avail. I then tried booting up a live cd, and lo and behold, both cards where there and network connectivity was doing fine.</p>
<p>I then scoured Google, tried dumping the udev fixed &#8220;routes&#8221; for the cards which just resulted in them reappearing just as before, but still nothing in ifconfig, and still nothing in knetworkmanager. I eventually figured out what had happened, after reading a suggestion from someone that the network manager had been left in some garbled state preventing it from coming back up. The suggested fix was to</p>
<pre>rm /var/lib/NetworkManager/NetworkManager.state</pre>
<p>and reboot.</p>
<p>This didn&#8217;t help, but reading on, it seemed that the way the network manager handles the computer being suspended, is to enter exactly such a state where the network management daemon is suspended, and then eventually resumed and returned to active once the computer is resumed again. Seeing as how my laptop never resumed after being suspended, this pretty much fit the bill.</p>
<p>The trick is to send a wake command to the network manager daemon:</p>
<pre>dbus-send --system --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.wake</pre>
<p>It&#8217;s not very cool that not waking from sleep results in this bug, and I don&#8217;t understand the logic behind keeping this state over a reboot in the first place. Being suspended and never coming back up is hardly something that happens very rarely (think battery running out).</p>
<p>But good to know what the deal is, so that it can be fixed accordingly <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-700"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-10-10%2Ffixing-missing-network-management-in-kubuntu%2F' data-shr_title='Fixing+Missing+Network+Management+in+Kubuntu'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-10-10%2Ffixing-missing-network-management-in-kubuntu%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-10-10%2Ffixing-missing-network-management-in-kubuntu%2F' data-shr_title='Fixing+Missing+Network+Management+in+Kubuntu'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2010-10-10/fixing-missing-network-management-in-kubuntu/&via=danielbuus&text=Fixing Missing Network Management in Kubuntu&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2010-10-10/fixing-missing-network-management-in-kubuntu/&via=danielbuus&text=Fixing Missing Network Management in Kubuntu&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://danielsmedegaardbuus.dk/2010-10-10/fixing-missing-network-management-in-kubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kubuntu Still not Playing Nice with Fakeraids at 10.10</title>
		<link>http://danielsmedegaardbuus.dk/2010-10-01/kubuntu-still-not-playing-nice-with-fakeraids-at-10-10/</link>
		<comments>http://danielsmedegaardbuus.dk/2010-10-01/kubuntu-still-not-playing-nice-with-fakeraids-at-10-10/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 04:50:54 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=691</guid>
		<description><![CDATA[I was shocked tonight to find that the Ubiquity installer in Ubuntu is still unable to properly install to fakeraid software RAID setups, such as my own Intel ICH10-based rig. Not that the alternate CDs do any better, they just completely fail to see the array. I wanted to install Linux on my second desktop [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I was shocked tonight to find that the Ubiquity installer in Ubuntu is still unable to properly install to fakeraid software RAID setups, such as my own Intel ICH10-based rig. Not that the alternate CDs do any better, they just completely fail to see the array.</p>
<p>I wanted to install Linux on my second desktop computer, and I&#8217;ve been pretty happy about Linux Mint, so at first I thought about dropping that one on it. Earlier this month I re-installed my server/HTPC box, and opted for Mint, as here, too, Ubuntu wouldn&#8217;t install properly. Which I find rather weird, considering the fact that Mint is pretty much Ubuntu with sugar on top.</p>
<p>But then I started thinking that it had been awhile since the Lynx appeared, and that it was about time for a new release, the Maverick one, scheduled for the 10th this month. So I found the beta 2 of Kubuntu Lynx and popped it in. Wouldn&#8217;t boot to the desktop, just restarted the machine. Found a daily build instead and tried with that. Same thing. Frustrated, I went about other business.</p>
<p>This night I thought I might try installing again, using 10.04 as base and doing a distribution upgrade to 10.10 beta afterwards. The 10.04 live CD manages to boot properly, and it does detect my ICH10R array, though I&#8217;ve not had any success in the past actually getting it to install to it properly. I thought maybe if I&#8217;d succeed in doing the upgrade inside the live environment, and then install afterwards, I might get 10.10 installed from the get-go. Maybe this is just a wholly retarded idea in the first place, but in any case, the upgrade process would hang shortly after having downloaded half a gig of packages, and so it was a failed attempt.</p>
<p>I decided instead to give 10.04 yet another try at installing on my fakeraid. The first issue you&#8217;re facing here, is that Ubiquity crashes when it tries to format your partitions. It&#8217;s quite sad, and amazing to see that even after having updated the packages first (which would include Ubiquity), six months since the release this issue has not been fixed. Of course, if you know your way around the console, you can quickly format your partitions yourself, but you can&#8217;t tell Ubiquity not to mkswap your swap partition, so it&#8217;ll still crash unless you choose to have no swap partition.</p>
<p>After doing that, you do get to see your drives being filled with Linux goodness, but sadly, the installer will still crash in the end, being unable to install grub on /dev/sda. Three things wrong here: First, it shouldn&#8217;t go on /dev/sda, it should go on the raid array, /dev/mapper/isw_something. Second, the default in Ubiquity is /dev/sda, even though there is not /dev/sda targeted, and this default is hidden under the &#8220;Advanced options&#8221; button just before starting the installation. Third, I had pressed this button and explicitly selected my raid device instead, but apparently that had been ignored. Sigh.</p>
<p>So, faced with failure once more, I then went looking for 10.10 progress again, and lo and behold, the release candidate was ready for download. Burned it, and booted it. The all too familiar reboot. Damn! I thought maybe if I could just get it to boot in some kind of safemode, I&#8217;d be set for an install which might prove more stable than this. I F6&#8242;ed at the boot splash and disabled acpi, apic, and lapic, and was finally able to boot the darn thing. As it turns out, it seems there&#8217;s <a href="http://www.spinics.net/lists/linux-acpi/msg30113.html">a regression in the 2.6.35-rc3 kernel concerning ACPI</a>, so hopefully this will be fixed soon.</p>
<p>One thing that was immediately apparent in the 10.10 live installer, is that it has another issue that 10.04 had also. The network isn&#8217;t brought up automatically. I have to sudo dhclient eth0 it up myself. Anyway, again I have a Ubiquity that recognizes my array. This time, however, it didn&#8217;t crash when formatting. And the placement of the boot loader is no longer hidden under advanced settings, though it still wrongfully suggests installing it on sda rather than the array. And what do you know? It actually manages to install grub!</p>
<p>I actually got all cheerful for a moment there, until I actually rebooted the thing. Sure, I got a GRUB menu, but first of all: where&#8217;s the entry for Windows in that list? Gone. Second of all: once you boot, you&#8217;ll just get a blinking cursor for awhile until it barfs with an &#8220;ALERT! /dev/mapper/isw_something does not exist&#8221; greeting.</p>
<p>Thanks. So apparently it takes six months to get halfway there. To where we get a boot loader and a grub menu. Next up, in 11.04 must be that Ubiquity actually manages to update initramfs with the proper modules, so that we can actually boot the damn thing. For any of you wondering what to do next, you simply have open up a console when the installer finishes and before rebooting, and do the obligatory:</p>
<p>sudo chroot /target<br />
sudo echo dm-raid4-5 &gt;&gt; /etc/initramfs-tools/modules<br />
sudo echo dm-raid4-5 &gt;&gt; /etc/modules<br />
sudo update-initramfs -u</p>
<p>That&#8217;s all there is to it. I cannot believe we&#8217;re at this state, 9 days before release. Scratch that, I actually can, because I felt the exact same way just before 10.04 was to be released. I mean, even the kernel is a release candidate, and it will panic on certain ACPI setups. Version 10.10 on the 10th. No way in hell that date is going to be changed, and then we have RTM and pressed copies of the installation CDs with these showstopping bugs.</p>
<p>I&#8217;m all for cutting-edge software, but seriously, I think the Mint guys are on to something good with their new Debian rolling upgrades project. These fixed releases haven&#8217;t been good for awhile, and even if KDE4 has been progressively stabilizing, there&#8217;s still way too much beta tester feeling going on here. All feature development should be halted until the major bugs have been ironed out. Just for the sake of it, consider apps like Amarok and Kontact which are pretty much too buggy to use. And in Kontact&#8217;s case, even dangerous to use. I mean, bugs that cause IMAP mail to be re-dated to [NOW] when managed, or contact books to be deleted when clicking Cancel in a properties sheet? Those are okay on nightly developer builds, but not in production software that is at the same time receiving feature updates.</p>
<div class="shr-publisher-691"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-10-01%2Fkubuntu-still-not-playing-nice-with-fakeraids-at-10-10%2F' data-shr_title='Kubuntu+Still+not+Playing+Nice+with+Fakeraids+at+10.10'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-10-01%2Fkubuntu-still-not-playing-nice-with-fakeraids-at-10-10%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-10-01%2Fkubuntu-still-not-playing-nice-with-fakeraids-at-10-10%2F' data-shr_title='Kubuntu+Still+not+Playing+Nice+with+Fakeraids+at+10.10'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2010-10-01/kubuntu-still-not-playing-nice-with-fakeraids-at-10-10/&via=danielbuus&text=Kubuntu Still not Playing Nice with Fakeraids at 10.10&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2010-10-01/kubuntu-still-not-playing-nice-with-fakeraids-at-10-10/&via=danielbuus&text=Kubuntu Still not Playing Nice with Fakeraids at 10.10&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://danielsmedegaardbuus.dk/2010-10-01/kubuntu-still-not-playing-nice-with-fakeraids-at-10-10/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>NumLock On After KDE 4 Startup</title>
		<link>http://danielsmedegaardbuus.dk/2010-02-20/numlock-on-after-kde-4-startup/</link>
		<comments>http://danielsmedegaardbuus.dk/2010-02-20/numlock-on-after-kde-4-startup/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 11:29:04 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://www.danielsmedegaardbuus.dk/?p=494</guid>
		<description><![CDATA[Weird that this isn&#8217;t a standard configuration setting, and very weird that you need to install extra software to enable you to do this. Anyway, here&#8217;s how: ?View Code BASHsudo apt-get install numlockx or &#8220;emerge&#8221; or &#8220;urpmi&#8221; or &#8220;yum-yum&#8221; or whatever&#8217;s your flavor Then, in system settings, go to Autostart, click Add Script, and in [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Weird that this isn&#8217;t a standard configuration setting, and very weird that you need to install extra software to enable you to do this. Anyway, here&#8217;s how:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p494code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4948"><td class="code" id="p494code8"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> numlockx</pre></td></tr></table></div>

<p>or &#8220;emerge&#8221; or &#8220;urpmi&#8221; or &#8220;yum-yum&#8221; or whatever&#8217;s your flavor <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Then, in system settings, go to Autostart, click Add Script, and in the dialog window type in the path to the numlockx program, probably /usr/bin/numlockx</p>
<p>That&#8217;s it <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  It&#8217;s not a toggle thing, so a subsequent login won&#8217;t turn it off again <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="shr-publisher-494"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-02-20%2Fnumlock-on-after-kde-4-startup%2F' data-shr_title='NumLock+On+After+KDE+4+Startup'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-02-20%2Fnumlock-on-after-kde-4-startup%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-02-20%2Fnumlock-on-after-kde-4-startup%2F' data-shr_title='NumLock+On+After+KDE+4+Startup'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2010-02-20/numlock-on-after-kde-4-startup/&via=danielbuus&text=NumLock On After KDE 4 Startup&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2010-02-20/numlock-on-after-kde-4-startup/&via=danielbuus&text=NumLock On After KDE 4 Startup&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://danielsmedegaardbuus.dk/2010-02-20/numlock-on-after-kde-4-startup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>KDE 4: &#8220;Do Not Allow This Program to Be Grouped&#8221; &#8211; WTF?</title>
		<link>http://danielsmedegaardbuus.dk/2009-03-31/kde-4-do-not-allow-this-program-to-be-grouped-wtf/</link>
		<comments>http://danielsmedegaardbuus.dk/2009-03-31/kde-4-do-not-allow-this-program-to-be-grouped-wtf/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 15:55:19 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://www.danielsmedegaardbuus.dk/?p=280</guid>
		<description><![CDATA[Oh, so you&#8217;ve come here for a solution, have you? A solution to the ever-grouping taskbar items in KDE4? To the fact that seemingly the new plasmoid-based taskbar has no short or long term memory? People ask this question a lot on the net, &#8220;How do I avoid programs grouping on the task bar?&#8221;. And, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Oh, so you&#8217;ve come here for a solution, have you? A solution to the ever-grouping taskbar items in KDE4? To the fact that seemingly the new plasmoid-based taskbar has no short or long term memory?</p>
<p>People ask this question a lot on the net, &#8220;How do I avoid programs grouping on the task bar?&#8221;. And, apparently, they always seem get the answer, &#8220;Right-click the program on the task bar, select &#8216;Do Not Allow This Program to Be Grouped&#8217;&#8221;.</p>
<p>Yeah&#8230; That&#8217;s great&#8230; I mean, it <strong>would</strong> be, if this actually survived a logout. Don&#8217;t you agree?</p>
<p>Well, mate, I&#8217;m sorry, I don&#8217;t have the answer! But if <strong>you</strong> find out, <strong>please</strong> come back here and post what you found! You might think of this post as a sort of reversed tip. I tease you, you bring the solution. Sorry <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But, if you find the answer, you might help someone else, too, so please do so!</p>
<div class="shr-publisher-280"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2009-03-31%2Fkde-4-do-not-allow-this-program-to-be-grouped-wtf%2F' data-shr_title='KDE+4%3A+%22Do+Not+Allow+This+Program+to+Be+Grouped%22+-+WTF%3F'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2009-03-31%2Fkde-4-do-not-allow-this-program-to-be-grouped-wtf%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2009-03-31%2Fkde-4-do-not-allow-this-program-to-be-grouped-wtf%2F' data-shr_title='KDE+4%3A+%22Do+Not+Allow+This+Program+to+Be+Grouped%22+-+WTF%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2009-03-31/kde-4-do-not-allow-this-program-to-be-grouped-wtf/&via=danielbuus&text=KDE 4: "Do Not Allow This Program to Be Grouped" - WTF?&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://danielsmedegaardbuus.dk/2009-03-31/kde-4-do-not-allow-this-program-to-be-grouped-wtf/&via=danielbuus&text=KDE 4: "Do Not Allow This Program to Be Grouped" - WTF?&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://danielsmedegaardbuus.dk/2009-03-31/kde-4-do-not-allow-this-program-to-be-grouped-wtf/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

