<?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; Linux</title>
	<atom:link href="http://danielsmedegaardbuus.dk/category/tech-stuff/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://danielsmedegaardbuus.dk</link>
	<description>Home of the BeatsMeException</description>
	<lastBuildDate>Tue, 11 Oct 2011 20:39:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Get Back /var/log/messages in (K)ubuntu 11.04</title>
		<link>http://danielsmedegaardbuus.dk/2011-06-21/get-back-varlogmessages-in-kubuntu-11-04/</link>
		<comments>http://danielsmedegaardbuus.dk/2011-06-21/get-back-varlogmessages-in-kubuntu-11-04/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 15:57:31 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=914</guid>
		<description><![CDATA[I can&#8217;t claim to understand the reasoning behind getting rid of /var/log/messages in Natty. It&#8217;s the number one place to start looking when something goes wrong, and one of the first places people asking for community help are told to go look and report back in order to debug some situation. Either way, to right [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I can&#8217;t claim to understand the reasoning behind getting rid of /var/log/messages in Natty. It&#8217;s the number one place to start looking when something goes wrong, and one of the first places people asking for community help are told to go look and report back in order to debug some situation. Either way, to right this wrong is definitely very easy, so just fire up a terminal 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('p914code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p9144"><td class="code" id="p914code4"><pre class="bash" style="font-family:monospace;">you<span style="color: #000000; font-weight: bold;">@</span>your-puter:~$ <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>etc<span style="color: #000000; font-weight: bold;">/</span>rsyslog.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">50</span>-default.conf</pre></td></tr></table></div>

<p>In nano, find the commented out lines mentioning &#8220;/var/log/messages&#8221;, and uncomment them.<br />
<em>Tip: Search by pressing <strong>Ctrl+W</strong>, then type in <strong>messages</strong> and press enter.</em></p>
<p>You should be uncommenting four lines, and ending up with this:</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('p914code5'); return false;">View Code</a> NANO</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p9145"><td class="code" id="p914code5"><pre class="nano" style="font-family:monospace;">*.=info;*.=notice;*.=warn;
        auth,authpriv.none;
        cron,daemon.none;
        mail,news.none          -/var/log/messages</pre></td></tr></table></div>

<p>Save it and exit (<strong>Ctrl+O</strong>, <strong>Enter</strong>, <strong>Ctrl+X</strong>), then restart the syslog daemon:</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('p914code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p9146"><td class="code" id="p914code6"><pre class="bash" style="font-family:monospace;">you<span style="color: #000000; font-weight: bold;">@</span>your-puter:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> service rsyslog restart</pre></td></tr></table></div>

<p>That&#8217;s it. /var/log/messages is back <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-914"></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-06-21%2Fget-back-varlogmessages-in-kubuntu-11-04%2F' data-shr_title='Get+Back+%2Fvar%2Flog%2Fmessages+in+%28K%29ubuntu+11.04'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-06-21%2Fget-back-varlogmessages-in-kubuntu-11-04%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-06-21%2Fget-back-varlogmessages-in-kubuntu-11-04%2F' data-shr_title='Get+Back+%2Fvar%2Flog%2Fmessages+in+%28K%29ubuntu+11.04'></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-06-21/get-back-varlogmessages-in-kubuntu-11-04/&via=danielbuus&text=Get Back /var/log/messages in (K)ubuntu 11.04&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-06-21/get-back-varlogmessages-in-kubuntu-11-04/&via=danielbuus&text=Get Back /var/log/messages in (K)ubuntu 11.04&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-06-21/get-back-varlogmessages-in-kubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Users More Generous than their Paying Mac and Windows Counterparts?</title>
		<link>http://danielsmedegaardbuus.dk/2011-04-19/linux-users-more-generous-than-their-paying-mac-and-windows-counterparts/</link>
		<comments>http://danielsmedegaardbuus.dk/2011-04-19/linux-users-more-generous-than-their-paying-mac-and-windows-counterparts/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 05:58:24 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Funny/Weird Things on the Net]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Off the record]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=878</guid>
		<description><![CDATA[So, the Electronic Frontier Foundation wants me to buy the &#8220;Humble Bundle&#8221; &#8211; a pay-what-you-think-is-fair financed bundle of computer games. Not only that, but you get a choice of who to pay, too. I went to the site and started reading &#8211; primary concern being, of course, &#8220;will it run on Linux?&#8221; I scrolled down [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>So, the <a href="https://www.eff.org/">Electronic Frontier Foundation</a> wants me to buy the &#8220;<a href="http://www.humblebundle.com/">Humble Bundle</a>&#8221; &#8211; a pay-what-you-think-is-fair financed bundle of computer games. Not only that, but you get a choice of <strong>who</strong> to pay, too.</p>
<p>I went to the site and started reading &#8211; primary concern being, of course, &#8220;will it run on Linux?&#8221; I scrolled down and a pie chart caught my eye. The statistics for the previous Humble Bundle installment. An event that apparently resulted in the raising of $500,000 to EFF:</p>
<p style="text-align: left;"><img class="size-full wp-image-879" title="humble-bundle-payment-stats" src="http://danielsmedegaardbuus.dk/wp-content/humble-bundle-payment-stats.png" alt="Payment Statistics for the Humble Bundle, Show Linux Users as Being Exceptionally Generous" width="756" height="279" /></p>
<p style="text-align: left;">Now, while Windows as a platform is the largest contributor, per user paying it&#8217;s also the smallest one, as you can see by the average purchase price by platform to the left. Actually, on average, a Linux user has coughed up about <strong>three times the amount a Windows user </strong>has. And about <strong>twice as much as the average Mac user</strong>.</p>
<p style="text-align: left;">Now, why is that? Well, I&#8217;d like to think that we&#8217;re just better people, but that would be stretching it a bit <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Either way, with more than 132,000 purchases it&#8217;s damn hard to dismiss as statistical error. Given that any PC these days is hard to get without Windows pre-installed, it&#8217;s not like we have the extra money left to spend that we didn&#8217;t use on the OS. What do you think?</p>
<div class="shr-publisher-878"></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-19%2Flinux-users-more-generous-than-their-paying-mac-and-windows-counterparts%2F' data-shr_title='Linux+Users+More+Generous+than+their+Paying+Mac+and+Windows+Counterparts%3F'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-04-19%2Flinux-users-more-generous-than-their-paying-mac-and-windows-counterparts%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-04-19%2Flinux-users-more-generous-than-their-paying-mac-and-windows-counterparts%2F' data-shr_title='Linux+Users+More+Generous+than+their+Paying+Mac+and+Windows+Counterparts%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/2011-04-19/linux-users-more-generous-than-their-paying-mac-and-windows-counterparts/&via=danielbuus&text=Linux Users More Generous than their Paying Mac and Windows Counterparts?&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-19/linux-users-more-generous-than-their-paying-mac-and-windows-counterparts/&via=danielbuus&text=Linux Users More Generous than their Paying Mac and Windows Counterparts?&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-19/linux-users-more-generous-than-their-paying-mac-and-windows-counterparts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Google Searches Suck Less with the Help of Firefox (on Ubuntu)</title>
		<link>http://danielsmedegaardbuus.dk/2011-04-13/make-google-searches-suck-less-using-firefox-on-ubuntu/</link>
		<comments>http://danielsmedegaardbuus.dk/2011-04-13/make-google-searches-suck-less-using-firefox-on-ubuntu/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 12:59:23 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=843</guid>
		<description><![CDATA[As Google Search gets smarter, it gets dumber, too. And extremely annoying. Yes, I meant &#8220;mobil&#8221;, not &#8220;mobile&#8221;, that&#8217;s Danish, so please stop rewriting it and forcing me to click and confirm that yes, I did mean &#8220;mobil&#8221;. Are you, too, tired of having Google rewrite your queries? Well, if you take a closer look [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>As Google Search gets smarter, it gets dumber, too. And extremely annoying. Yes, I meant &#8220;mobil&#8221;, not &#8220;mobile&#8221;, that&#8217;s Danish, so please stop rewriting it and forcing me to click and confirm that yes, I <strong><em>did</em></strong> mean &#8220;mobil&#8221;.</p>
<p>Are you, too, tired of having Google rewrite your queries? Well, if you take a closer look at the request querystring that&#8217;s generated when you correct Google&#8217;s &#8220;corrections&#8221;, you&#8217;ll notice a token, &#8220;nfpr&#8221; (or None of those Fucking Pathetic Rewrites, as that acronym must clearly mean) that&#8217;s set to 1, i.e. true.</p>
<p>So, using this, combined with the knowledge gained from <a href="http://danielsmedegaardbuus.dk/2011-04-09/fixing-the-broken-and-mangled-search-in-firefox-4-on-linux-mint/">fixing the broken search accelerator in Linux Mint</a>, we can add this token to our defaults so that Google will revert to its previous, less intrusive, and less retarded behavior &#8211; the simple link &#8220;Did you mean blah blah blah?&#8221; placed just under our search input box.</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('p843code9'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8439"><td class="code" id="p843code9"><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>And add,</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('p843code10'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p84310"><td class="code" id="p843code10"><pre class="xml" style="font-family:monospace;"><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;nfpr&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></td></tr></table></div>

<p>to the list of parameters. Exactly where doesn&#8217;t matter, just anywhere. Ctrl+O to save. Restart Firefox.</p>
<p>Probably there&#8217;s a Windows and Mac OS equivalent file, but you&#8217;re gonna have to find it yourselves <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now if we could only have a token, like poracawmq=1, for &#8220;Please Only Results that Actually Contain All Words from My Query&#8221;, Google Search might just start to be genuinely useful again!</p>
<div class="shr-publisher-843"></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-13%2Fmake-google-searches-suck-less-using-firefox-on-ubuntu%2F' data-shr_title='Make+Google+Searches+Suck+Less+with+the+Help+of+Firefox+%28on+Ubuntu%29'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-04-13%2Fmake-google-searches-suck-less-using-firefox-on-ubuntu%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-04-13%2Fmake-google-searches-suck-less-using-firefox-on-ubuntu%2F' data-shr_title='Make+Google+Searches+Suck+Less+with+the+Help+of+Firefox+%28on+Ubuntu%29'></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-13/make-google-searches-suck-less-using-firefox-on-ubuntu/&via=danielbuus&text=Make Google Searches Suck Less with the Help of Firefox (on Ubuntu)&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-13/make-google-searches-suck-less-using-firefox-on-ubuntu/&via=danielbuus&text=Make Google Searches Suck Less with the Help of Firefox (on Ubuntu)&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-13/make-google-searches-suck-less-using-firefox-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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('p836code14'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p83614"><td class="code" id="p836code14"><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('p836code15'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p83615"><td class="code" id="p836code15"><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('p836code16'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p83616"><td class="code" id="p836code16"><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>Swap Partitions and SSDs: A Beautiful Match</title>
		<link>http://danielsmedegaardbuus.dk/2011-02-15/swap-partitions-and-ssds-a-beautiful-match/</link>
		<comments>http://danielsmedegaardbuus.dk/2011-02-15/swap-partitions-and-ssds-a-beautiful-match/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 15:19:19 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=805</guid>
		<description><![CDATA[Anyone who&#8217;s purchased an SSD will know that what ensues is a string of questions and configuration sessions to ensure that your system on the one hand will benefit the most from this glorious technology, and on the other hand that your system won&#8217;t actively degrade the SSD hardware or bring itself into a performance [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Anyone who&#8217;s purchased an SSD will know that what ensues is a string of questions and configuration sessions to ensure that your system on the one hand will benefit the most from this glorious technology, and on the other hand that your system won&#8217;t actively degrade the SSD hardware or bring itself into a performance depression.</p>
<p>Even with the newer, self-organizing types of drives that ensure at least some basic kind of wear-levelling and block allocation optimization for OSes that do not natively support TRIMming (such as Windows XP or Mac OS), actively issuing TRIM commands to the device is clearly the most efficient way to behave.</p>
<p>This can be difficult in some cases, like for a host system virtualizing disks to guest OSes (neither VMware nor Virtualbox at the moment will translate de-allocation of blocks in virtual disk files to TRIM commands for the hardware). Or, one would think, for swap partitions on Linux.</p>
<p>But not so, it seems! I was kind of assuming there would be no TRIMming of the space on a swap partition, so my first &#8220;logical&#8221; solution was to ditch the partition altogether, and automatically set up and take down a sparse swap file on the root fs on boot/shutdown. As it turns out, this isn&#8217;t supported at all.</p>
<p>I then decided to take a look at the kernel source code for the swap routines in swapfile.c (actually, I grepped it all for &#8216;discard&#8217;, but that sounds less cool <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ), and lo and behold,</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('p805code18'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p80518"><td class="code" id="p805code18"><pre class="c" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
 * swapon tell device that all the old swap contents can be discarded,
 * to allow the swap device to optimize its wear-levelling.
 */</span>
<span style="color: #993333;">static</span> <span style="color: #993333;">int</span> discard_swap<span style="color: #009900;">&#40;</span><span style="color: #993333;">struct</span> swap_info_struct <span style="color: #339933;">*</span>si<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
        <span style="color: #993333;">struct</span> swap_extent <span style="color: #339933;">*</span>se<span style="color: #339933;">;</span>
        sector_t start_block<span style="color: #339933;">;</span>
        sector_t nr_blocks<span style="color: #339933;">;</span>
        <span style="color: #993333;">int</span> err <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #808080; font-style: italic;">/* Do not discard the swap header page! */</span>
        se <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span>si<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>first_swap_extent<span style="color: #339933;">;</span>
        start_block <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>se<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>start_block <span style="color: #339933;">+</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>PAGE_SHIFT <span style="color: #339933;">-</span> <span style="color: #0000dd;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>         nr_blocks <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>sector_t<span style="color: #009900;">&#41;</span>se<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>nr_pages <span style="color: #339933;">-</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>PAGE_SHIFT <span style="color: #339933;">-</span> <span style="color: #0000dd;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>         <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>nr_blocks<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>                 err <span style="color: #339933;">=</span> blkdev_issue_discard<span style="color: #009900;">&#40;</span>si<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>bdev<span style="color: #339933;">,</span> start_block<span style="color: #339933;">,</span>
                                nr_blocks<span style="color: #339933;">,</span> GFP_KERNEL<span style="color: #339933;">,</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span>
                        <span style="color: #b1b100;">return</span> err<span style="color: #339933;">;</span>
                cond_resched<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        list_for_each_entry<span style="color: #009900;">&#40;</span>se<span style="color: #339933;">,</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span>si<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>first_swap_extent.<span style="color: #202020;">list</span><span style="color: #339933;">,</span> list<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                start_block <span style="color: #339933;">=</span> se<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>start_block <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>PAGE_SHIFT <span style="color: #339933;">-</span> <span style="color: #0000dd;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>                 nr_blocks <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>sector_t<span style="color: #009900;">&#41;</span>se<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>nr_pages <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>PAGE_SHIFT <span style="color: #339933;">-</span> <span style="color: #0000dd;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>                 err <span style="color: #339933;">=</span> blkdev_issue_discard<span style="color: #009900;">&#40;</span>si<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>bdev<span style="color: #339933;">,</span> start_block<span style="color: #339933;">,</span>
                                nr_blocks<span style="color: #339933;">,</span> GFP_KERNEL<span style="color: #339933;">,</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span>
                        <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
&nbsp;
                cond_resched<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">return</span> err<span style="color: #339933;">;</span>             <span style="color: #808080; font-style: italic;">/* That will often be -EOPNOTSUPP */</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Discard calls are already being issued when swap space is de-allocated!</p>
<p>Don&#8217;t we all just love Linux? Yes, Daniel. Yes, we do.</p>
<div class="shr-publisher-805"></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-02-15%2Fswap-partitions-and-ssds-a-beautiful-match%2F' data-shr_title='Swap+Partitions+and+SSDs%3A+A+Beautiful+Match'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-02-15%2Fswap-partitions-and-ssds-a-beautiful-match%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-02-15%2Fswap-partitions-and-ssds-a-beautiful-match%2F' data-shr_title='Swap+Partitions+and+SSDs%3A+A+Beautiful+Match'></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-02-15/swap-partitions-and-ssds-a-beautiful-match/&via=danielbuus&text=Swap Partitions and SSDs: A Beautiful Match&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-02-15/swap-partitions-and-ssds-a-beautiful-match/&via=danielbuus&text=Swap Partitions and SSDs: A Beautiful Match&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-02-15/swap-partitions-and-ssds-a-beautiful-match/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XBMC PVR with HTS Tvheadend on Linux with Completely Outdated MSI DigiVox A/D</title>
		<link>http://danielsmedegaardbuus.dk/2011-02-03/xbmc-pvr-with-hts-tvheadend-on-linux-with-completely-outdated-msi-digivox-ad/</link>
		<comments>http://danielsmedegaardbuus.dk/2011-02-03/xbmc-pvr-with-hts-tvheadend-on-linux-with-completely-outdated-msi-digivox-ad/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 23:56:31 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=793</guid>
		<description><![CDATA[This XBMC application. It continues to amaze me. I&#8217;ve just been fortunate enough to get my very very aging MSI DigiVox A/D (no, not II, not III, not Mini, the old one) USB DVB-T adapter to provide beautiful MPEG streams to my very very cutting edge XBMC installation on Kubuntu Maverick. Damn, it was a [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This XBMC application. It continues to amaze me.</p>
<p>I&#8217;ve just been fortunate enough to get my very very aging MSI DigiVox A/D (no, not II, not III, not Mini, the <strong>old</strong> one) USB DVB-T adapter to provide beautiful MPEG streams to my very very cutting edge XBMC installation on Kubuntu Maverick.</p>
<p>Damn, it was a hassle trying to get that MSI bugger behaving. I&#8217;d read tons of howtos for different adapters trying to overcome the fact that the &#8220;sure way&#8221; just didn&#8217;t pan out &#8211; at all. The sure way being just installing the proper packages &#8211; dvb apps and the nonfree firmwares. However, even though /var/log/messages would assure me that the USB stick was recognized (as an em28xx device) and loaded with the proper firmwares, and all the proper adapters appeared under /dev/dvb/adapter0, the sure-to-work kaffeine app would fail to find any channels when scanning. VLC would find none, either.</p>
<p>In fact, I&#8217;d get tons of sys messages about firmwares being loaded and warnings about &#8220;tuning failed!&#8221;. Seemingly nothing was &#8220;wrong&#8221; &#8211; it&#8217;s just that no channels were found. Ever. By any app. Not tvtime. Not me-tv. Not kaffeine. Not VLC. I tried updating to the newest 2.6.38 kernel from Natty, to no avail.</p>
<p><strong>Then</strong>, failing to find any real info on this particular revision of the DigiVox, I started looking more specifically for info on the chip, and the module, em28xx. Which led me to <a href="http://doc.ubuntu-fr.org/terratec_cinergy_xs">this French post</a> about a Pinnacle adapter with the same chip. This page leads to <a href="http://jiemeb.free.fr/pinnacle/">this wonderful person&#8217;s prepackaged debs of drivers</a>, and lo-and-behold, downgrading to kernel 2.6.35-24 and installing the matching driver deb found there, <strong>bam!</strong> one Kaffeine stuffed with DVB services! Sadly, there was no audio on the MPEG-4 services. Same thing with Me TV. VLC still couldn&#8217;t find any channels. Me TV only found MPEG-2 channels.</p>
<p>I wasn&#8217;t too fazed, though, as my experience with XBMC is that everything always Just Works™, so I was counting on it to save the day.</p>
<p>I&#8217;d already installed the PVR-extended XBMC release from <a href="https://launchpad.net/~lars-opdenkamp/+archive/xbmc-pvr">Lars op den Kamp&#8217;s PPA</a>, so now I had to figure out how to get that shizzle to play by my dizzle. Turns out that&#8217;s pretty much a walk in the park &#8211; sudo apt-get install hts-tvheadend, and you&#8217;re pretty much there. That is, after reading <a href="http://forum.xbmc.org/showthread.php?t=91716">this XBMC forum thread on what needs to be set up</a>.</p>
<p>And of course, figuring out how that <a href="http://localhost:9981/extjs.html">http://localhost:9981/</a> interface works. It&#8217;s an amazing piece of software that HTS Tvheadend. Just friggin&#8217; amazing. The key point here is to name your services (or use the auto-naming feature) so that they turn up as channels, and whoosh, they&#8217;re there in XBMC <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  With full audio on all services, of course.</p>
<p>To think that I was almost about to run Winblows on this HTPC to get that aging USB adapter to work. I must&#8217;ve been hemmorhaging from the brain.</p>
<div class="shr-publisher-793"></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-02-03%2Fxbmc-pvr-with-hts-tvheadend-on-linux-with-completely-outdated-msi-digivox-ad%2F' data-shr_title='XBMC+PVR+with+HTS+Tvheadend+on+Linux+with+Completely+Outdated+MSI+DigiVox+A%2FD'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-02-03%2Fxbmc-pvr-with-hts-tvheadend-on-linux-with-completely-outdated-msi-digivox-ad%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-02-03%2Fxbmc-pvr-with-hts-tvheadend-on-linux-with-completely-outdated-msi-digivox-ad%2F' data-shr_title='XBMC+PVR+with+HTS+Tvheadend+on+Linux+with+Completely+Outdated+MSI+DigiVox+A%2FD'></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-02-03/xbmc-pvr-with-hts-tvheadend-on-linux-with-completely-outdated-msi-digivox-ad/&via=danielbuus&text=XBMC PVR with HTS Tvheadend on Linux with Completely Outdated MSI DigiVox A/D&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-02-03/xbmc-pvr-with-hts-tvheadend-on-linux-with-completely-outdated-msi-digivox-ad/&via=danielbuus&text=XBMC PVR with HTS Tvheadend on Linux with Completely Outdated MSI DigiVox A/D&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-02-03/xbmc-pvr-with-hts-tvheadend-on-linux-with-completely-outdated-msi-digivox-ad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Cleartype to Work with WINE and Winetricks</title>
		<link>http://danielsmedegaardbuus.dk/2011-02-01/getting-cleartype-to-work-with-wine-and-winetricks/</link>
		<comments>http://danielsmedegaardbuus.dk/2011-02-01/getting-cleartype-to-work-with-wine-and-winetricks/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 16:40:07 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=783</guid>
		<description><![CDATA[If you&#8217;re anything like me, you&#8217;re probably frustrated that the usual hints and tricks to enable sub-pixel hinting, i.e. &#8220;cleartype&#8221; in Redmond terms, under WINE is usually futile. The problem often is that the default Windows XP font is Tahoma, and this font isn&#8217;t included with WINE. So even if you have enabled cleartype, Tahoma [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you&#8217;re anything like me, you&#8217;re probably frustrated that the usual hints and tricks to enable sub-pixel hinting, i.e. &#8220;cleartype&#8221; in Redmond terms, under WINE is usually futile.</p>
<p>The problem often is that the default Windows XP font is Tahoma, and this font isn&#8217;t included with WINE. So even if you have enabled cleartype, Tahoma will render using some fallback system font without subpixel hinting.</p>
<p>Solution? Just install tahoma. Example, installing uTorrent with winetricks:</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('p783code20'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p78320"><td class="code" id="p783code20"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #007800;">WINEPREFIX</span>=~<span style="color: #000000; font-weight: bold;">/</span>.wine-utorrent winetricks utorrent fontfix fontsmooth-rgb tahoma</pre></td></tr></table></div>

<p>There ya go <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-783"></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-02-01%2Fgetting-cleartype-to-work-with-wine-and-winetricks%2F' data-shr_title='Getting+Cleartype+to+Work+with+WINE+and+Winetricks'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-02-01%2Fgetting-cleartype-to-work-with-wine-and-winetricks%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-02-01%2Fgetting-cleartype-to-work-with-wine-and-winetricks%2F' data-shr_title='Getting+Cleartype+to+Work+with+WINE+and+Winetricks'></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-02-01/getting-cleartype-to-work-with-wine-and-winetricks/&via=danielbuus&text=Getting Cleartype to Work with WINE and Winetricks&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-02-01/getting-cleartype-to-work-with-wine-and-winetricks/&via=danielbuus&text=Getting Cleartype to Work with WINE and Winetricks&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-02-01/getting-cleartype-to-work-with-wine-and-winetricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing GRUB2 Boot Order the Right Way</title>
		<link>http://danielsmedegaardbuus.dk/2011-01-31/changing-grub2-boot-order-the-right-way/</link>
		<comments>http://danielsmedegaardbuus.dk/2011-01-31/changing-grub2-boot-order-the-right-way/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 20:07:11 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=778</guid>
		<description><![CDATA[UPDATE: I may be wrong here, as Peter Nau points out. I&#8217;m tempted to swear that I&#8217;m not and that last I tried a grub update left me with a vanilla /etc/default/grub sans my changes, so I&#8217;m leaving the post as-is, but you may want to just try editing /etc/default/grub before going this route. Thanks [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><em><strong>UPDATE</strong>: I may be wrong here, as <a title="Comments" href="#comments">Peter Nau points out</a>. I&#8217;m tempted to swear that I&#8217;m not and that last I tried a grub update left me with a vanilla /etc/default/grub sans my changes, so I&#8217;m leaving the post as-is, but you may want to just try editing /etc/default/grub before going this route. Thanks Peter!</em></p>
<p>Okay, so there&#8217;s quite a number of posts out there giving advise to edit /etc/default/grub and change GRUB_DEFAULT=0 to whatever index number in the GRUB menu your desired default OS is placed at in order to set the boot order to your desire.</p>
<p>The problem with this approach, is that you can&#8217;t be sure that your desired OS is always at the same index. The default behavior of most Linux distros, like Kubuntu and Ubuntu, when updating your system with a fresh kernel is to add it to the top of the list in the GRUB menu, pushing every other item down by two indices (one entry is added for booting regularly, one for booting in failsafe mode).</p>
<p>So, if you&#8217;ve updated /etc/default/grub to default boot the index of your other OS, be it Solaris, Windows, Mac OS X or something entirely else, you&#8217;re now fresh out of luck, as that index no longer matches what you want.</p>
<p>The answer is to change the order of which <strong>types</strong> of OSes are placed first, moving Linux farther down the list, so that kernel updates won&#8217;t mess with indices above it. The order of the types of things that go into the GRUB menu is determined by the order of the files in /etc/grub.d/.  Try this and see:</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('p778code23'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p77823"><td class="code" id="p778code23"><pre class="bash" style="font-family:monospace;">you<span style="color: #000000; font-weight: bold;">@</span>yourhost:~$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>grub.d<span style="color: #000000; font-weight: bold;">/</span>
total <span style="color: #000000;">52</span>
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">6831</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">10</span>-06 <span style="color: #000000;">14</span>:<span style="color: #000000;">22</span> 00_header
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">1481</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">10</span>-06 <span style="color: #000000;">14</span>:04 05_debian_theme
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">4757</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">10</span>-06 <span style="color: #000000;">14</span>:<span style="color: #000000;">22</span> <span style="color: #000000;">10</span>_linux
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">5028</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">10</span>-06 <span style="color: #000000;">14</span>:<span style="color: #000000;">22</span> <span style="color: #000000;">20</span>_linux_xen
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">1588</span> <span style="color: #000000;">2010</span>-09-<span style="color: #000000;">24</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">16</span> <span style="color: #000000;">20</span>_memtest86+
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">6933</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">10</span>-06 <span style="color: #000000;">14</span>:<span style="color: #000000;">22</span> <span style="color: #000000;">30</span>_os-prober
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">214</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">10</span>-06 <span style="color: #000000;">14</span>:<span style="color: #000000;">22</span> <span style="color: #000000;">40</span>_custom
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root   <span style="color: #000000;">95</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">10</span>-06 <span style="color: #000000;">14</span>:<span style="color: #000000;">22</span> <span style="color: #000000;">41</span>_custom
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">483</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">10</span>-06 <span style="color: #000000;">14</span>:<span style="color: #000000;">22</span> README</pre></td></tr></table></div>

<p>Notice how each item is numbered, first some header setup, then theme setup, then items on the menu: Linux kernels first, Xen hypervisor systems, the memtest entry, and finally the &#8220;probed&#8221; OSes, that is all other OSes that update-grub will recognize are available when it is run. We want these to come <strong>before</strong> the Linux kernels in the list. The solution is simple: rename 30_os-prober so that it appears before 10_linux, but after 05_debian_theme.</p>
<p>Not exactly difficult, let&#8217;s try this:</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('p778code24'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p77824"><td class="code" id="p778code24"><pre class="bash" style="font-family:monospace;">you<span style="color: #000000; font-weight: bold;">@</span>yourhost:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>grub.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">30</span>_os-prober <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>grub.d<span style="color: #000000; font-weight: bold;">/</span>07_os-prober
you<span style="color: #000000; font-weight: bold;">@</span>yourhost:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> update-grub</pre></td></tr></table></div>

<p>That&#8217;s it. Reboot, and your other OS is at the top.</p>
<p>Now, there&#8217;s just one catch. Note how I said, &#8220;your other OS&#8221;, as in singular? Do you have more than one other OS and the first one found by update-grub <strong>isn&#8217;t</strong> the one you&#8217;d like to boot by default?</p>
<p>Then it&#8217;s time to edit /etc/default/grub and change the GRUB_DEFAULT value so that it matches the OS you want. Because you&#8217;ve already shifted the Linux items to the bottom of the GRUB list, your boot loader will still launch the desired OS after a kernel update. The only thing that can throw it off and require you to go back and set up GRUB once again, is if you install more OSes or in some cases of juggling disks around. But that hopefully happens far less frequently than updating your kernel does <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="shr-publisher-778"></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-01-31%2Fchanging-grub2-boot-order-the-right-way%2F' data-shr_title='Changing+GRUB2+Boot+Order+the+Right+Way'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-01-31%2Fchanging-grub2-boot-order-the-right-way%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2011-01-31%2Fchanging-grub2-boot-order-the-right-way%2F' data-shr_title='Changing+GRUB2+Boot+Order+the+Right+Way'></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-01-31/changing-grub2-boot-order-the-right-way/&via=danielbuus&text=Changing GRUB2 Boot Order the Right Way&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-01-31/changing-grub2-boot-order-the-right-way/&via=danielbuus&text=Changing GRUB2 Boot Order the Right Way&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-01-31/changing-grub2-boot-order-the-right-way/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>Setting up Postfix to Use GMail&#8217;s SMTP Server for Sending Mail</title>
		<link>http://danielsmedegaardbuus.dk/2010-10-10/setting-up-postfix-to-use-gmails-smtp-server-for-sending-mail/</link>
		<comments>http://danielsmedegaardbuus.dk/2010-10-10/setting-up-postfix-to-use-gmails-smtp-server-for-sending-mail/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 20:10:54 +0000</pubDate>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://danielsmedegaardbuus.dk/?p=708</guid>
		<description><![CDATA[Update @ 2011-05-17: So I&#8217;ve been doing this again, and wanted to add a simpler step-by-step guide to this post. Seems others got the same idea, I used this quick guide, which had me up and running in five minutes. Don&#8217;t forget to read my comment on that page, as a couple of steps are missing [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><strong><em>Update @ 2011-05-17: So I&#8217;ve been doing this again, and wanted to add a simpler step-by-step guide to this post. Seems others got the same idea, I used <a href="http://www.techienote.com/2011/01/configuring-postfix-to-relay-email-through-gmail-in-ubuntu.html">this quick guide</a>, which had me up and running in five minutes. Don&#8217;t forget to read my comment on that page, as a couple of steps are missing from the guide.</em></strong></p>
<p>Ah! <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Just found <a href="http://www.marksanborn.net/linux/send-mail-postfix-through-gmails-smtp-on-a-ubuntu-lts-server/">this great guide</a> on setting up Postfix to use the GMail SMTP server for sending out mail from your system. Postfix is pretty useless unless your box is actually set up as one mother of a server with a proper hostname, DNS/MX records and whatnot. Trying to send anything anywhere will most likely just yield a bunch of &#8220;bounced&#8221; messages in /var/log/mail.log, because no sane server out there would accept emails from some computer presenting itself as &#8220;localhost&#8221;, &#8220;kickassbox&#8221;, &#8220;bigdaddy&#8221; or whatever you&#8217;ve dubbed your sweet machine. Which kinda sucks if you&#8217;d like to set up monitoring of your system&#8217;s health, e.g. fan speeds, hard drive and storage status via smartd/smartctl, mdadm, zfs stuffs or something like that.</p>
<p>Luckily, for those of use having a GMail account, and being able to read the guide I just linked to, in no time we&#8217;ll have a fully working Postfix setup. Just don&#8217;t forget to read the replies from other users at the bottom of the page. The guy saying he needed to remove brackets around smtp.gmail.com, I don&#8217;t know, I didn&#8217;t have to. But the one pointing out needed paths to sasl stuff in main.cf, listen to him. Also, don&#8217;t forget to match your hostname in main.cf with the hostname you put in your certificate file. You don&#8217;t have to change your hostname system-wide, just the Postfix configuration (mine&#8217;s still lnxsrv internally).</p>
<p>Thanks to Mark Sanborn! <img src='http://danielsmedegaardbuus.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<div class="shr-publisher-708"></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%2Fsetting-up-postfix-to-use-gmails-smtp-server-for-sending-mail%2F' data-shr_title='Setting+up+Postfix+to+Use+GMail%27s+SMTP+Server+for+Sending+Mail'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fdanielsmedegaardbuus.dk%2F2010-10-10%2Fsetting-up-postfix-to-use-gmails-smtp-server-for-sending-mail%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%2Fsetting-up-postfix-to-use-gmails-smtp-server-for-sending-mail%2F' data-shr_title='Setting+up+Postfix+to+Use+GMail%27s+SMTP+Server+for+Sending+Mail'></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/setting-up-postfix-to-use-gmails-smtp-server-for-sending-mail/&via=danielbuus&text=Setting up Postfix to Use GMail's SMTP Server for Sending Mail&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/setting-up-postfix-to-use-gmails-smtp-server-for-sending-mail/&via=danielbuus&text=Setting up Postfix to Use GMail's SMTP Server for Sending Mail&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/setting-up-postfix-to-use-gmails-smtp-server-for-sending-mail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

