<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Dag Olav Prestegarden</title>
	
	<link>http://dagolav.prestegarden.com</link>
	<description>Ramblings on technology and daily life.</description>
	<lastBuildDate>Thu, 30 Jun 2011 19:23:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DagOlavPrestegarden" /><feedburner:info uri="dagolavprestegarden" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Domains Seized by Department of Homeland Security</title>
		<link>http://feedproxy.google.com/~r/DagOlavPrestegarden/~3/q8yrFYksXyw/</link>
		<comments>http://dagolav.prestegarden.com/domains-seized-by-department-of-homeland-security/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 15:00:32 +0000</pubDate>
		<dc:creator>Dag Olav Prestegarden</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Dnsmasq]]></category>
		<category><![CDATA[Hosts]]></category>

		<guid isPermaLink="false">http://dagolav.prestegarden.com/?p=192</guid>
		<description><![CDATA[Today the internet has been raging over the American government&#8217;s recent seizure of a number of domains containing possible copyright infringing content and counterfeit goods. Now, I&#8217;m not arguing that selling counterfeit goods should be allowed. The recent seizure however, where neither the claimed offenders, nor their domain registrars have been notified, represents a way of conducting [...]]]></description>
			<content:encoded><![CDATA[<p>Today the internet has been raging over the American government&#8217;s recent seizure of a number of domains containing possible copyright infringing content and counterfeit goods.</p>
<p>Now, I&#8217;m not arguing that selling counterfeit goods should be allowed. The recent seizure however, where neither the claimed offenders, nor their domain registrars have been notified, represents a way of conducting law enforcement that just doesn&#8217;t belong in a modern society.</p>
<p>The seizure have been done through ICANN, the organization responsible for maintaining top-level domains and root DNS servers. Since ICANN is responsible for all the major top-level domains, there is no reason not to expect this happening again in the future. Likely targets are of course the popular download sites around. However, more worryingly is the fact that this opens for the possibility to seize other &#8220;problematic&#8221; domains such as whistle-blowing Wikileaks. (Hey, no reason secretly graded documents aren&#8217;t copyrighted, so the same reasons could be used here).</p>
<p>There are of course a number of ways to circumvent this, as currently the only thing being seized is the domain names, and not the servers&#8217; internet access or IP addresses:</p>
<p>I&#8217;ve seen tips in comment fields here and there to just use the site&#8217;s IP address instead of it&#8217;s domain name. This is problematic however as many servers are serving up multiple sites using virtual hosts. This means that for the server to know which of the sites you want to access, you need to supply it with a name for that site. This is done by your browser when you go to an address, as it passess along the original name you supplied in the location bar in an HTTP header. What you can do however, is override how your computer resolves a given domain name to it&#8217;s IP address by manually adding an entry in your hosts file or setting up a local DNS server to propagate your changes to your entire local network.</p>
<h3>Editing your hosts file</h3>
<p>This file can be found at different places in different operating systems:</p>
<p>Linux: /etc/hosts<br />
Windows: &lt;Windows Folder&gt;system32\drivers\etc\hosts<br />
MacOS: /private/etc/hosts</p>
<p>This file can be edited with a normal text editor such as notepad or gedit. To point a domain to a specific IP address just add a line containing the IP address and domain name separated by whitespace. E.g.:</p>
<pre>91.194.60.32 wikileaks.org</pre>
<p>Now your computer will not be affected by any changes done to the DNS system for this domain.</p>
<h3>DNSMasq</h3>
<p>There are also a number of alternative DNS s﻿ervices around, or you can set up your own DNS server for your local network where you supply some addresses you don&#8217;t want to change, and forward the rest to higher level DNS servers. A simple and easy way to do this on a Linux system is through dnsmasq.</p>
<p>Dnsmasq can be installed on a Debian or Ubuntu system using by fetching the dnsmasq package (aptitude install dnsmasq). Dnsmasq automatically uses your system&#8217;s default dns settings from /etc/resolv.conf. You can add specific entries yourself by adding a line such as</p>
<pre>address=/wikileaks.org/91.194.60.32</pre>
<p>to your /etc/dnsmasq.conf file. (You probably have to restart dnsmasq after changing the file, so do a service restart dnsmasq or similar, depending on your system)</p>
<p>Now just set up your local computers to use the server running dnsmasq as DNS server and you should be good to go.</p>
<img src="http://feeds.feedburner.com/~r/DagOlavPrestegarden/~4/q8yrFYksXyw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dagolav.prestegarden.com/domains-seized-by-department-of-homeland-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dagolav.prestegarden.com/domains-seized-by-department-of-homeland-security/</feedburner:origLink></item>
		<item>
		<title>Security and Privacy series pt. 1 – Securing your communications with OpenPGP</title>
		<link>http://feedproxy.google.com/~r/DagOlavPrestegarden/~3/MK3t6BjtrM0/</link>
		<comments>http://dagolav.prestegarden.com/security-and-privacy-series-pt-1-securing-your-communications-with-openpgp/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 03:41:58 +0000</pubDate>
		<dc:creator>Dag Olav Prestegarden</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[GnuPGP]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[OpenPGP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dagolav.prestegarden.com/?p=148</guid>
		<description><![CDATA[For the first part of my series on data security, I want to talk about the use of public key cryptography as a way to encrypt your communications, prove that you&#8217;re the original author and ensure that communications you receive really originate from who they claim to. Cory Doctorow did a great job of describing how [...]]]></description>
			<content:encoded><![CDATA[<p>For the first part of my series on data security, I want to talk about the use of public key cryptography as a way to encrypt your communications, prove that you&#8217;re the original author and ensure that communications you receive really originate from who they claim to.</p>
<p>Cory Doctorow did a great job of describing how public key encryption works in his book &#8220;Little Brother&#8221;, so I won&#8217;t reinvent the wheel, but instead give you his words:</p>
<blockquote><p>In public key crypto, each user gets two keys. They&#8217;re long strings of mathematical gibberish, and they have an almost magic property. Whatever you scramble with one key, the other will unlock, and vice-versa. What&#8217;s more, they&#8217;re the *only* keys that can do this &#8212; if you can unscramble a message with one key, you *know* it was scrambled with the other (and vice-versa).<br />
So you take either one of these keys (it doesn&#8217;t matter which one) and you just *publish* it. You make it a total *non-secret*. You want anyone in the world to know what it is. For obvious reasons, they call this your &#8220;public key.&#8221;</p>
<p>The other key, you hide in the darkest reaches of your mind. You protect it with your life. You never let anyone ever know what it is. That&#8217;s called your &#8220;private key.&#8221; (Duh.)</p>
<p>Now say you&#8217;re a spy and you want to talk with your bosses. Their public key is known by everyone. Your public key is known by everyone. No one knows your private key but you. No one knows their private key but them.</p>
<p>You want to send them a message. First, you encrypt it with your private key. You could just send that message along, and it would work pretty well, since they would know when the message arrived that it came from you. How? Because if they can decrypt it with your public key, it can *only* have been encrypted with your private key. This is the equivalent of putting your seal or signature on the bottom of a message. It says, &#8220;I wrote this, and no one else. No one could have tampered with it or changed it.&#8221;</p>
<p>Unfortunately, this won&#8217;t actually keep your message a *secret*. That&#8217;s because your public key is really well known (it has to be, or you&#8217;ll be limited to sending messages to those few people who have your public key). Anyone who intercepts the message can read it. They can&#8217;t change it and make it seem like it came from you, but if you don&#8217;t want people to know what you&#8217;re saying, you need a better solution.</p>
<p>So instead of just encrypting the message with your private key, you *also* encrypt it with your boss&#8217;s public key. Now it&#8217;s been locked twice. The first lock &#8212; the boss&#8217;s public key &#8212; only comes off when combined with your boss&#8217;s private key. The second lock &#8212; your private key &#8212; only comes off with your public key. When your bosses receive the message, they unlock it with both keys and now they know for sure that: a) you wrote it and b) only they can read it.</p>
<p>- <a href="http://craphound.com/littlebrother/">Little Brother</a> by Cory Doctorow, available under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-ShareAlike license</a></p></blockquote>
<p>To employ this theory we are going to use the de facto standard for message encryption and signing; OpenPGP. OpenPGP is a widely supported in all major email applications and operating systems. In these examples we will use GPG &#8211; Gnu Privacy Guard &#8211; available in in Ubuntu in the gnupg package (installed by default). GPG is a free, open source application that uses the OpenPGP standard. For the usage examples we will use Mozilla Thunderbird with the OpenPGP plugin Enigmail.</p>
<h3>Creating a key</h3>
<p>The first step is to create your very own privat/public key pair. This can be done by the command:</p>
<pre>gpg --cert-digest-algo=SHA256 --default-preference-list="h10 h8 h9 h11 s9 s8 s7 s3 z2 z3 z1 z0" --gen-key</pre>
<p>In detail, this example tells gpg to use the SHA256 algorithm when signing other people&#8217;s keys (<em>&#8211;cert-digest-ago=SHA256</em>),</p>
<p>more about this later on, in the &#8220;ring of trust&#8221; section. Then<em> &#8211;default-preference-list</em> tells gpg what preferences to use for encryption and hashing, for the specifics of the values see <a href="http://www.spywarewarrior.com/uiuc/gpg/gpg-com-2.htm#default-preference-list">this page</a>. Lastly we tell gpg to generate the keys using the <em>&#8211;gen-key</em> command.</p>
<p>After you have issued the command you will be presented with a fairly self-explanatory wizard. If you are still unsure, you should select ﻿﻿ <em>RSA and RSA (default) </em>as key type, and use the standard values for key size and key duration (2048 and unlimited). After that enter your information and password when asked, and your key will be created.</p>
<p>Take a note of the key ID in the final output of the process on the &#8220;gpg: key ABABABAB marked &#8230;.&#8221; line. (here ABABABAB would be your key ID.)</p>
<p>The public and private keys you created are now stored in your private keyring. This means that GPG can access and use them when needed. To be able to use your key pair though, there are still more to do:</p>
<h3>Spreading your public key</h3>
<p>This step will upload the newly created key to Ubuntu&#8217;s key servers. This is Doctorow&#8217;s previously described action of spreading your key for everyone to know. When a key server has received your key, it will be propagated through the internet to all the other key servers, and people will be able to download it from there.</p>
<pre>gpg --send-keys --keyserver keyserver.ubuntu.com 6A9212EB</pre>
<p>Your key can also be exported and spread through other means, e.g. put on your website, given to friends etc. For more information on this, see the &#8220;Moving, backing up and sending your key&#8221; section further down.</p>
<h3>Using Thunderbird to read and send encrypted messages</h3>
<p>First you have to install <a href="http://www.mozillamessaging.com/en-US/thunderbird/">Thunderbird</a>, as well as the <a href="http://enigmail.mozdev.org/home/index.php.html">Enigmail</a> plugin. In Ubuntu this can be done by installing the thunderbird and enigmail packages:</p>
<pre>sudo aptitude install thunderbird enigmail</pre>
<p>If you are using another package management system or use another operating system, you can download them from the above links.</p>
<p>You can configure Enigmail under the OpenPGP option in the Thunderbird menus. In my case, Enigmail automatically detected the gpg exectuables and everything was good to go. When you first write an email and want to encrypt or sign it, Enigmail will prompt you for which key to use, and you can select your previously created key from a nice list.</p>
<p>When you recieve an encrypted or signed email from someone who&#8217;s public key you have, or who&#8217;s key is residing on a keyserver on the internet (Enigmail is automatically set up to check a large amount of them), email messages are automatically decrypted, and Enigmail shows you a nice notification about who they key used belongs to.</p>
<div id="attachment_179" class="wp-caption aligncenter" style="width: 591px"><a href="http://dagolav.prestegarden.com/wp-content/uploads/2010/11/valid_key.png"><img class="size-full wp-image-179  " title="Decryptet message in Thunderbird" src="http://dagolav.prestegarden.com/wp-content/uploads/2010/11/valid_key.png" alt="" width="581" height="386" /></a><p class="wp-caption-text">A decryptet message in Thunderbird, note the green bar.</p></div>
<p style="text-align: center;">
<h3>Moving, backing up and sending your key</h3>
<p>To get a copy of your public key to send to your friends or put on your website, you can use the command</p>
<pre>gpg --export -a ABABABAB &gt; public_key.asc</pre>
<p>This will export your key in ASCII representation to a file called public_key.asc. If you just want to print the key to the command line for copy-pasting you can skip the &#8220;&gt; public_key.asc&#8221; part.</p>
<p>To export your private key for backup purposes and for use on your other computers you can use the command:</p>
<pre>gpg --export-secret-key -a ABABABAB &gt; secret_key.asc</pre>
<p><strong>Do note that this key is strictly personal and should be kept extremely private. Stick it on a USB drive, preferably encrypted, and stick it in a safe or lock box. Also note that if you ever lose this key &#8211; or the password you used to create it &#8211; your public key will be useless as you can never decrypt anything encrypted by it. This is extremely important.</strong></p>
<p>To import someone&#8217;s public key you can issue this command:</p>
<pre>gpg --import some_public_key.asc</pre>
<p>To import your private key on another computer, e.g. if you have multiple computers or are upgrading to a new one:</p>
<pre>gpg --import --allow-secret-key-import your_secret_key.asc</pre>
<h3>Help, I&#8217;ve lost my private key!</h3>
<p>If you ever lose your private key, or someone steals your computer and gets a hold of it a nice feature is in place to have it revoked. To be able to do this, you have to create a revocation key while you still have your key, so you should do this as soon as possible. To create a revocation key:</p>
<pre>gpg --gen-revoke ABABABAB &gt; revocation_key.asc</pre>
<p><strong>This key is also strictly personal, and should be kept hidden away. Do not store a single copy along with your other keys, as you need to have this key in case your computer gets stolen and you must revoke your key.</strong></p>
<p>To use this key to revoke your key, simply import it to your keyring and upload it to a key server like you did earlier on, or upload it directly to a key server that supports doing that (some key servers will allow you to upload it in a web interface or similar)</p>
<h3>Web of trust</h3>
<p>Another cool feature in OpenPGP is key signing. This is the process of signing another persons key with your own. This tells everyone that you vouch for his or her key belonging to whom it says. A random key found on the internet can of course come from anyone, but if that key says that Sarah trusts it, and Sarah&#8217;s key says Jake trusts it, and you personally know Jake, then that key just became a lot more reliable. For key signing to work properly though, it should only be done with people who know each other and can verify the other person&#8217;s identity &#8211; and ideally, only in a &#8220;real life&#8221; setting where both parts are gathered.</p>
<p>To read more about key signing and web of trust take a look at the <a href="https://help.ubuntu.com/community/GnuPrivacyGuardHowto#Getting your key signed">Ubuntu Wiki&#8217;s article on GPG</a> and the <a href="http://www.gnupg.org/gph/en/manual.html#AEN554">GNU Privacy Handbook</a>.</p>
<h3>References</h3>
<p>During the making of this article I&#8217;ve learned and transcribed a lot from other sources, notably:</p>
<ul>
<li><a href="https://help.ubuntu.com/community/GnuPrivacyGuardHowto">Ubuntu Wiki article on Gnu Privacy Guard</a></li>
<li><a href="http://craphound.com/littlebrother/">Cory Doctorow&#8217;s Little Brother</a></li>
<li><a href="http://www.gnupg.org/gph/en/manual.html">The GNU Privacy Handbook</a></li>
<li><a href="http://www.spywarewarrior.com/uiuc/gpg/gpg-com-2.htm">Eric Howe&#8217;s Privacy &amp; Security Page on GPG Key Management</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/DagOlavPrestegarden/~4/MK3t6BjtrM0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dagolav.prestegarden.com/security-and-privacy-series-pt-1-securing-your-communications-with-openpgp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dagolav.prestegarden.com/security-and-privacy-series-pt-1-securing-your-communications-with-openpgp/</feedburner:origLink></item>
		<item>
		<title>An introduction series to data privacy and security</title>
		<link>http://feedproxy.google.com/~r/DagOlavPrestegarden/~3/ZD5nD6D4nJk/</link>
		<comments>http://dagolav.prestegarden.com/an-introduction-series-to-data-privacy-and-security/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 03:41:37 +0000</pubDate>
		<dc:creator>Dag Olav Prestegarden</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[GnuPGP]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dagolav.prestegarden.com/?p=115</guid>
		<description><![CDATA[Image by 2create via Flickr The last year or so I have to a large degree migrated most of my data over to external hosting such as Google Mail, Calendar, Wave, Contacts and Docs. My day to day work items go in a Dropbox folder allowing easy synchronization, backup and basic revision control. Some of [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 170px;">
<dt class="wp-caption-dt"><a href="http://www.flickr.com/photos/74471232@N00/416634283"><img title="Pad Lock Close" src="http://farm1.static.flickr.com/126/416634283_b95f6fc920_m.jpg" alt="Pad Lock Close" width="160" height="240" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image by <a href="http://www.flickr.com/photos/74471232@N00/416634283">2create</a> via Flickr</dd>
</dl>
</div>
</div>
<p><span style="line-height: 19px; font-size: 13px;">The last year or so I have to a large degree migrated most of my data over to external hosting such as Google Mail, Calendar, Wave, Contacts and Docs. My day to day work items go in a Dropbox folder allowing easy synchronization, backup and basic revision control. Some of my programming projects are hosted on Github and Bitbucket, and my website is hosted at Dreamhost.</span></p>
<p>All these services have given me a workflow in my day to day life that is wonderful. My email is pushed to my Android phone the moment it arrives in my Gmail, my contacts synchronize automatically between all my devices, my friend&#8217;s birthdays are delivered straight to my phone from Facebook, and basically I don&#8217;t have to do jack to get it to work.</p>
<p>I&#8217;ve been interested in matters of free software, privacy, freedom of speech etc. for a long time, but see myself as a pragmatic guy, and have done a very conscious choice choosing convenience over privacy lately. For now I have now data that I&#8217;m all that afraid of anyone seing, so convenience has been well worth it.</p>
<p>Just recently however I read Cory Doctorow&#8217;s youth novel &#8216;Little Brother&#8217;. It was a great book, and I read it cover to cover in two sittings. The book brings up a lot of very interesting &#8211; and serious &#8211; issues  that I believe most people use way to little time thinking about. These issues are wrapped in an entertaining story and as rarely seen in entertainment &#8211; very realistic depictions of technology.</p>
<p>&#8216;Little Brother&#8217; really sparked my interest in privacy and security again, and when I read about the<a href="http://www.vg.no/nyheter/innenriks/artikkel.php?artid=10042489"> American government illegally conducting espionage targeting Norwegian citizens</a> I just couldn&#8217;t resist writing up some posts on the subject.</p>
<p>Over my next few blog posts I want to create a series of informational posts about some simple but important concepts of personal privacy and security measures anyone can start using. Such measures are of interest both in an idealogical perspective, as well as securing your data from possible threats such as a laptop or cell phone theft, network sniffing or people trying to break in to your computer. I also want to touch on the subject of open data formats and why that is a good thing.</p>
<p>Many of these subjects are widely discussed and described on the internet, but few articles seems to describe, what, why and how together and in a simple and understandable manner. That will be my goal in this series, and currently my plans for the topics are:</p>
<ol>
<li><strong>Securing and making your messages trustworthy</strong><br />
Taking a look at private/public key par encryption using OpenPGP</li>
<li><strong>Securing your data to prevent theft and snooping.</strong><br />
Looking at various ways to encrypt data, including full drive and block file schemes and some insights into nested encryption layers and what they can accomplish.</li>
<li><strong>Things you should know about using internet in the public.</strong><br />
How people sniff your traffic and what you should think about when you surf the net, including topics such as SSL, open wireless networks and password, cookie and information sniffing.</li>
<li><strong>Considerations you should have in mind when writing your documents and storing your media files.</strong><br />
Proprietary vs open data formats, programs and digital rights management schemes on video and music.</li>
</ol>
<img src="http://feeds.feedburner.com/~r/DagOlavPrestegarden/~4/ZD5nD6D4nJk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dagolav.prestegarden.com/an-introduction-series-to-data-privacy-and-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dagolav.prestegarden.com/an-introduction-series-to-data-privacy-and-security/</feedburner:origLink></item>
		<item>
		<title>Installing Ubuntu on the HP MediaSmart EX490</title>
		<link>http://feedproxy.google.com/~r/DagOlavPrestegarden/~3/GCxsULoCIog/</link>
		<comments>http://dagolav.prestegarden.com/installing-ubuntu-on-the-hp-mediasmart-ex490/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 22:15:56 +0000</pubDate>
		<dc:creator>Dag Olav Prestegarden</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dagolav.prestegarden.com/?p=65</guid>
		<description><![CDATA[Image by tris via Flickr I recently bought a HP MediaSmart EX490 for use as a home backup- and media server. In my eagerness to getting a new plaything however &#8211; I only looked at the pros: Great form factor for a home server staying in the living room Room for 4 front-swappable hard drives (which [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 171px;">
<dt class="wp-caption-dt"><a href="http://www.flickr.com/photos/66177278@N00/2143236958"><img title="frontpanel" src="http://farm3.static.flickr.com/2232/2143236958_de6b635019_m.jpg" alt="frontpanel" width="161" height="240" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image by <a href="http://www.flickr.com/photos/66177278@N00/2143236958">tris</a> via Flickr</dd>
</dl>
</div>
</div>
<p>I recently bought a HP MediaSmart EX490 for use as a home backup- and media server. In my eagerness to getting a new plaything however &#8211; I only looked at the pros:</p>
<ul>
<li>Great form factor for a home server staying in the living room</li>
<li>Room for 4 front-swappable hard drives (which is great considering the tiny size of this thing)</li>
<li>Next to no noise, and very cheap.</li>
</ul>
<p>Now, Windows Home Server is a great home server operating system, but Linux is what really rocks my boat, so I started thinking about how to get Linux on this box even before ever booting the pre-installed Windows Server.</p>
<p>Problem is though, there are a couple of small quirks with the MediaSmart.</p>
<ol>
<li>It&#8217;s completely headless &#8211; i.e. no chance of connecting a monitor (not really a problem, but a minor hassle)</li>
<li>According to the almighty internet, the network card (a SiS191) isn&#8217;t supported by the default SiS190 drivers.</li>
</ol>
<p>These two problems combined makes installing Linux a tad bit harder than normal, but still a fairly trivial exercise.</p>
<p><span style="color: #333333; font-family: Helvetica, Arial, sans-serif; line-height: 15px; font-size: 11px;"> </span></p>
<h2>My plan</h2>
<p><span style="color: #333333; font-family: Helvetica, Arial, sans-serif; line-height: 15px; font-size: 11px;"> </span></p>
<div class="zemanta-img zemanta-action-dragged" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 310px;">
<dt class="wp-caption-dt"><a href="http://commons.wikipedia.org/wiki/File:Ubuntu_logo.svg"><img title="Official Ubuntu circle with wordmark. Replace ..." src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Ubuntu_logo.svg/300px-Ubuntu_logo.svg.png" alt="Official Ubuntu circle with wordmark. Replace ..." width="300" height="70" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://commons.wikipedia.org/wiki/File:Ubuntu_logo.svg">Wikipedia</a></dd>
</dl>
</div>
</div>
<p><span style="color: #333333; font-family: Helvetica, Arial, sans-serif; line-height: 15px; font-size: 11px;"> </span></p>
<p>Move the hard drive to my main desktop computer, install <a class="zem_slink" title="Ubuntu (operating system)" rel="homepage" href="http://www.ubuntu.com/">Ubuntu</a>, recompile a set of drivers that works with the bundled network card, install an SSH server and kick back while enjoying my newfound sense of accomplishment and a new box for downloading all those Linux ISO&#8217;s.</p>
<h2>The procedure</h2>
<p>First of all I headed over to the Ubuntu pages for a copy of their Ubuntu 10.04 installation CD. The computer I was installing from doesn&#8217;t have a CD/DVD drive, so I created a USB boot disk using <a href="http://unetbootin.sourceforge.net/">UNetbootin</a></p>
<p>While the Ubuntu image was downloading I removed the system drive from the MediaSmart. The disk tray for this drive is originally locked, and no key is bundled with the server, but it&#8217;s easy to open using a small screwdriver or kitchen knife. I then installed the drive in my other computer and waited for the UNetbootin to do it&#8217;s job.</p>
<p>Installing Ubuntu is probably one of the easiest tasks in the world, so no need to go into details there. I decided to install Ubuntu on the free space of the drive, leaving the Windows Home Server partition alone. I haven&#8217;t tried booting the Windows partition yet, and I certainly hope they haven&#8217;t bundled any stuff that will wipe the rest of the drive and create storage space in case I ever decide to boot that partition up.</p>
<p>While installing Ubuntu I read up a bit concerning the drivers for the SiS191 network card, finding some comments suggesting that it was now supported in the sis190 module. I decided to try and move the disk back immediately, hoping that it would work out of the box.</p>
<p><strong>It did. So, to all of you who are thinking about installing Linux on one of these puppies: There is no problem with the hardware, at least if you&#8217;re using the Ubuntu 10.04 stock kernel (﻿﻿2.6.32) or newer, and probably a lot of older ones as well.</strong></p>
<p>After having installed Ubuntu on the hard drive, there is one important step to remember before migrating the disk back to it&#8217;s original home: <strong>Remote management.</strong></p>
<p>To install the openSSH server on Ubuntu, do a simple:</p>
<pre>sudo aptitude install openssh-server</pre>
<p>verify that the SSH server is running and that you can connect (you can with the default user you create when installing Ubuntu) and shut down the computer. Move the disk back to the MediaSmart and collect the winnings <img src='http://dagolav.prestegarden.com/wp-content/plugins/tango-smileys-extended/tango/smile.png' alt='Smile' title='Smile' class='tse-smiley' height='16' width='16' /></p>
<p>If the SSH server isn&#8217;t running by standard for some reason, you can enable it using the command:</p>
<pre>sudo update-rc.d ssh defaults</pre>
<p>If you have control of your own switch/router you should easily be able to get a hold of the ip-address for your server from there. If this will pose a problem, you might consider setting up a static IP configuration before you move the drive back, or simply start port scanning your servers subnet until something answers.</p>
<p><strong>If your network interface doesn&#8217;t start up automatically, make sure it is enabled in /etc/network/interfaces</strong></p>
<p>Either for DHCP:</p>
<pre>auto eth0
iface eth0 inet dhcp</pre>
<p>or with static configuration:</p>
<pre>auto eth0
iface eth0 inet static
address 192.168.1.33
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.1.255
gateway 192.168.1.1</pre>
<p>And make sure to adjust the values to something that&#8217;s relevant for you own network setup.</p>
<p>Next steps now are filling the last three drive slots, setting up a proper RAID array and let that server serve!</p>
<p><strong>Edit November 10th 2010: Thanks to Guy in the comments for pointing out that he experienced problems with the SSH server and the network interfaces not coming up automatically. I have now added that to the tutorial as well if anyone else should experience problems.</strong></p>
<img src="http://feeds.feedburner.com/~r/DagOlavPrestegarden/~4/GCxsULoCIog" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dagolav.prestegarden.com/installing-ubuntu-on-the-hp-mediasmart-ex490/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		<feedburner:origLink>http://dagolav.prestegarden.com/installing-ubuntu-on-the-hp-mediasmart-ex490/</feedburner:origLink></item>
		<item>
		<title>How do we developers best describe our work?</title>
		<link>http://feedproxy.google.com/~r/DagOlavPrestegarden/~3/H9K9IdbXlEU/</link>
		<comments>http://dagolav.prestegarden.com/how-do-we-developers-best-describe-our-work/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 22:09:43 +0000</pubDate>
		<dc:creator>Dag Olav Prestegarden</dc:creator>
				<category><![CDATA[Discussion topic]]></category>
		<category><![CDATA[Informatics]]></category>
		<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">http://dagolav.prestegarden.com/?p=49</guid>
		<description><![CDATA[Half a year ago I ended up in a really interesting conversation with Erlend Klakegg Bergheim about how we as programmers describe our work to non-programmers. I decided to write up a blog post on the subject to try and retrieve some feedback and opinions from others, but ultimately ended up postponing it indefinitely. This [...]]]></description>
			<content:encoded><![CDATA[<p>Half a year ago I ended up in a really interesting conversation with <a href="http://klakegg.net">Erlend Klakegg Bergheim</a> about how we as programmers describe our work to non-programmers.</p>
<p>I decided to write up a blog post on the subject to try and retrieve some feedback and opinions from others, but ultimately ended up postponing it indefinitely.</p>
<p>This summer though, the same conversation came up during lunch, and my interest was sparked again, so I finally decided to write up some of my thoughts.</p>
<h2>The problem</h2>
<p>Programming/Informatics is hard. Both for us &#8211; &#8220;the experts&#8221; &#8211; but even more so for those never exposed to our way of thinking. Even trying to explain the problems we try to solve every day can sometimes be hard.</p>
<blockquote><p>&#8220;What? Why can&#8217;t you just click a button and the computer will make that fancy word processing tool for you? Isn&#8217;t  it just there? Kinda like all that great meat that is grown in our grocery stores?&#8221;</p>
<p style="padding-left: 30px;"><span style="color: #4e4e4e;"><span style="font-style: normal;">- Almost true story.</span></span></p>
</blockquote>
<p>So up until last year every time someone asked me what I was studying, the conversation usually went something like this:</p>
<blockquote><p><strong>Parent/Cute girl/Someone from my High School/Whoever</strong>: So, what do you do?<br />
<strong>Me</strong>: Informatics. I love that stuff!<br />
<strong>Them</strong>: Wow, that sounds exciting. What does that mean?</p>
<p>At this point, after having tried to explain this a thousand times before, always ending up with them thinking I live in a basement hacking kernels and playing WoW, i usually just ended up doing some typing gestures with my hands while saying &#8220;compuuuters&#8221; with a bored voice, and then changing the subject to whatever generally exciting subject I could come up with as soon as possible.</p></blockquote>
<p>After reflecting upon this a bit I realized that this behavior both made me look boring, and made me seem like I wasn&#8217;t proud of what I do. In short:</p>
<ul>
<li>I&#8217;m boring.</li>
<li>My field of study/work is boring.</li>
<li>I&#8217;m not proud of what I&#8217;m doing, something that makes me even more boring!</li>
<li>Not reflecting pride concerning what I do could even be a slippery slope towards not having pride. Fake it till you make fail at it.</li>
</ul>
<h2>My Solution</h2>
<p>Needless to say, I love computers. I love programming, and I love studying informatics. So I decided to come up with something like an <a class="zem_slink" title="Elevator pitch" rel="wikipedia" href="http://en.wikipedia.org/wiki/Elevator_pitch">elevator pitch</a> for what I do (probably way to much of) every day.</p>
<p>Now when I&#8217;m asked I usually go into the wonders of all our modern gadgets and how every possible item in our society is run by computers, and that we programmers &#8211; we make that happen! Everything from Facebook to OpenOffice.org, even your watch or cell phone contains lots of technology, and someone gotta make that stuff behave. That&#8217;s my job.</p>
<p>Instead of trying to explain programming, discrete mathematics and algorithms I now go on about the concepts and problems we have to solve, on a much higher level than what I used to, and I love the way it has made me more aware of being proud of studying something as awesome as informatics.</p>
<p>Now my question is: <strong>How do YOU describe your work as a developer/computer geek?</strong></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<img src="http://feeds.feedburner.com/~r/DagOlavPrestegarden/~4/H9K9IdbXlEU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dagolav.prestegarden.com/how-do-we-developers-best-describe-our-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dagolav.prestegarden.com/how-do-we-developers-best-describe-our-work/</feedburner:origLink></item>
		<item>
		<title>Mplayer doesn’t stream from stdin without cache setting</title>
		<link>http://feedproxy.google.com/~r/DagOlavPrestegarden/~3/a1CPLYRDBI0/</link>
		<comments>http://dagolav.prestegarden.com/mplayer-not-eager-to-stream-from-stdin/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 20:41:53 +0000</pubDate>
		<dc:creator>Dag Olav Prestegarden</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[tv series]]></category>

		<guid isPermaLink="false">http://dagolav.prestegarden.com/?p=24</guid>
		<description><![CDATA[I just noticed that mplayer no longer wants to stream from stdin when I unrared my files straigth to mplayer using unrar p -inul some_multipart.rar &#124; mplayer - like I&#8217;ve often done before, giving me errors like this instead: Cannot seek backward in linear streams! Seek failed This behaviour has probably existed for a while, [...]]]></description>
			<content:encoded><![CDATA[<p>I just noticed that mplayer no longer wants to stream from stdin when I unrared my files straigth to mplayer using</p>
<pre>unrar p -inul some_multipart.rar | mplayer -</pre>
<p>like I&#8217;ve often done before, giving me errors like this instead:</p>
<pre>Cannot seek backward in linear streams!
Seek failed</pre>
<p>This behaviour has probably existed for a while, however I haven&#8217;t noticed it before since I&#8217;ve actually been using a workaround for this anyways. To play streams from stdin, a quick fix is to set cache size manually. E.g. like this:</p>
<pre>unrar p -inul some_multipart.rar | mplayer - -cache 8092</pre>
<p>Cache size can be set to whatever you like it to it seems, so feel free to customize it to your own preferences and bandwith.</p>
<img src="http://feeds.feedburner.com/~r/DagOlavPrestegarden/~4/a1CPLYRDBI0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dagolav.prestegarden.com/mplayer-not-eager-to-stream-from-stdin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dagolav.prestegarden.com/mplayer-not-eager-to-stream-from-stdin/</feedburner:origLink></item>
		<item>
		<title>New blog installation</title>
		<link>http://feedproxy.google.com/~r/DagOlavPrestegarden/~3/1iiopawhoDE/</link>
		<comments>http://dagolav.prestegarden.com/new-blog-installation/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 22:52:54 +0000</pubDate>
		<dc:creator>Dag Olav Prestegarden</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dagolav.prestegarden.com/blog/?p=5</guid>
		<description><![CDATA[So, I did a fresh reinstall of my WordPress installation the other day, and the old posts are gone. This could of course have been avoided, but since I didn&#8217;t have anything of value posted, I just cleaned out the entire database and did a fresh install. Currently I&#8217;m working on Capgemini&#8217;s Summer of Code [...]]]></description>
			<content:encoded><![CDATA[<p>So, I did a fresh reinstall of my WordPress installation the other day, and the old posts are gone. This could of course have been avoided, but since I didn&#8217;t have anything of value posted, I just cleaned out the entire database and did a fresh install.</p>
<p>Currently I&#8217;m working on Capgemini&#8217;s Summer of Code project in Trondheim, where I&#8217;m having a blast. We&#8217;re creating a great product, the team I&#8217;m working with is excelent &#8211; both technically and socially &#8211; and the reception from the employees at Capgemini have also been great.</p>
<p>I&#8217;m really learning a lot about a bunch of Microsoft technologies these days, including TeamFoundation Server, Silverlight 3 and .NET in general. I&#8217;m going to get down and dirty and write a post about some of my experiences working on the Windows platform again any day now. For those of you who don&#8217;t know me, I&#8217;m a Linux user, and all this Microsoft stuff is pretty new to me, so hopefully there&#8217;s going to be quite a lot to write about.</p>
<img src="http://feeds.feedburner.com/~r/DagOlavPrestegarden/~4/1iiopawhoDE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dagolav.prestegarden.com/new-blog-installation/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://dagolav.prestegarden.com/new-blog-installation/</feedburner:origLink></item>
	</channel>
</rss>

