<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>blog.crox.net</title>
    <link>http://blog.crox.net/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.1.3 - http://www.s9y.org/</generator>
    <pubDate>Mon, 09 Jun 2008 11:23:26 GMT</pubDate>

    <image>
        <url>http://blog.crox.net/templates/crox/img/s9y_banner_small.png</url>
        <title>RSS: blog.crox.net - </title>
        <link>http://blog.crox.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Using the HL-340 USB-serial adapter with Linux (1a86:7523, driver ch341)</title>
    <link>http://blog.crox.net/archives/34-Using-the-HL-340-USB-serial-adapter-with-Linux-1a867523,-driver-ch341.html</link>
    
    <comments>http://blog.crox.net/archives/34-Using-the-HL-340-USB-serial-adapter-with-Linux-1a867523,-driver-ch341.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=34</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=34</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Here is what dmesg reports :&lt;pre&gt;New USB device found, idVendor=1a86, idProduct=7523&lt;br /&gt;New USB device strings: Mfr=0, Product=2, SerialNumber=0&lt;br /&gt;Product: USB2.0-Ser!&lt;/pre&gt;&lt;br /&gt;
It works fine with the ch341 driver, I just had to add one line to drivers/usb/serial/ch341.c:&lt;pre&gt;static struct usb_device_id id_table [] = {&lt;br /&gt;        { USB_DEVICE(0x4348, 0x5523) },&lt;br /&gt;        &lt;b&gt;{ USB_DEVICE(0x1a86, 0x7523) },&lt;/b&gt;&lt;br /&gt;        { },&lt;br /&gt;};&lt;/pre&gt;&lt;br /&gt;
The relevant lines from my .config are:&lt;pre&gt;CONFIG_USB_SERIAL=m&lt;br /&gt;CONFIG_USB_SERIAL_GENERIC=y&lt;br /&gt;CONFIG_USB_SERIAL_CH341=m&lt;/pre&gt;&lt;br /&gt;
From the module comments:&lt;blockquote&gt;ch341.c implements a serial port driver for the Winchiphead CH341.&lt;br /&gt;&lt;br /&gt;The CH341 device can be used to implement an RS232 asynchronous serial port, an IEEE-1284 parallel printer port or a memory-like interface. In all cases the CH341 supports an I2C interface as well. This driver only supports the asynchronous serial interface.&lt;/blockquote&gt;&lt;br /&gt;
I&#039;m currently using a &quot;vanilla&quot; kernel 2.6.25.4.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 09 Jun 2008 13:07:03 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/34-guid.html</guid>
    <category>linux</category>

</item>
<item>
    <title>Scanning barcodes with linux and a webcam</title>
    <link>http://blog.crox.net/archives/33-Scanning-barcodes-with-linux-and-a-webcam.html</link>
    
    <comments>http://blog.crox.net/archives/33-Scanning-barcodes-with-linux-and-a-webcam.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=33</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=33</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    My Nokia phones can do it, so I thought there must be a way to do it on my laptop too. I wanted a way to scan both &quot;traditional&quot; &lt;a href=&quot;http://en.wikipedia.org/wiki/Barcode&quot;  title=&quot;barcodes&quot;&gt;barcodes&lt;/a&gt; and &quot;two-dimensional&quot; ones, like the &lt;a href=&quot;http://en.wikipedia.org/wiki/QR_Code&quot;  title=&quot;QR Codes&quot;&gt;QR-Codes&lt;/a&gt;. Here is my solution.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need :&lt;br /&gt;
&lt;br /&gt;
- a v4l-compatible webcam + mplayer compiled with v4l support (or any other scriptable way to grab frames from the webcam)&lt;br /&gt;
&lt;br /&gt;
- a scriptable image viewer, I use feh on my laptop&lt;br /&gt;
&lt;br /&gt;
- &lt;a href=&quot;http://code.google.com/p/zxing/&quot;  title=&quot;ZXing&quot;&gt;ZXing&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Follow &lt;a href=&quot;http://code.google.com/p/zxing/wiki/GettingStarted&quot;  title=&quot;ZXing - GettingStarted&quot;&gt;the instructions to build the ZXing javase component&lt;/a&gt;, then open three shell windows, and run:&lt;br /&gt;
&lt;br /&gt;
shell1 (grab the webcam output as last.jpg +- every half second):&lt;pre&gt;cd /tmp ; while [ 0 ] ; do mplayer tv:// -fps 2 -tv driver=v4l:width=640:height=480:device=/dev/video0 -vo jpeg:quality=95 -frames 2 ; mv 00000001.jpg last.jpg ; done&lt;/pre&gt;&lt;br /&gt;
shell2 (view what you grabbed):&lt;pre&gt;cd /tmp ; feh -R 1/2 last.jpg&lt;/pre&gt;&lt;br /&gt;
shell3 (scan for barcodes):&lt;pre&gt;while [ 0 ] ; do ( java -cp javase/javase.jar:core/core.jar com.google.zxing.client.j2se.CommandLineRunner /tmp/last.jpg | fgrep -v &#039;No barcode found&#039;) ; sleep 1 ; done&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
So no nice GUI, but it seems to work well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 11 May 2008 00:30:30 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/33-guid.html</guid>
    <category>barcode</category>
<category>linux</category>
<category>qr</category>
<category>webcam</category>

</item>
<item>
    <title>Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration)</title>
    <link>http://blog.crox.net/archives/32-Linux-Kernel-2.6.25-on-Gentoo-sparc-error-m64-is-not-supported-by-this-configuration.html</link>
    
    <comments>http://blog.crox.net/archives/32-Linux-Kernel-2.6.25-on-Gentoo-sparc-error-m64-is-not-supported-by-this-configuration.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=32</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    I wanted to try the new 2.6.25 kernel on a Sunblade 100 I&#039;m reinstalling. But immediately after entering &quot;make&quot; I got the following error:&lt;pre&gt;arch/sparc64/kernel/asm-offsets.c:1: error: -m64 is not supported by this configuration&lt;br /&gt;arch/sparc64/kernel/asm-offsets.c:1: error: -mlong-double-64 not allowed with -m64&lt;br /&gt;arch/sparc64/kernel/asm-offsets.c:1: error: -mcmodel= is not supported on 32 bit systems&lt;br /&gt;make[1]: *** [arch/sparc64/kernel/asm-offsets.s] Error 1&lt;br /&gt;make: *** [prepare0] Error 2&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I found the solution &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=214765&quot;  title=&quot;Gentoo Bug 214765&quot;&gt;here&lt;/a&gt;, along with the explanation. To make it short, to get it to work, for now you&#039;ll have to type:&lt;pre&gt; # CROSS_COMPILE=sparc64-unknown-linux-gnu- make&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 25 Apr 2008 00:58:31 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/32-guid.html</guid>
    <category>gcc</category>
<category>gentoo</category>
<category>linux</category>
<category>sparc</category>

</item>
<item>
    <title>Linksys WAG200G-EU stops routing UDP after a while (scripted reboot how-to)</title>
    <link>http://blog.crox.net/archives/31-Linksys-WAG200G-EU-stops-routing-UDP-after-a-while-scripted-reboot-how-to.html</link>
    
    <comments>http://blog.crox.net/archives/31-Linksys-WAG200G-EU-stops-routing-UDP-after-a-while-scripted-reboot-how-to.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=31</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=31</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    It seems that after having been up for a couple of days, the WAG200G starts having issues routing UDP packets properly. This particularly affects VoIP traffic (here IAX2 on port 4569). The symptoms are that &quot;regular surfing&quot; works flawlessly, but the registration with the asterisk server fails. &lt;a href=&quot;http://en.wikipedia.org/wiki/Tcpdump&quot;  title=&quot;tcpdump&quot;&gt;tcpdump&lt;/a&gt; shows no traffic on the server side. Restarting the WAG200G immediately solves the problem.&lt;br /&gt;
&lt;br /&gt;
Here is how I restarted the router from the command line:&lt;br /&gt;
&lt;pre&gt;wget --http-user=admin --http-password=pa55w0rd \&lt;br /&gt;     --post-data=&#039;reboot=1&amp;save=Enregistrer+les+param%E8tres&amp;todo=reboot&amp;h_reboot=1&amp;this_file=Reboot.htm&amp;next_file=index.htm&amp;message=&#039; \&lt;br /&gt;     http://192.168.0.1/setup.cgi&lt;/pre&gt;&lt;br /&gt;
(replace password and IP address as appropriate)&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 07 Mar 2008 11:04:25 +0100</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/31-guid.html</guid>
    <category>adsl</category>
<category>linksys</category>
<category>wlan</category>

</item>
<item>
    <title>Diskless Ubuntu (Feisty Fawn NFS install)</title>
    <link>http://blog.crox.net/archives/29-Diskless-Ubuntu-Feisty-Fawn-NFS-install.html</link>
    
    <comments>http://blog.crox.net/archives/29-Diskless-Ubuntu-Feisty-Fawn-NFS-install.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=29</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Tonight I installed my first diskless Ubuntu system. The version I used is the latest available as of today, 7.04 &quot;FeistyFawn&quot;. This article covers the client part.&lt;br /&gt;
&lt;br /&gt;
My other diskless machines all run Gentoo (for the time being). I&#039;ve described previously &lt;a href=&quot;http://blog.crox.net/archives/2-Diskless-Linux-on-a-Sunblade-100.html&quot;  title=&quot;Diskless Linux on a Sunblade 100&quot;&gt;how I set up my SB 100&lt;/a&gt;, the rest of the setup was based on &lt;a href=&quot;http://gentoo-wiki.com/HOWTO_Gentoo_Diskless_Install&quot;  title=&quot;HOWTO Gentoo Diskless Install&quot;&gt;this article&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The following two articles were helpful:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://help.ubuntu.com/community/Installation/OnNFSDrive&quot;  title=&quot;Ubuntu Installation on NFS Drive&quot;&gt;https://help.ubuntu.com/community/Installation/OnNFSDrive&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://developer.novell.com/wiki/index.php/Feisty/HOWTO:_Convert_Ubuntu_to_Diskless&quot;  title=&quot;HOWTO convert Ubuntu to Diskless&quot;&gt;http://developer.novell.com/wiki/index.php/Feisty/HOWTO:_Convert_Ubuntu_to_Diskless&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
However I found some of the info to be uncomplete or outdated.&lt;br /&gt;
&lt;br /&gt;
From what I have read, unlike with Gentoo, it seems that there is no easy way to get a working diskless Ubuntu system directly. Instead, you have to install to a disk first, and then make your setup diskless. I did not really want to open the box, so I tried first to install on a 2 GB CF card, which didn&#039;t work because the card was full before the install completed (du now reports that the system is 2.1 GB big). So I ended up putting a disk in the box, and I ran a regular install.&lt;br /&gt;
&lt;br /&gt;
Note: As in the SB100 article, 10.0.0.10 will be my dhcp/nfs/tftp server (&#039;fileserver&#039;). 10.0.0.30 will be the Ubuntu desktop.&lt;br /&gt;
&lt;br /&gt;
Once that was completed, instead of rebooting as suggested by the installer, I opened a shell (gnome-terminal), and ran:&lt;br /&gt;
&lt;pre&gt;sudo su -&lt;br /&gt;
mkdir /mnt/tmp&lt;br /&gt;
mkdir /mnt/nfs&lt;br /&gt;
mount /dev/sda1 /mnt/tmp&lt;br /&gt;
mount 10.0.0.10:/diskless/ubuntu /mnt/nfs&lt;br /&gt;
cp -a /mnt/tmp/* /mnt/nfs/&lt;/pre&gt;&lt;br /&gt;
After that, there are just a couple of things that need to be changed:&lt;br /&gt;
&lt;pre&gt;chroot /mnt/nfs&lt;br /&gt;
mount -t proc proc proc&lt;br /&gt;
vi etc/initramfs-tools/initramfs.conf&lt;/pre&gt;&lt;br /&gt;
and make sure you have:&lt;pre&gt;BOOT=nfs&lt;/pre&gt;&lt;br /&gt;
then run:&lt;pre&gt;update-initramfs -u&lt;/pre&gt;&lt;br /&gt;
Now check what you have in /boot, and update your network boot config files accordingly. I use pxegrub, and here is how /boot/grub.lst looks like:&lt;br /&gt;
&lt;pre&gt;default 0&lt;br /&gt;
timeout 10&lt;br /&gt;
title=Diskless Ubuntu&lt;br /&gt;
root (nd)&lt;br /&gt;
kernel /diskless/tv/boot/vmlinuz-2.6.20-15-generic ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/tv ro quiet splash&lt;br /&gt;
initrd /diskless/tv/boot/initrd.img-2.6.20-15-generic&lt;/pre&gt;&lt;br /&gt;
Finally, don&#039;t forget to update etc/fstab and etc/network/interfaces. I&#039;ve read several theories, here is what worked for me:&lt;br /&gt;
&lt;br /&gt;
fstab:&lt;br /&gt;
&lt;pre&gt;# /etc/fstab: static file system information.&lt;br /&gt;
#&lt;br /&gt;
# &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;&lt;br /&gt;
proc            /proc           proc    defaults        0       0&lt;br /&gt;
/dev/nfs        /               nfs     defaults        0       0&lt;br /&gt;
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0&lt;/pre&gt;&lt;br /&gt;
network/interfaces:&lt;br /&gt;
&lt;pre&gt;auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
        address 10.0.0.30&lt;br /&gt;
        netmask 255.255.255.0&lt;br /&gt;
        network 10.0.0.0&lt;br /&gt;
        broadcast 10.0.0.255&lt;br /&gt;
        gateway 10.0.0.1&lt;/pre&gt;&lt;br /&gt;
(note: commenting out eth0 as suggested in some places made the system hang during the boot process.)&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 05 Jul 2007 22:23:16 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/29-guid.html</guid>
    <category>diskless</category>
<category>linux</category>
<category>ubuntu</category>

</item>
<item>
    <title>Lightning for x86_64 Linux (amd64)</title>
    <link>http://blog.crox.net/archives/28-Lightning-for-x86_64-Linux-amd64.html</link>
    
    <comments>http://blog.crox.net/archives/28-Lightning-for-x86_64-Linux-amd64.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=28</wfw:comment>

    <slash:comments>22</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=28</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Lightning is a Thunderbird plug-in that adds calendar functions. More on &lt;a href=&quot;http://www.mozilla.org/projects/calendar/lightning/&quot;  title=&quot;Lightning on mozilla.org&quot;&gt;the mozilla.org page&lt;/a&gt;. I tried to install the .xpi from there, but it failed with the following error message:&lt;br /&gt;
&lt;blockquote&gt;&quot;Lightning&quot; could not be installed because it is not compatible with your Thunderbird build type (Linux_x86_64-gcc3). Please contact the author of this item about the problem.&lt;/blockquote&gt;&lt;br /&gt;
So I downloaded the source from &lt;a href=&quot;http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/0.3.1/&quot; &gt;this page&lt;/a&gt;, and followed the instructions from &lt;a href=&quot;http://www.mozilla.org/projects/calendar/lightning/build.html&quot;  title=&quot;Building Lightning&quot;&gt;here&lt;/a&gt;. &lt;a href=&quot;http://dgoodwin.dangerouslyinc.com/compiling-gnome-2-18-debian-etch-amd64&quot;&gt;This page&lt;/a&gt; and the link to &lt;a href=&quot;http://benjamin.smedbergs.us/blog/2005-10-27/gcc-40-workaround/&quot;&gt;that one&lt;/a&gt; were also helpful.&lt;br /&gt;
&lt;br /&gt;
In case you don&#039;t want to open all those links, I&#039;ve put the resulting .xpi file here for you to download: &lt;a href=&quot;http://blog.crox.net/uploads/lightning-0.3.1-x86_64.xpi&quot; title=&quot;lightning-0.3.1-x86_64.xpi&quot; target=&quot;_blank&quot;&gt;lightning-0.3.1-x86_64.xpi&lt;/a&gt;. Or if you prefer to build it yourself, here is how I did it:&lt;br /&gt;
&lt;pre&gt;[untar/bz, cd mozilla]&lt;br/&gt;make distclean&lt;br/&gt;export CFLAGS=&quot;-O2 -pipe -fPIC&quot;&lt;br/&gt;export CHOST=&quot;x86_64-pc-linux-gnu&quot;&lt;br/&gt;export CXXFLAGS=&quot;${CFLAGS}&quot;&lt;br/&gt;export MAKEOPTS=&quot;-j3&quot;&lt;br/&gt;ac_cv_visibility_pragma=no ./configure --enable-application=mail --enable-extensions=default,lightning&lt;br/&gt;make&lt;/pre&gt;&lt;br /&gt;
(of course you may want to change some stuff to better suit your system, I&#039;ve got a &lt;a href=&quot;http://blog.crox.net/archives/25-Gentoo-Linux-on-HPCompaq-nx7400-Core-2-Duo-Laptop-Update.html&quot; &gt;Core 2 Duo laptop running Gentoo Linux&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
Then just select Tools &amp;gt; Extensions in Thunderbird and install the lightning.xpi you&#039;ve just built (located in dist/xpi-stage/lightning.xpi).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;UPDATE&lt;/b&gt; - 2007-06-28 - Lightning 0.5&lt;br /&gt;
&lt;br /&gt;
After reading &lt;a href=&quot;http://blog.crox.net/archives/28-Lightning-for-x86_64-Linux-amd64.html#c387&quot; &gt;Matthew&#039;s comment&lt;/a&gt; I downloaded the newly released Lightning 0.5 from &lt;a href=&quot;http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/0.5/source/lightning-sunbird-0.5-source.tar.bz2&quot;  title=&quot;lightning 0.5 source&quot;&gt;here&lt;/a&gt;, and built &lt;a href=&quot;http://blog.crox.net/uploads/lightning-0.5-x86_64.xpi&quot; title=&quot;lightning-0.5-x86_64.xpi&quot; target=&quot;_blank&quot;&gt;lightning-0.5-x86_64.xpi&lt;/a&gt; following the exact same procedure that I used for 0.3.1. Then I installed it from Tools &amp;gt; Extensions, restarted Thunderbird and immediately noticed the different appearance. (I did not uninstall 0.3.1 first, which apparently is ok.)&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 15 Jun 2007 16:50:29 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/28-guid.html</guid>
    <category>calendar</category>
<category>gentoo</category>
<category>linux</category>
<category>mail</category>
<category>thunderbird</category>

</item>
<item>
    <title>Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R</title>
    <link>http://blog.crox.net/archives/27-Getting-Google-Earth-for-linux-to-work-properly-on-amd64-x86_64-Gentoo-i915-module-do_wait-drmWaitVBlank-returned-1,-IRQs-dont-seem-to-be-working-correctly.-Try-running-with-LIBGL_THROTTLE_R.html</link>
    
    <comments>http://blog.crox.net/archives/27-Getting-Google-Earth-for-linux-to-work-properly-on-amd64-x86_64-Gentoo-i915-module-do_wait-drmWaitVBlank-returned-1,-IRQs-dont-seem-to-be-working-correctly.-Try-running-with-LIBGL_THROTTLE_R.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=27</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=27</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    There is no 64 bit version of Google Earth for linux, so you&#039;ll need to make sure you have the latest version of the following packages first:&lt;br /&gt;
&lt;br /&gt;
app-emulation/emul-linux-x86-baselibs&lt;br /&gt;
app-emulation/emul-linux-x86-compat&lt;br /&gt;
app-emulation/emul-linux-x86-gtklibs&lt;br /&gt;
app-emulation/emul-linux-x86-qtlibs&lt;br /&gt;
app-emulation/emul-linux-x86-soundlibs&lt;br /&gt;
app-emulation/emul-linux-x86-xlibs&lt;br /&gt;
&lt;br /&gt;
This allowed me to start GE in the first place. But then it was horribly slow, although glxinfo reported &quot;direct rendering: Yes&quot; etc.&lt;br /&gt;
&lt;br /&gt;
When started from the console, GE would output the following:&lt;br /&gt;
&lt;br /&gt;
do_wait: drmWaitVBlank returned -1, IRQs don&#039;t seem to be working correctly.&lt;br /&gt;
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.&lt;br /&gt;
&lt;br /&gt;
Doing a search led me to try setting LIBGL_ALWAYS_INDIRECT=1 before running Google Earth. Indeed the warning disappeared, and GE was really faster. However, as soon as I would zoom too close, the whole screen was getting more and more sky-blue, until no image was being displayed anymore...&lt;br /&gt;
&lt;br /&gt;
Finally, I found &lt;a href=&quot;http://www.larsen-b.com/Article/231.html&quot;  title=&quot;http://www.larsen-b.com/Article/231.html&quot;&gt;this article&lt;/a&gt;, and especially the comments from Eduardo Habkost and &quot;Researcher&quot;.&lt;br /&gt;
&lt;br /&gt;
I followed Researcher&#039;s instructions, and Google Earth is now working perfectly. For your convenience, I&#039;ve put &lt;a href=&quot;http://blog.crox.net/uploads/drm_nowaitVblank.c&quot; title=&quot;drm_nowaitVblank.c&quot; target=&quot;_blank&quot;&gt;drm_nowaitVblank.c&lt;/a&gt; here to download (you cannot copy-paste from the original page because the parser there treats the includes as html code). Also to compile the code on amd64 you&#039;ll want to use gcc32 and not gcc...&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 02 Jun 2007 20:20:45 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/27-guid.html</guid>
    <category>gentoo</category>
<category>google earth</category>
<category>linux</category>

</item>
<item>
    <title>Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)</title>
    <link>http://blog.crox.net/archives/25-Gentoo-Linux-on-HPCompaq-nx7400-Core-2-Duo-Laptop-Update-suspend-to-ram-working-now.html</link>
    
    <comments>http://blog.crox.net/archives/25-Gentoo-Linux-on-HPCompaq-nx7400-Core-2-Duo-Laptop-Update-suspend-to-ram-working-now.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=25</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=25</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    An update to &lt;a href=&quot;http://blog.crox.net/archives/16-Gentoo-Linux-on-HPCompaq-nx7400-Core-2-Duo-Laptop.html&quot;  title=&quot;Gentoo on nx7400&quot;&gt;my initial article on installing Gentoo on my nx7400 laptop&lt;/a&gt;:&lt;br /&gt;
&lt;br /&gt;
I&#039;ve switched to kernel 2.6.21-gentoo (latest gentoo-sources available currently with ~amd64), and to the latest versions of ipw3945, alsa and xorg, and suspend to ram works fine now. (the screen would not switch on again with vanilla kernel 2.6.19)&lt;br /&gt;
&lt;br /&gt;
Hibernation (suspend to disk) seems to work as well, apart from the fact that the screen resolution is not restored correctly, but for now I&#039;m happy with suspend-to-ram. 
    </content:encoded>

    <pubDate>Tue, 08 May 2007 08:34:17 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/25-guid.html</guid>
    
</item>
<item>
    <title>Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)</title>
    <link>http://blog.crox.net/archives/24-Convert-Mac-fonts-to-Unix-Windows-format-and-vice-versa-dfont-to-ttf.html</link>
    
    <comments>http://blog.crox.net/archives/24-Convert-Mac-fonts-to-Unix-Windows-format-and-vice-versa-dfont-to-ttf.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=24</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=24</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    &lt;a href=&quot;http://fondu.sourceforge.net/&quot;  title=&quot;Fondu&quot;&gt;Fondu&lt;/a&gt; is &quot;A set of programs to interconvert between mac font formats and pfb, ttf, otf and bdf files on unix.&quot;&lt;br /&gt;
&lt;br /&gt;
I think that says it all :o) In particular, it allowed me to convert a .dfont-packaged font from a Mac to a set of .ttf files that I can use on my linux desktop.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 27 Apr 2007 12:53:33 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/24-guid.html</guid>
    <category>fonts</category>
<category>linux</category>
<category>mac</category>

</item>
<item>
    <title>How to set thunderbird to correctly attach text files (with Content-Disposition: attachment instead of inline)</title>
    <link>http://blog.crox.net/archives/23-How-to-set-thunderbird-to-correctly-attach-text-files-with-Content-Disposition-attachment-instead-of-inline.html</link>
    
    <comments>http://blog.crox.net/archives/23-How-to-set-thunderbird-to-correctly-attach-text-files-with-Content-Disposition-attachment-instead-of-inline.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=23</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    For years I&#039;ve been annoyed by the habit thunderbird has to set &quot;Content-Disposition: inline&quot; when you attach a text file to an outgoing e-mail.&lt;br /&gt;
&lt;br /&gt;
Experimenting with our &lt;a href=&quot;http://www.netoxygen.ch/fr/34.htm&quot;  title=&quot;mail to fax gateway&quot;&gt;mail to fax gateway&lt;/a&gt;, I finally took the time to fix it today. As with some other &quot;advanced&quot; settings in Fireforx/Thunderbird, there is an option you can set to achieve the (imho) correct behavior, but no GUI dialog for it.&lt;br /&gt;
&lt;br /&gt;
So in order to have outgoing text files attached with &quot;Content-Disposition: attachment&quot;, you need to set &lt;b&gt;mail.content_disposition_type&lt;/b&gt; to 1 (default is 0). You can do this by going to &quot;Edit&quot; -&gt; &quot;Preferences&quot; -&gt; &quot;Advanced&quot; -&gt; &quot;Config Editor&quot;. (Using the windows version it&#039;s probably &quot;Tools&quot; -&gt; &quot;Options&quot; -&gt; etc.)&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 25 Apr 2007 10:32:47 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/23-guid.html</guid>
    <category>mail</category>
<category>thunderbird</category>

</item>
<item>
    <title>Diskless Linux on a Sunblade 100</title>
    <link>http://blog.crox.net/archives/2-Diskless-Linux-on-a-Sunblade-100.html</link>
    
    <comments>http://blog.crox.net/archives/2-Diskless-Linux-on-a-Sunblade-100.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=2</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=2</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    &lt;i&gt;Initially written on 2006-05-17&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
On my other (x86/amd64) diskless machines, I use PXE with pxegrub. My setup is quite similar to (and inspired by) &lt;a href=&quot;http://gentoo-wiki.com/HOWTO_Gentoo_Diskless_Install&quot;  title=&quot;HOWTO Gentoo Diskless Install&quot;&gt;this one&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Now, on sparc machines, there is no BIOS nor PXE. But you don&#039;t need all that, since you have the &lt;a href=&quot;http://en.wikipedia.org/wiki/Open_Boot&quot;  title=&quot;Open Boot&quot;&gt;Open Boot&lt;/a&gt;... This is how I managed to make my Sunblade 100 totally diskless (using a &quot;vanilla&quot; kernel, the latest version being currently 2.6.16.16).&lt;br /&gt;
&lt;br /&gt;
Note: In this example, 10.0.0.10 will be my dhcp/nfs/tftp server which I will refer to as &#039;fileserver&#039;. 10.0.0.30 is the sunblade.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;- when configuring the kernel:&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;[*] Default bootloader kernel arguments (ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/sunblade)&lt;/pre&gt;&lt;br /&gt;
(in &quot;Networking&quot; -&gt; &quot;Networking support&quot; -&gt; &quot;Networking options&quot;)&lt;br /&gt;
&lt;pre&gt;[*]   IP: kernel level autoconfiguration&lt;br /&gt;│ [*]     IP: DHCP support&lt;br /&gt;│ [*]     IP: BOOTP support&lt;br /&gt;│ [*]     IP: RARP support&lt;/pre&gt;&lt;br /&gt;
(in &quot;File systems&quot; -&gt; &quot;Network File Systems&quot;)&lt;br /&gt;
&lt;pre&gt;&lt;*&gt; NFS file system support&lt;br /&gt;[*]   Provide NFSv3 client support&lt;br /&gt;[*] Root file system on NFS&lt;/pre&gt;&lt;br /&gt;
Configure all other settings as you would do for a disk install, but make sure you compile your NIC driver in the kernel (not as module)&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;pre&gt;make&lt;br /&gt;make modules_install&lt;br /&gt;make tftpboot.img ROOT_IMG=/dev/null&lt;/pre&gt;(the resulting tftpboot.img will be in arch/sparc64/boot/tftpboot.img)&lt;br /&gt;
&lt;br /&gt;
I copied tftpboot.img to &lt;i&gt;fileserver&lt;/i&gt; as tftpimage-2.6.16.16, and added the following entry in my dhcpd.conf:&lt;br /&gt;
&lt;pre&gt;host sunblade {&lt;br /&gt;    hardware ethernet 00:03:BA:08:12:34;&lt;br /&gt;    fixed-address 10.0.0.30;&lt;br /&gt;    always-reply-rfc1048 on;&lt;br /&gt;    filename &quot;sunblade/boot/tftpimage-2.6.16.16&quot;;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Finally, to net-boot your diskless Sunblade you&#039;ll need to enter&lt;pre&gt;boot net:dhcp&lt;/pre&gt;in the Open Boot prompt. When you are happy with it, you can set it as default:&lt;pre&gt;setenv boot-device net:dhcp cdrom disk net&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Notes&lt;/u&gt;:&lt;br /&gt;
&lt;br /&gt;
- apparently, instead of using make tftpboot.img you can just &quot;elftoaout&quot; vmlinux&lt;br /&gt;
&lt;br /&gt;
- another alternative would be to use tilo, which comes with silo, to build the image&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 01 Apr 2007 00:14:00 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/2-guid.html</guid>
    <category>diskless</category>
<category>gentoo</category>
<category>linux</category>
<category>sparc</category>

</item>
<item>
    <title>Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other)</title>
    <link>http://blog.crox.net/archives/19-Gentoo-sparc-sys-develkgcc64-vs.-sys-develgcc-sparc64-blocking-each-other.html</link>
    
    <comments>http://blog.crox.net/archives/19-Gentoo-sparc-sys-develkgcc64-vs.-sys-develgcc-sparc64-blocking-each-other.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=19</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    If you get this:&lt;br /&gt;
&lt;pre&gt;[blocks B ] sys-devel/gcc-sparc64 (is blocking sys-devel/kgcc64-3.4.6)&lt;/pre&gt;&lt;br /&gt;
Check &lt;a href=&quot;http://forums.gentoo.org/viewtopic-t-533076.html&quot;&gt;this thread&lt;/a&gt; on the gentoo forums:&lt;br /&gt;
&lt;blockquote&gt;There are a couple of architectures on Gentoo that have a 32-bit userland, but need a 64-bit kernel compiler. kgcc64 is an attempt to provide one package for all of those architectures rather than the gcc-&lt;arch&gt; packages that exist now. The way we migrated over to this caused the issue you are seeing.&lt;/blockquote&gt;&lt;br /&gt;
Basically, you&#039;ll need to&lt;br /&gt;
&lt;pre&gt;emerge --unmerge gcc-sparc64 &amp;&amp;amp; emerge sys-devel/kgcc64&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 01 Apr 2007 00:09:00 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/19-guid.html</guid>
    <category>gcc</category>
<category>gentoo</category>
<category>linux</category>
<category>sparc</category>

</item>
<item>
    <title>Microsoft to pay companies to switch from Google to Live Search</title>
    <link>http://blog.crox.net/archives/22-Microsoft-to-pay-companies-to-switch-from-Google-to-Live-Search.html</link>
    
    <comments>http://blog.crox.net/archives/22-Microsoft-to-pay-companies-to-switch-from-Google-to-Live-Search.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=22</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    see the following stories:&lt;br /&gt;
&lt;br /&gt;
1. &lt;a href=&quot;http://battellemedia.com/archives/003447.php&quot;  title=&quot;http://battellemedia.com/archives/003447.php&quot;&gt;http://battellemedia.com/archives/003447.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. &lt;a href=&quot;http://www.itwire.com.au/content/view/10554/532/&quot;  title=&quot;http://www.itwire.com.au/content/view/10554/532/&quot;&gt;http://www.itwire.com.au/content/view/10554/532/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3. &lt;a href=&quot;http://www.ledevoir.com/2007/03/19/135590.html&quot;  title=&quot;http://www.ledevoir.com/2007/03/19/135590.html&quot;&gt;http://www.ledevoir.com/2007/03/19/135590.html&lt;/a&gt; (in French)&lt;br /&gt;
&lt;br /&gt;
The first article describes the program. I also found most comments by the readers worth reading - and altogether they summarize pretty much everything I would have to say about it :o)&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 31 Mar 2007 23:36:38 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/22-guid.html</guid>
    <category>google</category>
<category>microsoft</category>

</item>
<item>
    <title>Zfone - secured VoIP conversations (SIP)</title>
    <link>http://blog.crox.net/archives/21-Zfone-secured-VoIP-conversations-SIP.html</link>
    
    <comments>http://blog.crox.net/archives/21-Zfone-secured-VoIP-conversations-SIP.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=21</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=21</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    I came across &lt;a href=&quot;http://zfoneproject.com/getstarted.html&quot;  title=&quot;Zfone&quot;&gt;this project&lt;/a&gt; the other day. Apparently it should work with any &lt;a href=&quot;http://en.wikipedia.org/wiki/Session_Initiation_Protocol&quot;  title=&quot;SIP&quot;&gt;SIP&lt;/a&gt;-based VoIP client. (They list X-Lite, Gizmo and SJphone.)&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t had a chance to test it, but I sure will - they provide a source-form linux version. I may even contribute a gentoo e-build, since so far I couldn&#039;t find one...&lt;br /&gt;
&lt;br /&gt;
What makes this project even more interesting to me is the fact that &lt;a href=&quot;http://en.wikipedia.org/wiki/Phil_Zimmermann&quot;  title=&quot;Phil Zimmermann&quot;&gt;Phil Zimmermann&lt;/a&gt;, the original creator of &lt;a href=&quot;http://en.wikipedia.org/wiki/Pretty_Good_Privacy&quot;  title=&quot;Pretty Good Privacy&quot;&gt;PGP&lt;/a&gt;, is behind it.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 31 Mar 2007 23:10:01 +0200</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/21-guid.html</guid>
    <category>encryption</category>
<category>sip</category>
<category>voip</category>

</item>
<item>
    <title>TestDisk / PhotoRec: tool to recover lost files and partitions (Gentoo Linux)</title>
    <link>http://blog.crox.net/archives/20-TestDisk-PhotoRec-tool-to-recover-lost-files-and-partitions-Gentoo-Linux.html</link>
    
    <comments>http://blog.crox.net/archives/20-TestDisk-PhotoRec-tool-to-recover-lost-files-and-partitions-Gentoo-Linux.html#comments</comments>
    <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=20</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Homepage: &lt;a href=&quot;http://www.cgsecurity.org/&quot;&gt;http://www.cgsecurity.org/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Description in portage: Multi-platform tool to check and undelete partition, supports reiserfs, ntfs, fat32, ext2/3 and many others. Also includes PhotoRec to recover pictures from digital camera memory.&lt;br /&gt;
&lt;br /&gt;
Installation (Gentoo Linux amd64):&lt;br /&gt;
&lt;br /&gt;
echo &#039;app-admin/testdisk      ~amd64&#039; &gt;&gt; /etc/portage/package.keywords&lt;br /&gt;
echo &#039;app-admin/testdisk      jpeg ntfs&#039; &gt;&gt; /etc/portage/package.use&lt;br /&gt;
emerge -av app-admin/testdisk&lt;br /&gt;
&lt;br /&gt;
To use it, just run &#039;photorec&#039; as root in a shell window. Despite the name, photorec will find and recover many files, not only pictures. You&#039;ll find the &lt;a href=&quot;http://www.cgsecurity.org/wiki/PhotoRec#Known_file_format&quot;  title=&quot;file formats supported by PhotoRec&quot;&gt;full list&lt;/a&gt; on the PhotoRec homepage.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t tried TestDisk yet, but PhotoRec has been useful several times already.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 18 Mar 2007 22:55:00 +0100</pubDate>
    <guid isPermaLink="false">http://blog.crox.net/archives/20-guid.html</guid>
    <category>gentoo</category>
<category>linux</category>
<category>photo</category>

</item>

</channel>
</rss>