<?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>Len &#187; linux</title>
	<atom:link href="http://www.len.ro/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.len.ro</link>
	<description>Len&#039;s personal site: work, cooking, cycling, experiences</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:24:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Status RSS plugin for pidgin</title>
		<link>http://www.len.ro/2010/07/status-rss-plugin-for-pidgin/</link>
		<comments>http://www.len.ro/2010/07/status-rss-plugin-for-pidgin/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 12:46:05 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[tinker]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=5131</guid>
		<description><![CDATA[As a pidgin user I am used at not expecting many fancy things but one of the features I&#8217;ve wished for some time is a plugin which updates the status automatically to the last entry in a RSS feed. As an example I&#8217;d like to update the status to the last post on my blog. [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2010/05/ubuntu-lucid-lynx/' rel='bookmark' title='Permanent Link: Ubuntu Lucid Lynx'>Ubuntu Lucid Lynx</a> <small>There was not much I expected from the new ubuntu...</small></li>
<li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2009/09/quick-ttf-fonts-and-cisco-vpn/' rel='bookmark' title='Permanent Link: Quick: ttf fonts and cisco vpn'>Quick: ttf fonts and cisco vpn</a> <small>2 short tricks on ubuntu linux (9.04 Jaunty): Install a...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As a pidgin user I am used at not expecting many fancy things but one of the features I&#8217;ve wished for some time is a plugin which updates the status automatically to the last entry in a RSS feed. As an example I&#8217;d like to update the status to the last post on my blog. So, even if I don&#8217;t like perl too much here is a simple plugin which does just that. It&#8217;s inspirationaly called: Status RSS :)</p>
<h2><span id="more-5131"></span>What does it do?</h2>
<p>The plugin checks from time to time, (at startup or when the action is selected from the menu) the specified RSS feed, parses it and fetches the last entry. It then updates the current status with a message in the form: <em>entry.title entry.link</em> (yahoo format).</p>
<h2>How to install it?</h2>
<ul>
<li>First you need the <a href="http://search.cpan.org/~simonw/XML-Feed-0.43/lib/XML/Feed.pm">XML::Feed package</a> for Perl from CPAN. In ubuntu you can install the package: <em>libxml-feed-perl</em>.</li>
<li>Make sure you have Perl support in pidgin. Check Help-&gt;About for perl:enabled.</li>
<li>Download <a title="Status RSS pidgin plugin" href="http://www.len.ro/hidden/statusrss.zip">the archive</a>. Copy the statusrss.pl to .purple/plugins. Create the plugins folder if it&#8217;s not there already.</li>
<li>Restart pidgin then enable the plugin in Tools-&gt;Plugins menu.</li>
</ul>
<h2>How to use it?</h2>
<ul>
<li>After enabling the plugin configure it by setting the RSS feed url and the refresh timeout. 0 means no refresh.</li>
<li>For manual refresh go to Tools-&gt;Status RSS-&gt;Update Status</li>
</ul>
<h2>Tested with</h2>
<p>Pidgin 2.6 &#8211; 2.7.1 on Ubuntu Lucid Lynx</p>
<h2>License</h2>
<p>This plugin is released under the GNU General Public License (http://www.gnu.org/licenses/gpl.html)</p>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2010/05/ubuntu-lucid-lynx/' rel='bookmark' title='Permanent Link: Ubuntu Lucid Lynx'>Ubuntu Lucid Lynx</a> <small>There was not much I expected from the new ubuntu...</small></li>
<li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2009/09/quick-ttf-fonts-and-cisco-vpn/' rel='bookmark' title='Permanent Link: Quick: ttf fonts and cisco vpn'>Quick: ttf fonts and cisco vpn</a> <small>2 short tricks on ubuntu linux (9.04 Jaunty): Install a...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2010/07/status-rss-plugin-for-pidgin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tethered capture with ubuntu and D450</title>
		<link>http://www.len.ro/2010/07/tethered-capture-with-ubuntu-and-d450/</link>
		<comments>http://www.len.ro/2010/07/tethered-capture-with-ubuntu-and-d450/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 17:14:06 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[tinker]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=5082</guid>
		<description><![CDATA[Shooting a photo and the imediately seeing it on a large monitor is a feature I&#8217;ve always wished. I don&#8217;t say live view on a display but instant copy and display would suffice. And actually, as I found out, it&#8217;s quite easy to achieve on Ubuntu Linux (10.04) with a Canon D450. Required software Make [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2010/05/ubuntu-lucid-lynx/' rel='bookmark' title='Permanent Link: Ubuntu Lucid Lynx'>Ubuntu Lucid Lynx</a> <small>There was not much I expected from the new ubuntu...</small></li>
<li><a href='http://www.len.ro/2009/11/ubuntu-9-10-karmic-koala-netbook/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala netbook'>Ubuntu 9.10 Karmic Koala netbook</a> <small>I&#8217;ve also migrated my Acer Aspire One to the new...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Shooting a photo and the imediately seeing it on a large monitor is a feature I&#8217;ve always wished. I don&#8217;t say live view on a display but instant copy and display would suffice. And actually, as I found out, it&#8217;s quite easy to achieve on Ubuntu Linux (10.04) with a Canon D450. <span id="more-5082"></span></p>
<h2>Required software</h2>
<p>Make sure gphoto2 and geeqie (former gqview) is installed. An apt will do the trick:</p>
<pre>sudo apt-get install gphoto2 geeqie</pre>
<h2>Scripts</h2>
<p>I&#8217;ve written 2 scripts. The first one does the tethered capture and the second does the display of the image using geeqie</p>
<p><strong>capture.sh</strong>:</p>
<pre>#!/bin/bash
#capture.sh script

#the capture-tethered only works if a capture-image has been issued first
#so capture an image first
gphoto2 --capture-image 

#do the actual capture-tethered
gphoto2 --capture-tethered --hook-script $(dirname $0)/capture1.sh</pre>
<p><strong>capture1.sh</strong>:</p>
<pre>#!/bin/bash
#capture1.sh script

if [ "x$ACTION" = "xdownload" ]; then
 geeqie --remote $ARGUMENT &amp;
fi</pre>
<p>You just need to create these 2 files in a folder of your choice and then make them executable</p>
<pre>chmod u+x capture.sh capture1.sh</pre>
<h2>Usage</h2>
<ol>
<li>Plug the camera in</li>
<li>It will be detected and mounted automatically by ubuntu. Unmount it to allow gphoto2 to lock it.</li>
<li>start the script capture.sh It will save files in the form capture0001.jpg in the working directory each time you shoot a photo then display them in geeqie. Note: the photos will be downloaded and deleted from the camera.</li>
<li>press Ctrl+C to stop the process</li>
</ol>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2010/05/ubuntu-lucid-lynx/' rel='bookmark' title='Permanent Link: Ubuntu Lucid Lynx'>Ubuntu Lucid Lynx</a> <small>There was not much I expected from the new ubuntu...</small></li>
<li><a href='http://www.len.ro/2009/11/ubuntu-9-10-karmic-koala-netbook/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala netbook'>Ubuntu 9.10 Karmic Koala netbook</a> <small>I&#8217;ve also migrated my Acer Aspire One to the new...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2010/07/tethered-capture-with-ubuntu-and-d450/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmatically get the MAC address in C</title>
		<link>http://www.len.ro/2010/06/programmatically-get-the-mac-address-in-c/</link>
		<comments>http://www.len.ro/2010/06/programmatically-get-the-mac-address-in-c/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 06:51:17 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[windoze]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=4996</guid>
		<description><![CDATA[This is a small example on how you can get the MAC address in C both in Linux and Windows. The example searches in fact the MAC address corresponding to a given IP address and returns it. /* * mac.cpp *  Created on: May 25, 2010 *      Author: len */ #ifdef WIN32 #include &#60;stdio.h&#62; #include [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2010/04/tomcat-query-parameters-and-encodings/' rel='bookmark' title='Permanent Link: Tomcat query parameters and encodings'>Tomcat query parameters and encodings</a> <small>Did you ever wondered which from which encoding the query...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This is a small example on how you can get the MAC address in C both in Linux and Windows. The example searches in fact the MAC address corresponding to a given IP address and returns it.</p>
<pre>/*
 * mac.cpp
 *  Created on: May 25, 2010
 *      Author: len
 */

#ifdef WIN32

#include &lt;stdio.h&gt;
#include &lt;Windows.h&gt;
#include &lt;Iphlpapi.h&gt;
#include &lt;Assert.h&gt;
#pragma comment(lib, "iphlpapi.lib")

/**
 * @return the mac address of the interface with the given ip
 */
char* getMAC(const char *ip){
 PIP_ADAPTER_INFO AdapterInfo;
 DWORD dwBufLen = sizeof(AdapterInfo);
 char *mac_addr = (char*)malloc(17);

 AdapterInfo = (IP_ADAPTER_INFO *) malloc(sizeof(IP_ADAPTER_INFO));
 if (AdapterInfo == NULL) {
 printf("Error allocating memory needed to call GetAdaptersinfo\n");
 return NULL;
 }

 // Make an initial call to GetAdaptersInfo to get the necessary size into the dwBufLen variable
 if (GetAdaptersInfo(AdapterInfo, &amp;dwBufLen) == ERROR_BUFFER_OVERFLOW) {
 FREE(AdapterInfo);
 AdapterInfo = (IP_ADAPTER_INFO *) malloc(dwBufLen);
 if (AdapterInfo == NULL) {
 printf("Error allocating memory needed to call GetAdaptersinfo\n");
 return NULL;
 }
 }

 if (GetAdaptersInfo(AdapterInfo, &amp;dwBufLen) == NO_ERROR) {
 PIP_ADAPTER_INFO pAdapterInfo = AdapterInfo;// Contains pointer to current adapter info
 do {
 sprintf(mac_addr, "%02X:%02X:%02X:%02X:%02X:%02X",
 pAdapterInfo-&gt;Address[0], pAdapterInfo-&gt;Address[1],
 pAdapterInfo-&gt;Address[2], pAdapterInfo-&gt;Address[3],
 pAdapterInfo-&gt;Address[4], pAdapterInfo-&gt;Address[5]);
 printf("Address: %s, mac: %s", pAdapterInfo-&gt;IpAddressList.IpAddress.String, mac_addr);
 if(strcmp(ip, pAdapterInfo-&gt;IpAddressList.IpAddress.String) == 0){
 printf(" matches\n");
 free(AdapterInfo);
 return mac_addr;
 }
 printf("\n");
 pAdapterInfo = pAdapterInfo-&gt;Next;        
 }while(pAdapterInfo);                        
 }
 free(AdapterInfo);
 return NULL;
}
#endif

#ifdef linux
#include &lt;arpa/inet.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netdb.h&gt;
#include &lt;ifaddrs.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;string.h&gt;

/**
 * @return the mac address of the interface with the given ip
 */
char *getMAC(const char *ip){
 struct ifaddrs *ifaddr, *ifa;
 int family, s;
 char host[NI_MAXHOST];
 struct sockaddr *sdl;
 unsigned char *ptr;
 char *ifa_name;
 char *mac_addr = (char*)calloc(sizeof(char), 18);

 if (getifaddrs(&amp;ifaddr) == -1) {
 perror("getifaddrs");
 return NULL;
 }

 //iterate to find interface name for given server_ip
 for (ifa = ifaddr; ifa != NULL; ifa = ifa-&gt;ifa_next) {
 if (ifa-&gt;ifa_addr != NULL){
 family = ifa-&gt;ifa_addr-&gt;sa_family;
 if(family == AF_INET){
 s = getnameinfo(ifa-&gt;ifa_addr, (family == AF_INET)?sizeof(struct sockaddr_in):sizeof(struct sockaddr_in6),
 host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
 if (s != 0) {
 printf("getnameinfo() failed: %s\n", gai_strerror(s));
 return NULL;
 }
 printf("address: %s\n", host);
 if(strcmp(host, ip) == 0){
 ifa_name = ifa-&gt;ifa_name;
 printf("matching interface name: %s\n", ifa_name);
 }
 }
 }
 }

 //iterate to find corresponding ethernet address
 for (ifa = ifaddr; ifa != NULL; ifa = ifa-&gt;ifa_next) {
 family = ifa-&gt;ifa_addr-&gt;sa_family;
 if(family == PF_PACKET &amp;&amp; strcmp(ifa_name, ifa-&gt;ifa_name) == 0){
 sdl = (struct sockaddr *)(ifa-&gt;ifa_addr);
 ptr = (unsigned char *)sdl-&gt;sa_data;
 ptr += 10;
 sprintf(mac_addr, "%02x:%02x:%02x:%02x:%02x:%02x", *ptr, *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), *(ptr+5));
 printf("found mac address: %s\n", mac_addr);
 break;
 }
 }
 freeifaddrs(ifaddr);
 return mac_addr;
}
#endif

int main(int argc, char *argv[]){
 char *mac = getMAC(argv[1]);
 if(mac != NULL){
 printf("mac: %s\n", mac);
 }
 return 0;
}
</pre>
<p>This example mixes various informations found on the net. The windows version is based on <a href="http://www.codeguru.com/cpp/i-n/network/networkinformation/article.php/c5451/Three-ways-to-get-your-MAC-address.htm">this example</a>. In order to compile this example under windows you need to disable the precompiled headers (tested in VC express 2008). The linux version just iterates interfaces and matches the name of the PF_PACKET (ethernet) with AF_INET (TCP) in order to find the mac of a given ip.</p>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2010/04/tomcat-query-parameters-and-encodings/' rel='bookmark' title='Permanent Link: Tomcat query parameters and encodings'>Tomcat query parameters and encodings</a> <small>Did you ever wondered which from which encoding the query...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2010/06/programmatically-get-the-mac-address-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Holux M-241 GPS</title>
		<link>http://www.len.ro/2010/05/holux-m-241-gps/</link>
		<comments>http://www.len.ro/2010/05/holux-m-241-gps/#comments</comments>
		<pubDate>Mon, 31 May 2010 13:11:23 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tinker]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=4990</guid>
		<description><![CDATA[Read track via USB gpsbabel -t -w  -i m241 -f /dev/ttyUSB0 -o gpx -F test.gpx Read track via Bluetooth Find mac: hcitool scan Scanning ... 00:1B:C1:05:XX:XX    HOLUX_M-241 Bind to a serial port in /etc/bluetooth/rfcomm.conf rfcomm4 { bind yes; device 00:1B:C1:05:XX:XX; channel 1; comment "Serial Port"; } Connect the serial port: rfcomm connect 4 read track: [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/09/the-geeks-alphabet/' rel='bookmark' title='Permanent Link: The geek&#8217;s alphabet'>The geek&#8217;s alphabet</a> <small>The geek&#8217;s alphabet: a, b, c ls -a gpsd -b...</small></li>
<li><a href='http://www.len.ro/2009/09/python-uno-openoffice-automatization/' rel='bookmark' title='Permanent Link: Python uno openoffice automatization'>Python uno openoffice automatization</a> <small>This is a very short example I managed to do...</small></li>
<li><a href='http://www.len.ro/2010/07/python-xml-namespace-parsing-with-libxml2/' rel='bookmark' title='Permanent Link: Python xml namespace parsing with libxml2'>Python xml namespace parsing with libxml2</a> <small>The goal of this tinkering was simple: to parse a...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Read track via USB</h2>
<pre>gpsbabel -t -w  -i m241 -f /dev/ttyUSB0 -o gpx -F test.gpx
</pre>
<p><span id="more-4990"></span></p>
<h2>Read track via Bluetooth</h2>
<p>Find mac:</p>
<pre>hcitool scan
Scanning ...
 00:1B:C1:05:XX:XX    HOLUX_M-241
</pre>
<p>Bind to a serial port in /etc/bluetooth/rfcomm.conf</p>
<pre>rfcomm4 {
 bind yes;
 device 00:1B:C1:05:XX:XX;
 channel 1;
 comment "Serial Port";
}</pre>
<p>Connect the serial port:</p>
<pre>rfcomm connect 4
</pre>
<p>read track:</p>
<pre>gpsbabel -t -w  -i m241 -f /dev/rfcomm4 -o gpx -F test.gpx</pre>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/09/the-geeks-alphabet/' rel='bookmark' title='Permanent Link: The geek&#8217;s alphabet'>The geek&#8217;s alphabet</a> <small>The geek&#8217;s alphabet: a, b, c ls -a gpsd -b...</small></li>
<li><a href='http://www.len.ro/2009/09/python-uno-openoffice-automatization/' rel='bookmark' title='Permanent Link: Python uno openoffice automatization'>Python uno openoffice automatization</a> <small>This is a very short example I managed to do...</small></li>
<li><a href='http://www.len.ro/2010/07/python-xml-namespace-parsing-with-libxml2/' rel='bookmark' title='Permanent Link: Python xml namespace parsing with libxml2'>Python xml namespace parsing with libxml2</a> <small>The goal of this tinkering was simple: to parse a...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2010/05/holux-m-241-gps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Lucid Lynx</title>
		<link>http://www.len.ro/2010/05/ubuntu-lucid-lynx/</link>
		<comments>http://www.len.ro/2010/05/ubuntu-lucid-lynx/#comments</comments>
		<pubDate>Sat, 08 May 2010 06:23:26 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tinker]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=4924</guid>
		<description><![CDATA[There was not much I expected from the new ubuntu Lucid Lynx as I was happy enough with the existing version already. But I a good tradition and because I woke up at 8:30 this Saturday I decided to go ahead and install it on my Dell D820. The install The install went smoothly, everything [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2009/11/changing-dates-in-thunderbird/' rel='bookmark' title='Permanent Link: Changing dates format in Thunderbird'>Changing dates format in Thunderbird</a> <small>Since my migration to thunderbird I did not had many...</small></li>
<li><a href='http://www.len.ro/2009/10/evolution-to-thunderbird-migration/' rel='bookmark' title='Permanent Link: Evolution to Thunderbird migration'>Evolution to Thunderbird migration</a> <small>I have been using Evolution since more than 7 years...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There was not much I expected from the new ubuntu Lucid Lynx as I was happy enough with the existing version already. But I a good tradition and because I woke up at 8:30 this Saturday I decided to go ahead and install it on my Dell D820.</p>
<h3>The install</h3>
<p>The install went smoothly, everything was detected, installed the upgrades, the nvidia drivers and some day to day packages: mozilla-thunderbird, pidgin, emacs.</p>
<p><span id="more-4924"></span></p>
<h3>Post install, migrate data</h3>
<p>As usual the first step was to set a root password:</p>
<pre>sudo passwd</pre>
<p>Then I started to migrate data:</p>
<pre>#tomboy notes
cp -r old/len/.config/tomboy/* ~/.config/tomboy
cp -r old/len/.local/share/tomboy/* ~/.local/share/tomboy
(see: http://live.gnome.org/Tomboy/Directories)
#gaim/pidgin
cp -r old/len/.purple ~/
#mozilla
cp -r old/len/.mozilla ~/
#mozilla-thunderbird
cp -r old/len/.mozilla-thunderbird ~/
#ssh keys
cp -r old/len/.ssh ~/
#skype
cp -r old/len/.Skype ~/
#hamster (time-tracker applet)
cp -r old/len/.gnome2/hamster-applet/ .gnome2</pre>
<p>I also restored my .bash_profiles files for each account and added a <em>HISTSIZE=10000</em> line in <em>/etc/profile</em> to insure enough history buffer for  terminal commands. <em>Update:</em> in lucid you have to change the /etc/skel/.bashrc and the .bashrc of each user so the modification in /etc/profile was not taken into account.</p>
<h3>Media, other packages</h3>
<p>After adding the canonical &amp; medibuntu package sources I started installing some needed software:</p>
<ul>
<li>historical reasons: emacs, gqview</li>
<li>gps packages (since I am preparing for <a href="http://www.len.ro/2008/03/trasee/">bicycle trip</a> tomorrow):  qlandkarte, gpsbabel</li>
<li>work needed: skype (no longer in repositories, downloaded from skype.com), acroread (even if evince is much faster for what I need), openvpn, sun-java6-jdk, jhead, exiftags, cvs, tightvncserver, x11vnc, xtightvncviewer</li>
<li>networking: traceroute meld lsof iptraf nload openvpn ssh wireshark</li>
<li>graphics: gimp (not installed by default in Lucid)</li>
<li>removed evolution and empathy</li>
</ul>
<p>I&#8217;ve tested skype, sound play and recording worked fine.</p>
<h3>Firefox plugins</h3>
<p>Since I do some flex development lately I need some degree of control  for my flash plugin so instead of installing the flashplugin-nonfree  package I made the installation by hand:</p>
<pre>cd /usr/lib/firefox-3.0.3/plugins
ln -s /work/Adobe_Flex_Builder_Linux/Player/linux/install_flash_player_9_linux/libflashplayer.so
ln -s /opt/jdk1.5.0_11/jre/plugin/i386/ns7/libjavaplugin_oji.so</pre>
<h3>Some conclusion</h3>
<p>As far as the installation is concerned everything went very fast and  I had a working system in under 2h (including writting this article :) The only thing I did not liked was that the indicator applet <a href="https://bugs.launchpad.net/indicator-applet/+bug/410254">does not work vertically</a>. As a long time windowmaker user I prefer a vertical, right side panel with icons but the indicator applet does not know how to handle this. Lost some time with this and did not arrived to the desired result. All in all, not much to say, a new ubuntu version. The only improvement I noticed was a much faster boot. Let&#8217;s see in a week time.</p>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2009/11/changing-dates-in-thunderbird/' rel='bookmark' title='Permanent Link: Changing dates format in Thunderbird'>Changing dates format in Thunderbird</a> <small>Since my migration to thunderbird I did not had many...</small></li>
<li><a href='http://www.len.ro/2009/10/evolution-to-thunderbird-migration/' rel='bookmark' title='Permanent Link: Evolution to Thunderbird migration'>Evolution to Thunderbird migration</a> <small>I have been using Evolution since more than 7 years...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2010/05/ubuntu-lucid-lynx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux encrypted file(system)</title>
		<link>http://www.len.ro/2010/01/linux-encrypted-filesystem/</link>
		<comments>http://www.len.ro/2010/01/linux-encrypted-filesystem/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 07:51:28 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tinker]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=4672</guid>
		<description><![CDATA[Searching for a way to encrypt your files or filesystem on Linux can be an overwhelming choice. At a simple search you find different terms and solutions such as: encfs, dm-crypt, truecrypt, loopback crypt, aespipe, LUKS, etc. The answer is obviously historical. There are a lot of solutions some of them deprecated. I remember a [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/07/navit-gps-on-a-acer-aspire-one/' rel='bookmark' title='Permanent Link: Navit GPS on a Acer Aspire One'>Navit GPS on a Acer Aspire One</a> <small>This is a small experiment to use my cycling gps...</small></li>
<li><a href='http://www.len.ro/2009/09/quick-ttf-fonts-and-cisco-vpn/' rel='bookmark' title='Permanent Link: Quick: ttf fonts and cisco vpn'>Quick: ttf fonts and cisco vpn</a> <small>2 short tricks on ubuntu linux (9.04 Jaunty): Install a...</small></li>
<li><a href='http://www.len.ro/2009/09/sending-a-fax-in-ubuntu/' rel='bookmark' title='Permanent Link: Sending a fax in ubuntu'>Sending a fax in ubuntu</a> <small>Conexant fax-modem configuration In the process of sending a fax...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Searching for a way to encrypt your files or filesystem on Linux can be an overwhelming choice. At a simple search you find different terms and solutions such as: encfs, dm-crypt, truecrypt, loopback crypt, aespipe, LUKS, etc. The answer is obviously historical. There are a lot of solutions some of them deprecated. I remember a few years ago I solved a similar problem using a tool (can&#8217;t remember which) which I was unable to find 2 years later thus remaining with a large file and lost data. Here is a method to encrypt a filesystem or file using <a href="http://clemens.endorphin.org/cryptography">LUKS</a>.<span id="more-4672"></span></p>
<p>0. install packages</p>
<pre>apt-get install cryptsetup</pre>
<p>1. create a file (it will not be resizable)</p>
<pre>sudo dd if=/dev/zero of=/tmp/encfs.dsk bs=1M count=1000</pre>
<p>2. create a device from file</p>
<pre>losetup /dev/loop0 /tmp/encfs.dsk</pre>
<p>[yes, I could have encrypted the file using the -e option, eg. cryptoloop as I did in the past but this is not the point of the example]</p>
<p>3. if you are using a filesystem just skip above steps and replace /dev/loop0 with you block device (/dev/sdb1 for example).</p>
<p>4. load modules</p>
<pre>modprobe dm-crypt
modprobe sha256
modprobe aes</pre>
<p>5. initialize device (256 bit aes with sha256 padding)</p>
<pre>cryptsetup --verify-passphrase luksFormat /dev/loop0 -c aes -s 256 -h sha256</pre>
<p>6. create the mapped device</p>
<pre>cryptsetup luksOpen /dev/loop0 encdisk</pre>
<p>this created a /dev/mapper/encdisk device which can be used as a normal disk (format, etc.)</p>
<p>7. create the filesystem</p>
<pre>mkfs -t ext3  /dev/mapper/encdisk</pre>
<p>8. mount the filesystem</p>
<pre>mkdir -p /media/encdisk
mount /dev/mapper/encdisk /media/encdisk</pre>
<p>9. the filesystem is ready to use in /media/encdisk</p>
<p>10. unmount and detach</p>
<pre>umount /media/encdisk
cryptsetup luksClose encdisk
losetup -d /dev/loop0</pre>
<p>11. remount again</p>
<pre>losetup /dev/loop0 /tmp/encfs.dsk
cryptsetup luksOpen /dev/loop0 encdisk
mount /dev/mapper/encdisk /media/encdisk</pre>
<p>With these 11 steps you can have an encrypted file or usb-stick to put all your precious data inside :)</p>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/07/navit-gps-on-a-acer-aspire-one/' rel='bookmark' title='Permanent Link: Navit GPS on a Acer Aspire One'>Navit GPS on a Acer Aspire One</a> <small>This is a small experiment to use my cycling gps...</small></li>
<li><a href='http://www.len.ro/2009/09/quick-ttf-fonts-and-cisco-vpn/' rel='bookmark' title='Permanent Link: Quick: ttf fonts and cisco vpn'>Quick: ttf fonts and cisco vpn</a> <small>2 short tricks on ubuntu linux (9.04 Jaunty): Install a...</small></li>
<li><a href='http://www.len.ro/2009/09/sending-a-fax-in-ubuntu/' rel='bookmark' title='Permanent Link: Sending a fax in ubuntu'>Sending a fax in ubuntu</a> <small>Conexant fax-modem configuration In the process of sending a fax...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2010/01/linux-encrypted-filesystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic various tricks</title>
		<link>http://www.len.ro/2009/11/karmic-various-tricks/</link>
		<comments>http://www.len.ro/2009/11/karmic-various-tricks/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 12:30:51 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=4423</guid>
		<description><![CDATA[Logout messages If you are opening a terminal to a different server or do a su in a terminal then on logout you will be required to enter your password in order to confirm the logout action. Since the polkit-gnome-authorization does not work with the new polkit version which ships with ubuntu and the polkit-auth [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/11/ubuntu-9-10-karmic-koala-netbook/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala netbook'>Ubuntu 9.10 Karmic Koala netbook</a> <small>I&#8217;ve also migrated my Acer Aspire One to the new...</small></li>
<li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2009/08/radio-button-renderer-in-a-datagrid/' rel='bookmark' title='Permanent Link: Radio button renderer in a datagrid'>Radio button renderer in a datagrid</a> <small>Using a radio button as a data grid cell renderer...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Logout messages</h2>
<p>If you are opening a terminal to a different server or do a su in a terminal then on logout you will be required to enter your password in order to confirm the logout action. Since the polkit-gnome-authorization does not work with the new polkit version which ships with ubuntu and the polkit-auth command does not seems to work either I&#8217;ve found after some research that the solution resides in editing the <em>/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy</em> file as follows:<span id="more-4423"></span></p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"&gt;

&lt;policyconfig&gt;

 &lt;action id="org.freedesktop.consolekit.system.stop"&gt;
 &lt;description&gt;Stop the system&lt;/description&gt;
 &lt;message&gt;System policy prevents stopping the system&lt;/message&gt;
 &lt;defaults&gt;
 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
 &lt;allow_active&gt;yes&lt;/allow_active&gt;
 &lt;/defaults&gt;
 &lt;/action&gt;

 &lt;action id="org.freedesktop.consolekit.system.stop-multiple-users"&gt;
 &lt;description&gt;Stop the system when multiple users are logged in&lt;/description&gt;
 &lt;message&gt;System policy prevents stopping the system when other users are logged in&lt;/message&gt;
 &lt;defaults&gt;
 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
<strong> <span style="color: #ff0000;">&lt;!--&lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;--&gt;
 &lt;allow_active&gt;yes&lt;/allow_active&gt;</span></strong>
 &lt;/defaults&gt;
 &lt;/action&gt;

 &lt;action id="org.freedesktop.consolekit.system.restart"&gt;
 &lt;description&gt;Restart the system&lt;/description&gt;
 &lt;message&gt;System policy prevents restarting the system&lt;/message&gt;
 &lt;defaults&gt;
 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
 &lt;allow_active&gt;yes&lt;/allow_active&gt;
 &lt;/defaults&gt;
 &lt;/action&gt;

 &lt;action id="org.freedesktop.consolekit.system.restart-multiple-users"&gt;
 &lt;description&gt;Restart the system when multiple users are logged in&lt;/description&gt;
 &lt;message&gt;System policy prevents restarting the system when other users are logged in&lt;/message&gt;
 &lt;defaults&gt;
 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
<span style="color: #ff0000;"><strong> &lt;!--&lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;--&gt;
 &lt;allow_active&gt;yes&lt;/allow_active&gt;</strong></span>
 &lt;/defaults&gt;
 &lt;/action&gt;

&lt;/policyconfig&gt;</pre>
<p>This allows the current user to perform actions related to the following policies:</p>
<ul>
<li>org.freedesktop.consolekit.system.restart-multiple-users</li>
<li>org.freedesktop.consolekit.system.stop-multiple-user</li>
</ul>
<h2>Remove osd style popups</h2>
<p>These popups which inform from connections success to battery status to pidgin messages can be a little annoying but they are quite easy to remove:</p>
<pre>cd /usr/share/dbus-1/services/
sudo mv org.freedesktop.Notifications.service org.freedesktop.Notifications.service.disabled</pre>
<p>You can revert the action to get the default behavior.</p>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/11/ubuntu-9-10-karmic-koala-netbook/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala netbook'>Ubuntu 9.10 Karmic Koala netbook</a> <small>I&#8217;ve also migrated my Acer Aspire One to the new...</small></li>
<li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2009/08/radio-button-renderer-in-a-datagrid/' rel='bookmark' title='Permanent Link: Radio button renderer in a datagrid'>Radio button renderer in a datagrid</a> <small>Using a radio button as a data grid cell renderer...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2009/11/karmic-various-tricks/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Sony Ericsson C510</title>
		<link>http://www.len.ro/2009/11/sony-ericsson-c510/</link>
		<comments>http://www.len.ro/2009/11/sony-ericsson-c510/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 19:46:05 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mobile phone]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=4410</guid>
		<description><![CDATA[Apparently a cup of tea more bad than good in preventing the AH1N1 flu for my old phone which completely died (drowned) as of the procedure. In conclusion I had to choose fast and I did choose the best of the worst which was the single phone with no opening parts, relatively squared buttons and [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2010/07/tethered-capture-with-ubuntu-and-d450/' rel='bookmark' title='Permanent Link: Tethered capture with ubuntu and D450'>Tethered capture with ubuntu and D450</a> <small>Shooting a photo and the imediately seeing it on a...</small></li>
<li><a href='http://www.len.ro/2009/11/karmic-various-tricks/' rel='bookmark' title='Permanent Link: Karmic various tricks'>Karmic various tricks</a> <small>Logout messages If you are opening a terminal to a...</small></li>
<li><a href='http://www.len.ro/2010/01/linux-encrypted-filesystem/' rel='bookmark' title='Permanent Link: Linux encrypted file(system)'>Linux encrypted file(system)</a> <small>Searching for a way to encrypt your files or filesystem...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Apparently a cup of tea more bad than good in preventing the AH1N1 flu for <a href="http://www.len.ro/2008/02/k550i-sync/">my old phone</a> which completely died (drowned) as of the procedure. In conclusion I had to choose fast and I did choose the best of the worst which was the single phone with no opening parts, relatively squared buttons and almost free for my operator. Since I see the phone as a basic tool which does not need much else than the ability to make a call this is most reasonable. I will probably break it, scratch it, drop it in dirt or on the stairs so I really don&#8217;t need another expensive gadget to take care of. The result was the C510 which I hopped to work in Linux (Ubuntu 9.10 Karmik Koala) as good as it&#8217;s predecessor. Here is a short check list:<span id="more-4410"></span></p>
<ul>
<li>bluetooth &#8211; worked instantly, I was able to transfer files, it even works as a remove control for my desktop which is quite cool</li>
<li>mass storage &#8211; works but I will probably never use it since it switches the phone functions off and I see no point in buying the proprietary M2 card (why not using micro SD which is more spread and I already have in my gps, camera and usb stick?)</li>
<li>usb cable &#8211; also worked</li>
<li>syncronization &#8211; BUMP!</li>
</ul>
<p>I was keeping a backup copy of the contacts in my old phone using <a href="http://wammu.eu/">wammu</a> (since multisync seems deprecated and I&#8217;ve tried the new version using opensync with my old phone with not much success) which is a very basic .vcf file with all contact information. I thought it will be equally simple to restore it. It was not. Apparently there are some problems with the protocol. Obex does not work with gammy (wammu) and using the AT protocol does not manage to sync the entries. Not even editing the entries on the phone does not work properly as the entries are left void in the phone and thus are duplicated.</p>
<p>I spent about 2-3 hours doing various changes in the .vcf files, working with the windows version of the backup which is in fact an archive with a .vcf file instead and managed finally to import the entries in a very complicated way by creating a backup in windows, editing the backup in linux and replacing the contacts.vcf in the archive with the backup I had. I then edited the .vcf to remove tags not understood by the pc suite and finally restored this modified file on the phone. I was pretty sad to see all this.</p>
<ul>
<li>backup &#8211; this works in wammu so I will probably be able to backup the contacts for my next phone :)</li>
</ul>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2010/07/tethered-capture-with-ubuntu-and-d450/' rel='bookmark' title='Permanent Link: Tethered capture with ubuntu and D450'>Tethered capture with ubuntu and D450</a> <small>Shooting a photo and the imediately seeing it on a...</small></li>
<li><a href='http://www.len.ro/2009/11/karmic-various-tricks/' rel='bookmark' title='Permanent Link: Karmic various tricks'>Karmic various tricks</a> <small>Logout messages If you are opening a terminal to a...</small></li>
<li><a href='http://www.len.ro/2010/01/linux-encrypted-filesystem/' rel='bookmark' title='Permanent Link: Linux encrypted file(system)'>Linux encrypted file(system)</a> <small>Searching for a way to encrypt your files or filesystem...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2009/11/sony-ericsson-c510/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing dates format in Thunderbird</title>
		<link>http://www.len.ro/2009/11/changing-dates-in-thunderbird/</link>
		<comments>http://www.len.ro/2009/11/changing-dates-in-thunderbird/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 20:30:28 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tinker]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=4377</guid>
		<description><![CDATA[Since my migration to thunderbird I did not had many things to complain but one of the remaining things was the date format. I am expecting to have something like DD/MM/YY or at least DD MMM YYYY. I did not imagined this could be something else than configuration somewhere. Or not&#8230; After some digging I [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/10/evolution-to-thunderbird-migration/' rel='bookmark' title='Permanent Link: Evolution to Thunderbird migration'>Evolution to Thunderbird migration</a> <small>I have been using Evolution since more than 7 years...</small></li>
<li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2010/05/ubuntu-lucid-lynx/' rel='bookmark' title='Permanent Link: Ubuntu Lucid Lynx'>Ubuntu Lucid Lynx</a> <small>There was not much I expected from the new ubuntu...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Since my migration to <a href="http://www.len.ro/2009/10/evolution-to-thunderbird-migration/">thunderbird</a> I did not had many things to complain but one of the remaining things was the date format. I am expecting to have something like DD/MM/YY or at least DD MMM YYYY. I did not imagined this could be something else than configuration somewhere. Or not&#8230;</p>
<p>After some digging I found out there is no way to configure the date string but the only way to change the date is to change the locale the application is using. The first step was to see the installed locales:</p>
<pre>locale -a
C
en_AG
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX</pre>
<p>then to check each locale date format, for example:</p>
<pre>len@black:~$ LC_ALL=en_DK.utf8 locale -k d_fmt t_fmt
d_fmt="%Y-%m-%d"
t_fmt="%T"
len@black:~$ LC_ALL=en_GB.utf8 locale -k d_fmt t_fmt
d_fmt="%d/%m/%y"
t_fmt="%T"</pre>
<p>the remaining thing was to convince thunderbird to use this locale. I&#8217;ve done this by creating /usr/bin/mythunderbird script:</p>
<pre>LC_ALL=en_GB.utf8 $(dirname $0)/thunderbird</pre>
<p>now the dates are much better:</p>
<div class="wp-caption alignnone" style="width: 561px"><img title="Thunderbird dates config" src="http://www.len.ro/photo/daily/work/thunderbird.png" alt="Thunderbird dates config" width="551" height="426" /><p class="wp-caption-text">Thunderbird dates config</p></div>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/10/evolution-to-thunderbird-migration/' rel='bookmark' title='Permanent Link: Evolution to Thunderbird migration'>Evolution to Thunderbird migration</a> <small>I have been using Evolution since more than 7 years...</small></li>
<li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2010/05/ubuntu-lucid-lynx/' rel='bookmark' title='Permanent Link: Ubuntu Lucid Lynx'>Ubuntu Lucid Lynx</a> <small>There was not much I expected from the new ubuntu...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2009/11/changing-dates-in-thunderbird/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10 Karmic Koala netbook</title>
		<link>http://www.len.ro/2009/11/ubuntu-9-10-karmic-koala-netbook/</link>
		<comments>http://www.len.ro/2009/11/ubuntu-9-10-karmic-koala-netbook/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 13:18:54 +0000</pubDate>
		<dc:creator>len</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[acer aspire one]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tinker]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.len.ro/?p=4331</guid>
		<description><![CDATA[I&#8217;ve also migrated my Acer Aspire One to the new Karmic Koala easy as before using the recommended installation mechanism. One of the things I missed was the SSD specific configuration. This netbook I am using has a very slow SSD drive and I&#8217;ve experienced some slowdowns due to the time spent reading and writing [...]

<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2009/11/karmic-various-tricks/' rel='bookmark' title='Permanent Link: Karmic various tricks'>Karmic various tricks</a> <small>Logout messages If you are opening a terminal to a...</small></li>
<li><a href='http://www.len.ro/2010/05/ubuntu-lucid-lynx/' rel='bookmark' title='Permanent Link: Ubuntu Lucid Lynx'>Ubuntu Lucid Lynx</a> <small>There was not much I expected from the new ubuntu...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve also migrated my Acer Aspire One to the <a href="http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/">new Karmic Koala</a> easy as before using the recommended installation mechanism. One of the things I missed was the SSD specific configuration. This netbook I am using has a very slow SSD drive and I&#8217;ve experienced some slowdowns due to the time spent reading and writing the disk. I also wanted to reduce the SSD wear. Here are some steps I have took:<span id="more-4331"></span></p>
<p>1. Improve Firefox speed by disabling disk cache. Strange enough the disk cache seems to be slower than my internet connection. I just had to go to <strong>about:config</strong> and set the <strong>browser.cache.disk.enable</strong> preference to <strong>false</strong>.</p>
<p>2. Another improvement was to remove logging on the SSD. For this purpose the /var/log and /tmp have to be mounted as temporary filesystems. I am not worried about losing all the logs upon reboot. This is not a server machine. For that just edit /etc/fstab and add the following lines:</p>
<pre>tmpfs      /var/log        tmpfs        defaults           0    0
tmpfs      /tmp            tmpfs        defaults           0    0
tmpfs      /var/tmp        tmpfs        defaults           0    0</pre>
<p>Don&#8217;t forget the trailing line at the end. Note that some programs might complain about the lack of folders so they have to be created. See <a href="http://www.solaris-cookbook.com/?p=75">this blog entry</a> about the dirs to be created by adding them to /etc/rc.local. Note that I did not modified the /etc/init.d/syslogd script as described but just created the dirs and everything worked perfectly.</p>
<p>3. Remove programs from memory. I did not quite felt a slowdown but just for fun I did a ps -ef and tried to remove the applications which where not needed. One place to find some of them was in System -&gt; Startup Applications. Nevertheless nothing seemed as important as the ssh server which I installed right after the system install.</p>
<p>4. Since I use my netbook to read I usually was installing acroread by checking the Canonical apt source but I&#8217;ve noticed that evince (aka Document viewer) is much faster so this time I did not even installed acroread.</p>
<p>In conclusion I find this new release quite nice. There is no major change and even the bug which prevented the second flash disk to be seen at runtime exists. As in the previous release I have to reboot after installing the second flash memory card in order to detect it.</p>


<h3>Related posts:</h3><ol><li><a href='http://www.len.ro/2009/10/ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala'>Ubuntu 9.10 Karmic Koala</a> <small>This ubuntu installation was the bit of fun expected after...</small></li>
<li><a href='http://www.len.ro/2009/11/karmic-various-tricks/' rel='bookmark' title='Permanent Link: Karmic various tricks'>Karmic various tricks</a> <small>Logout messages If you are opening a terminal to a...</small></li>
<li><a href='http://www.len.ro/2010/05/ubuntu-lucid-lynx/' rel='bookmark' title='Permanent Link: Ubuntu Lucid Lynx'>Ubuntu Lucid Lynx</a> <small>There was not much I expected from the new ubuntu...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.len.ro/2009/11/ubuntu-9-10-karmic-koala-netbook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
