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

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: eeepc]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=eeepc</link>
<description></description>
<pubDate>Tue, 22 Jan 2008 18:29:20 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[Eee PC]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?eee_pc</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: eeepc, projects</div><hr/><div class="wiki">
<p>
Here are my notes about setup of various stuff on Eee PC to make it work better for me.</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#startup">Dobrica Pavlinušić's random unstructured stuff (Startup)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Startup} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compressed_root_filesystem">Dobrica Pavlinušić's random unstructured stuff (Compressed root filesystem)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Compressed root filesystem} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#update_2008_01_22">Dobrica Pavlinušić's random unstructured stuff (Update 2008-01-22)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Update 2008-=01-=22} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (Links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Links} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#disk_images">Dobrica Pavlinušić's random unstructured stuff (Disk images)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Disk images} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#backup_image_from_eee_using_external_usb_disk">Dobrica Pavlinušić's random unstructured stuff (Backup image from Eee using external USB disk)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Backup image from Eee using external USB disk} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#backup_flash_image_from_eee_pc_using_network">Dobrica Pavlinušić's random unstructured stuff (Backup flash image from Eee PC using network)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Backup flash image from Eee PC using network} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#backup_just_part_of_image">Dobrica Pavlinušić's random unstructured stuff (Backup just part of image)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Backup just part of image} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#emulation">Dobrica Pavlinušić's random unstructured stuff (Emulation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Emulation} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#example_flash_image">Dobrica Pavlinušić's random unstructured stuff (Example flash image)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Example flash image} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#mount_file_system">Dobrica Pavlinušić's random unstructured stuff (Mount file-system)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Mount file-=system} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#start_emulation">Dobrica Pavlinušić's random unstructured stuff (Start emulation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Start emulation} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (Links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Links} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="startup">Startup</h1>
<p>
Edit <tt>/usr/bin/startsimple.sh</tt> and insert something along following lines before exec icewm</p>
<pre>
 sudo rm /tmp/nologin

 xrdb -merge ~/.Xresources
 setxkbmap hr us
 xterm &amp;

 exec icewm
</pre>
<br /><h1 id="compressed_root_filesystem">Compressed root filesystem</h1>
<p>
I don't really care much about Xandos on my Eee PC. However, I really do like idea about having read-only system filesystem (especially if your startup scripts are breakable as easy as ones on eee are). So, to improve this idea, I started to think how to compress read-only partition so I can at least save space.</p>
<p>
As a first experiment, I copied whole flash from eee (about 3.6Gb used) and compressed it using <tt>gzip -1</tt> (lowest possible compression level). I was quite amazed to see that resulting archive was only 1.3Gb. So, I was up to something (and additional 2Gb of free space on 4Gb eee is also nice :-)</p>
<h2 id="update_2008_01_22">Update 2008-01-22</h2>
<p>
squashfs 3.3 can't compress comtent of eee's <tt>/usr</tt> without hanging on flock after about ~47000 files. This is quite annoying, but 3.2 works. Since it's compiled from upstream source it doesn't include lzma compression, but is saves 1.6Gb of disk space. <a target="_blank" title="(external link)" href="http://groups.google.com/group/eeepc-zagreb/browse_thread/thread/c68d220ec0c5b2dc">More details is available<!-- wiki-renamed-hyperlink "More details is available"<http://groups.google.com/group/eeepc=-zagreb/browse_thread/thread/c68d220ec0c5b2dc> --></a>, but in Croatian only.</p>
<h2 id="links">Links</h2>
<p>
Here is collection of references about this issue:</p>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
 <div class="fetchrss_title">
     fetchrss: http://del.icio.us/rss/dpavlin/debian+usb
 </div>

  </div>
  
<ul class="fetchrss_item">
  <li class="fetchrss_item">
    There was an error: 500 Can't connect to del.icio.us:80 (Bad hostname 'del.icio.us')

  </li>
</ul>

</div>
















<!-- wiki: {fetchrss: http://del.icio.us/rss/dpavlin/debian+usb full}
--></div><br /><br /><h1 id="disk_images">Disk images</h1>
<h2 id="backup_image_from_eee_using_external_usb_disk">Backup image from Eee using external USB disk</h2>
<pre>
dd if=/dev/sda of=/media/A/Partition1/flash4Gb.img
</pre>
<br /><p>
Path in <tt>of</tt> may be different depending on partition on your disk.</p>
<h2 id="backup_flash_image_from_eee_pc_using_network">Backup flash image from Eee PC using network</h2>
<p>
Transfer somehow whole disk image to other computer. Good way might be to use netcat with something like this:</p>
<ul>
<li>on Eee</li>
</ul>
<pre>
sudo nc -l -p 8888 &lt; /dev/sda
</pre>
<br /><ul>
<li>on other computer</li>
</ul>
<pre>
nc name.of.eee.pc 8888 &gt; hda
</pre>
<br /><p>
You might want to insert compression if your network connection is slower than flash read speed (which is according to <tt>hdparm -tT /dev/hda</tt> around 21MB/sec).</p>
<p>
Alternative is to take <tt>P701L.gz</tt> from DVD which came with machine, but it has only one partition which is factory default one.</p>
<h2 id="backup_just_part_of_image">Backup just part of image</h2>
<p>
You can also copy just parts of flash filesystem if you want (this copies just disk after partition 2):</p>
<ul>
<li>on eee</li>
</ul>
<pre>
dd if=/dev/sda bs=512 skip=4819500 | gzip | nc -w 3 other.computer
88882995524+0 records in
2995524+0 records out
1533708288 bytes (1.5 GB) copied, 279.348 seconds, 5.5 MB/s
</pre>
<br /><ul>
<li>on other computer</li>
</ul>
<pre>
nc -l -p 8888 | gzip -cd | &gt; /rest/tmp/hda2-4
</pre>
<br /><ul>
<li>now, ectract beginning of disk and first partition from P701L</li>
</ul>
<pre>
dd if=P701L of=hda1 bs=512 count=4819500
</pre>
<br /><ul>
<li>and merge partition together to create full disk image</li>
</ul>
<pre>
cat hda1 hda2-4 &gt; hda
</pre>
<br /><h1 id="emulation">Emulation</h1>
<p>
How to create virtual Eee PC?</p>
<h2 id="example_flash_image">Example flash image</h2>
<pre>
# fdisk -l hda 

Disk /backup/eee/hda: 3 GB, 3997486080 bytes
255 heads, 63 sectors/track, 486 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

          Device Boot      Start         End      Blocks   Id  System 
/backup/eee/hda1               1         300     2409718   83  Linux
/backup/eee/hda2             301         484     1469947   83  Linux
/backup/eee/hda3             485         485           0    c  FAT32 LBA
/backup/eee/hda4             486         486           0   ef  EFI FAT
</pre>
<br /><h2 id="mount_file_system">Mount file-system</h2>
<p>
We need first file system (factory defaults) to get access to kernel and initrd image</p>
<pre>
# fdisk -u -l hda 

Disk /backup/eee/hda: 3 GB, 3997486080 bytes
255 heads, 63 sectors/track, 486 cylinders, total 7807590 sectors
Units = sectors of 1 * 512 = 512 bytes

          Device Boot      Start         End      Blocks   Id  System 
/backup/eee/hda1              63     4803435     2409718   83  Linux
/backup/eee/hda2         4819563     7759395     1469947   83  Linux
/backup/eee/hda3         7775523     7775460           0    c  FAT32 LBA
/backup/eee/hda4         7791588     7791525           0   ef  EFI FAT
# mkdir 1
# mount hda 1 -o loop,offset=`expr 63 \* 512`
</pre>
<br /><h2 id="start_emulation">Start emulation</h2>
<pre>
qemu -m 512 -hda hda -kernel boot/vmlinuz-2.6.21.4-eeepc -initrd boot/initramfs-eeepc.img -append &quot;rw root=/dev/sda1&quot;
</pre>
<br /><h1 id="links">Links</h1>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
 <div class="fetchrss_title">
     fetchrss: http://del.icio.us/rss/dpavlin/eeepc
 </div>

  </div>
  
<ul class="fetchrss_item">
  <li class="fetchrss_item">
    There was an error: 500 Can't connect to del.icio.us:80 (Bad hostname 'del.icio.us')

  </li>
</ul>

</div>
















<!-- wiki: {fetchrss: http://del.icio.us/rss/dpavlin/eeepc full}
--></div><br /></div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>eeepc, projects</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?eee_pc</guid>
<pubDate>Tue, 22 Jan 2008 18:29:20 -0000</pubDate>
</item>
<item>
<title><![CDATA[Eee PC saga -- with partial happy end]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?eee_pc_saga_with_partial_happy_end</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: eeepc, linux</div><hr/><div class="wiki">
<p>
So, I began looking for <a target="_blank" title="(external link)" href="http://en.wikipedia.org/wiki/ASUS_Eee_PC">Eee PC<!-- wiki-renamed-hyperlink "Eee PC"<http://en.wikipedia.org/wiki/ASUS_Eee_PC> --></a> last year (well, more than two weeks ago, anyway) and my original plan was to buy one while I'm in Berlin for new year. However, since there wasn't any Eees available in Germany until second week of 2008, I was in some disspair becuause we where leaving on 6th.</p>
<p>
You can understand when I read <a target="_blank" title="(external link)" href="http://www.tablix.org/~avian/blog/archives/2007/12/30/T00_34_21/">Avian's blog post about his new Eee PC<!-- wiki-renamed-hyperlink "Avian's blog post about his new Eee PC"<http://www.tablix.org/~avian/blog/archives/2007/12/30/T00_34_21/> --></a>. He is in Slovenia, and I'm in Germany and he managed to buy it? How? Quick e-mail later, and he said that it's available in <a target="_blank" title="(external link)" href="http://www.bof.si">Building of Fun<!-- wiki-renamed-hyperlink "Building of Fun"<http://www.bof.si> --></a>, some kind of on-line web shop in Ljubljana. Since Slovenia is so much closer to Croatia than Germany (in which I was at that time) I just postponed my purchase for better times. In meantime, <a target="_blank" title="(external link)" href="http://kost.com.hr/">Kost<!-- wiki-renamed-hyperlink "Kost"<http://kost.com.hr/> --></a> got interested also, and after return to Croatia he contacted them and we bought our units.</p>
<p>
That would be happy part of story, if only one of them didn't have one constantly lit LCD pixel. Reviewing ASUS warranty, I found that I found one point:</p>
<p>
&nbsp;2. TFT LCD defect policy -- Eee PC does not provide ZBD (Zero Bright Dot) warranty for TFT LCD screens.</p>
<p>
Yes, it's in there, one you buy the unit, that is. Since we couldn't replace it today I guess I'm out of luck. I will try <a target="_blank" title="(external link)" href="http://del.icio.us/dpavlin/lcd+fix">some of software solutions<!-- wiki-renamed-hyperlink "some of software solutions"<http://del.icio.us/dpavlin/lcd+fix> --></a> over the night in hope that it will go away, but some more drastic measures like rubbing LCD screen gently are just too much to ask from me...</p>
<p>
Other than that, it's a great device: designed for wifi communication, quick browsing and occasional terminal session using <tt>ctrl+alt+t</tt>. It's not designed to be primary PC, but all features are so well integrated and working seamlessly that I will have hard time reinstalling it with Debian. Until I need <tt>dwm</tt> which I got used to so much. I can probably wait for a few more hours <tt>:-)</tt></p>
<p>
I can't say anything about battery life, other than fact that it got half-filled in two hours while I was working on it with wifi. I will do some monitoring to see how well is battery holding on this device (there isn't <tt>acpi</tt> command, but all <tt>/proc</tt> entries are there, so it shouldn't be problem).</p>
<p>
Form-factor is just great. Yeah, keyboard is small, but I can type on it (with my big fingers) without any problems. We did try to boot few distribution from USB stick (including Puppy and some Slackware derivative) without any problems. Well, there shouldn't be any: this is basically a palm-top size Intel box (at last!) with strange screen size of 800*480.</p>
<p>
After first day with my Eee PC, I'm very pleased with it. To make things a bit easier now that I'm back on ThnikPad, I edited <tt>/etc/X11/xinit/xserverrc</tt> to remove <tt>-nolisten tcp</tt>, restarted X using <tt>ctrl+alt+backspace</tt>, typed <tt>xhost mylaptop.lan</tt> on eeepc and then started <tt>x2x -west -to eeepc.lan:0</tt> on my laptop and now I can pass from laptop to eeepc sitting on left with just a mouse move. Sweet.</p>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>eeepc, linux</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?eee_pc_saga_with_partial_happy_end</guid>
<pubDate>Sun, 13 Jan 2008 19:41:58 -0000</pubDate>
</item>
</channel>
</rss>