<?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>dev. &#187; linux</title>
	<atom:link href="http://coliena.com/blog/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://coliena.com/blog</link>
	<description>some software engineers&#039; random rants and thoughts</description>
	<lastBuildDate>Mon, 30 Aug 2010 20:02:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Synchronizing Google Contacts and Google Calendar in KDE 4</title>
		<link>http://coliena.com/blog/2010/05/synchronizing-google-contacts-and-google-calendar-in-kde-4/</link>
		<comments>http://coliena.com/blog/2010/05/synchronizing-google-contacts-and-google-calendar-in-kde-4/#comments</comments>
		<pubDate>Sun, 02 May 2010 13:12:30 +0000</pubDate>
		<dc:creator>niels</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://coliena.com/blog/?p=313</guid>
		<description><![CDATA[The support for Google Contacts and Google Calendar in KDE 4.4 is pretty good. All you need is libgcal (sudo apt-get install libgcal0 in Kubuntu). This library provides Akonadi access to your Google account. Once it is installed you just have to configure it in Akonadi, and then you can access your Google contacts and [...]]]></description>
			<content:encoded><![CDATA[<p>The support for Google Contacts and Google Calendar in KDE 4.4 is pretty good. All you need is <em>libgcal</em> (<em>sudo apt-get install libgcal0</em> in Kubuntu). This library provides Akonadi access to your Google account. Once it is installed you just have to configure it in Akonadi, and then you can access your Google contacts and calendar in KMail, KAddressBook, Kontact and Korganizer.</p>
<p>Unfortunately there is no sync option for Akregator and Google Reader yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://coliena.com/blog/2010/05/synchronizing-google-contacts-and-google-calendar-in-kde-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Ubuntu 10.04 on a Netbook with Full Disk Encryption</title>
		<link>http://coliena.com/blog/2010/05/how-to-install-ubuntu-10-04-on-a-netbook-with-full-disk-encryption/</link>
		<comments>http://coliena.com/blog/2010/05/how-to-install-ubuntu-10-04-on-a-netbook-with-full-disk-encryption/#comments</comments>
		<pubDate>Sun, 02 May 2010 12:55:00 +0000</pubDate>
		<dc:creator>niels</dc:creator>
				<category><![CDATA[helpdesk]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://coliena.com/blog/?p=303</guid>
		<description><![CDATA[Installing Ubuntu on a netbook is trivial. Installing Ubuntu/Kubuntu with full disk encryption is absolutely easy. Unfortunately, installing it on a netbook with full disk encryption is not (at least not without a CD-ROM drive). First of all, the desktop Ubuntu and Kubuntu install images don&#8217;t support full disk encryption. So get the Alternate ISO [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Ubuntu on a netbook is trivial. Installing Ubuntu/Kubuntu with full disk encryption is <a title="really easy" href="http://learninginlinux.wordpress.com/2008/04/23/installing-ubuntu-804-with-full-disk-encryption/" target="_blank">absolutely easy</a>. Unfortunately, installing it on a netbook with full disk encryption is not (at least not without a CD-ROM drive).</p>
<p>First of all, the desktop Ubuntu and Kubuntu install images don&#8217;t support full disk encryption. So get the Alternate ISO from <a title="here" href="http://www.ubuntu.com/getubuntu/downloadmirrors#alternate" target="_blank">here</a> (Kubuntu users <a title="this way" href="http://releases.ubuntu.com/kubuntu/10.04/" target="_blank">this way</a>, please). Then create a bootable USB drive using <a title="UNetbootin" href="http://unetbootin.sourceforge.net/" target="_blank">UNetbootin</a>.</p>
<p>Ready? Then boot your netbook from the USB drive, and proceed with the installation using <a title="this guide" href="http://learninginlinux.wordpress.com/2008/04/23/installing-ubuntu-804-with-full-disk-encryption/" target="_blank">this guide</a>. You will be able to select your country, keyboard and configure your network. Then the installation will fail, because the installer won&#8217;t find a CD-ROM drive. Yuck.</p>
<p>Okay, if there is no CD-ROM drive we just have to mount the installer ISO. For this we copy the alternate installer ISO to a second USB stick, plug it into the netbook and give the system a few seconds to recognize it. Then we use alt+F2 to switch to a command line and hit <enter> so we can enter commands. First, we should make sure that both USB drives are there:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-la</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sd<span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>should return something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdc</pre></div></div>

<p><em>/dev/sda</em> is your hard disk, <em>/dev/sdb</em> is the USB drive you booted from, and <em>/dev/sdc</em> is the second USB drive containing the installer ISO file (unless you have a second hard drive). Now you can mount the second USB drive to <em>/mnt</em> and the ISO image to <em>/cdrom</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> vfat <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdc <span style="color: #000000; font-weight: bold;">/</span>mnt
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>ubuntu-<span style="color: #000000;">10.04</span>-alternate-i386.iso <span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>Next, hit <em>alt+f1</em> to return to the install menu and select &#8220;Detect CD-ROM&#8221;. The installation will proceed as described in the blog post above.</p>
<p>Have fun with Ubuntu 10.04! <img src='http://coliena.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://coliena.com/blog/2010/05/how-to-install-ubuntu-10-04-on-a-netbook-with-full-disk-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Consuming pipe Inputs in Unix</title>
		<link>http://coliena.com/blog/2010/03/consuming-pipe-inputs-in-unix/</link>
		<comments>http://coliena.com/blog/2010/03/consuming-pipe-inputs-in-unix/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 05:19:01 +0000</pubDate>
		<dc:creator>niels</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[ipc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://coliena.com/blog/?p=258</guid>
		<description><![CDATA[You&#8217;d like your application to read pipe inputs, like &#8220;ls -la &#124; myGreatApp&#8221;? That&#8217;s pretty easy: #include &#60;stdio.h&#62; #include &#60;unistd.h&#62; &#160; int main&#40;void&#41; &#123; char input&#91;BUFSIZ&#93;; /* just read it ... */ read&#40;STDIN_FILENO, input, BUFSIZ&#41;; /* ... and use it */ puts&#40;input&#41;; &#160; return&#40;0&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<p>You&#8217;d like your application to read pipe inputs, like &#8220;ls -la | myGreatApp&#8221;? That&#8217;s pretty easy:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &lt;stdio.h&gt;</span>
<span style="color: #339933;">#include &lt;unistd.h&gt;</span>
&nbsp;
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #993333;">char</span> input<span style="color: #009900;">&#91;</span>BUFSIZ<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #808080; font-style: italic;">/* just read it ... */</span>
  read<span style="color: #009900;">&#40;</span>STDIN_FILENO<span style="color: #339933;">,</span> input<span style="color: #339933;">,</span> BUFSIZ<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #808080; font-style: italic;">/* ... and use it */</span>
  puts<span style="color: #009900;">&#40;</span>input<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">return</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://coliena.com/blog/2010/03/consuming-pipe-inputs-in-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
