<?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>logic involved &#187; linux</title> <atom:link href="http://www.coliena.com/blog/tag/linux/feed/" rel="self" type="application/rss+xml" /><link>http://www.coliena.com/blog</link> <description>... more often than not ...</description> <lastBuildDate>Sat, 21 Jan 2012 18:09:36 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>SELinux on Android</title><link>http://www.coliena.com/blog/2012/01/selinux-on-android/</link> <comments>http://www.coliena.com/blog/2012/01/selinux-on-android/#comments</comments> <pubDate>Sat, 14 Jan 2012 14:41:38 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[life out there]]></category> <category><![CDATA[android]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[security]]></category><guid
isPermaLink="false">http://www.coliena.com/blog/?p=557</guid> <description><![CDATA[SELinux is coming to Android. Called SEAndroid, the project looks pretty interesting: Some distinctive features of our SE Android reference implementation in comparison to prior efforts of which we are aware include: Per-file security labeling support for yaffs2, Filesystem images (yaffs2 and ext4) labeled at build time, Kernel permission checks controlling Binder IPC, Labeling of [...]]]></description> <content:encoded><![CDATA[<p>SELinux is coming to Android. Called <a
title="SEAndroid" href="http://selinuxproject.org/page/SEAndroid" target="_blank">SEAndroid</a>, the project looks pretty interesting:</p><blockquote><p>Some distinctive features of our SE Android reference implementation in comparison to prior efforts of which we are aware include:</p><ul><li>Per-file security labeling support for yaffs2,</li><li>Filesystem images (yaffs2 and ext4) labeled at build time,</li><li>Kernel permission checks controlling Binder IPC,</li><li>Labeling of service sockets and socket files created by init,</li><li>Labeling of device nodes created by ueventd,</li><li>Flexible, configurable labeling of apps and app data directories,</li><li>Userspace permission checks controlling use of the Zygote socket commands,</li><li>Minimal port of SELinux userspace,</li><li>SELinux support for the Android toolbox,</li><li>Small TE policy written from scratch for Android,</li><li>Confined domains for system services and apps,</li><li>Use of MLS categories to isolate apps.</li></ul></blockquote> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2012/01/selinux-on-android/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fixing the &#8220;Unable to get webmail password&#8221; problem in Atmail</title><link>http://www.coliena.com/blog/2011/03/fixing-the-unable-to-get-webmail-password-problem-in-atmail/</link> <comments>http://www.coliena.com/blog/2011/03/fixing-the-unable-to-get-webmail-password-problem-in-atmail/#comments</comments> <pubDate>Wed, 09 Mar 2011 20:11:18 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[helpdesk]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[linux]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=502</guid> <description><![CDATA[Plesk ships Atmail, but the default installation has a minor problem: when you open your webmail site, all you get is a message box saying &#8220;Unable to get webmail password!&#8221;. This is not caused by the user, who might have entered wrong credentials (in fact, he hasn&#8217;t even seen the webmail page yet, let alone [...]]]></description> <content:encoded><![CDATA[<p>Plesk ships <a
href="http://www.atmail.com">Atmail</a>, but the default installation has a minor problem: when you open your webmail site, all you get is a message box saying &#8220;Unable to get webmail password!&#8221;. This is not caused by the user, who might have entered wrong credentials (in fact, he hasn&#8217;t even seen the webmail page yet, let alone entered his password). It&#8217;s caused by Atmail being unable to connect to its MySQL database.<br
/> The origin of this problem is in <em>/var/www/atmail/libs/Atmail/Config.php</em>, line 4:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/etc/psa-webmail/atmail/.atmail.shadow&quot;</span><span style="color: #009900;">&#41;</span></pre></div></div><p>For some reason, the fopen() call fails, but there are several ways of fixing this. The easiest is to get the database password from <em>.atmail.shadow</em> and hard-code it in Config.php.</p><p><strong>Disclaimer:</strong> don&#8217;t do this if you don&#8217;t know exactly what you are doing, why you are doing it and which possible consequences might result.</p><p>Now, change your <em>/var/www/atmail/libs/Atmail/Config.php</em> like this:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//if (!($fd = fopen(&quot;/etc/psa-webmail/atmail/.atmail.shadow&quot;, &quot;r&quot;))) {</span>
<span style="color: #666666; font-style: italic;">//  echo &quot;&lt;script&gt;alert('Unable to get webmail password!')&lt;/script&gt;&quot;;</span>
<span style="color: #666666; font-style: italic;">//  exit();</span>
<span style="color: #666666; font-style: italic;">//}</span>
<span style="color: #666666; font-style: italic;">//fscanf($fd, &quot;%s&quot;, $buff);</span>
<span style="color: #666666; font-style: italic;">//fclose($fd);</span>
<span style="color: #000088;">$buff</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'MySQL_password'</span><span style="color: #339933;">;</span></pre></div></div><p>Note that you changed an Atmail application file, and it is very likely to be reverted by the next Plesk/Atmail update. <a
href='http://coliena.com/blog/wp-content/uploads/atmail_patch.txt'>This patch</a> will be very helpful in that situation.</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/03/fixing-the-unable-to-get-webmail-password-problem-in-atmail/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Creating custom Linux appliances with SUSE Studio</title><link>http://www.coliena.com/blog/2010/10/suse-studio-custom-linux-appliances/</link> <comments>http://www.coliena.com/blog/2010/10/suse-studio-custom-linux-appliances/#comments</comments> <pubDate>Mon, 04 Oct 2010 20:21:27 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[life out there]]></category> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[appliance]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[opensuse]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=395</guid> <description><![CDATA[I have been playing with SUSE Studio for quite some time, and it never fails to amaze me. In short, it&#8217;s a utility that allows you to build your own SuSE-based Linux: you start with a general selection (openSUSE, SLES, KDE, Gnome, a JeOS , &#8230;), add repositories and packages. Then you add your configuration: [...]]]></description> <content:encoded><![CDATA[<p>I have been playing with <a
href="http://susestudio.com/">SUSE Studio</a> for quite some time, and it never fails to amaze me. In short, it&#8217;s a utility that allows you to build your own SuSE-based Linux: you start with a general selection (openSUSE, SLES, KDE, Gnome, a <a
href="http://en.wikipedia.org/wiki/Jeos">JeOS</a> , &#8230;), add <a
href="http://coliena.com/blog/?attachment_id=410"><img
class="alignright size-full wp-image-410" title="susestudio" src="http://coliena.com/blog/wp-content/uploads/susestudio.png" alt="" width="222" height="222" /></a>repositories and packages. Then you add your configuration: set your locale and keyboard, add users, rig the network settings and the firewall, add custom backgrounds and logos, add license(s) that have to be accepted by the end user, add your own files and folders, add your custom post-built/post-boot/first boot scripts &#8230; and change many more things.<br
/> After that, it&#8217;s time for building: you can create USB images, live CDs (.iso files), XEN guests and VMware / VirtualBox / KVM (.vmdk) appliances. Built time is just a few minutes, and you can either download your appliance or take it for a test drive it right away, on the SUSE Studio servers. For that, you can connect to the web server of your appliance, log in via SSH, or have the desktop displayed in an applet within your web browser.<br
/> One of the most interesting features of SUSE Studio is the ability to keep the changes you make in your test drive. In other words: you don&#8217;t have to stick with the web interface for refining your appliance, but you can apply the more delicate refinements in a live system.</p><p>The <a
href="http://susegallery.com/browse">SUSE Gallery </a> hosts an impressive number of appliances that were made with SUSE Studio. Let me highlight just a few examples:</p><ul><li><a
href="http://susegallery.com/a/V3yqtW/android-developers-desktop-remix">Android Developer&#8217;s Desktop Remix</a> &#8211; an Android development environment, based on openSUSE</li><li><a
href="http://susegallery.com/a/ppX0Yr/browserbox">BrowserBox</a> &#8211; 22 versions of 13 different web browsers (Android Browser, Internet Explorer, Firefox, Chrome, Safari, Lynx, Opera, &#8230;)</li><li><a
href="http://susegallery.com/a/0DX6Wk/ifolder-server">iFolder Server</a> &#8211; run your own <a
href="http://www.ifolder.com/">iFolder</a> file synchronization server</li><li><a
href="http://susegallery.com/a/jMOVxa/chrome-os">Chrome OS</a> &#8211; well, mostly Google Chrome <img
src='http://www.coliena.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2010/10/suse-studio-custom-linux-appliances/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Synchronizing Google Contacts and Google Calendar in KDE 4</title><link>http://www.coliena.com/blog/2010/05/synchronizing-google-contacts-and-google-calendar-in-kde-4/</link> <comments>http://www.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://www.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://www.coliena.com/blog/2010/05/how-to-install-ubuntu-10-04-on-a-netbook-with-full-disk-encryption/</link> <comments>http://www.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  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). Use <em>mount</em> if you are not sure if and/or where your USB drives are mounted to.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://www.coliena.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2010/05/how-to-install-ubuntu-10-04-on-a-netbook-with-full-disk-encryption/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Consuming pipe Inputs in Unix</title><link>http://www.coliena.com/blog/2010/03/consuming-pipe-inputs-in-unix/</link> <comments>http://www.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://www.coliena.com/blog/2010/03/consuming-pipe-inputs-in-unix/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: www.coliena.com @ 2012-02-06 00:01:04 by W3 Total Cache -->
