Sunday, November 15, 2009

Fixing network connection problem of win2k in my EeePC

Last weekend, after I completed the installation of win2k, I found that I can not connect to the Internet. This is kind of strange because the same EeePC, with the same LAN cable, can connect to my router with automatic settings. I checked in Device Manager that the LAN card driver was properly installed and win2k is reporting that it is running without problem.

This weekend, my sister came to visit me and I asked her to help troubleshooting on this. We checked all possibilities, setting IP address manually, but in vain. At last, when I looked into the "Properties" of the "Atheros L2 Fast Ethernet 10/100 Base-T Controller", I noticed something.

This is the first time I came across such wierd issue with win2k, but what I did for remedy is to uncheck the box "Allow the computer to turn off this device to save power" in the "Power Management" tab of the LAN card properties, and then Internet Explorer can connect immediately to www.google.com.

Besides this, I also noticed a minor issue using USB mouse. The system response is very slow when I plug in an USB mouse. At first, I thought it is problem with the left button of my mouse, but the problem persist after changing the mouse. Then I found that even the touchpad and the touchscreen have the same problem. But when I disconnect the USB mouse, everything resume normal.

I remember that other forum members on the EeeUser Forum who did installed win2k did not install the Asus touchpad driver, so I am thinking there may be incompatibility of the touchpad driver with USB mouse. I will check on this next weekend.

What I will also work on next weekend is to install the webcam driver. Asus does not provide webcam driver for win2k, but some people have worked this out for EeePC 701 4G as reported in in this thread of the EeeUser Forum and this webpage (in Chinese BIG5) of MindFarm.com. Although I don't expect to use the webcam often, this is just to make the installation complete.

Saturday, November 14, 2009

Install Java SDK6 to my EeePC

Recently I have bought a PDA phone HTC Hero which is running the Google Android platform 1.5. Although this system is Linux based, I found that there is no root access and is lacking some basic commands to hack the system in a teminal. After googling for a day, I found that I need to install the Android SDK to flash and downgrade the ROM to get root access. And one of the system requirements to install Android SDK is to have Sun Java JDK6 installed.

Installation of JDK6 has been discussed in length in this thread of the EeeUser Forum and as suggested by SublimePorte in post 65, I have worked out a much easier way to install from Debian package rather than compiling from source downloaded from Sun.

1) Add Debian "etch-backports" to your repositories source list

Open a terminal and edit /etc/apt/sources.list as root:
/home/user> sudo bash
eeepc-albkwan:/home/user> kwrite /etc/apt/sources.list &
Add this new entry for Debian "etch-backports" repositories:
deb http://www.backports.org/debian/ etch-backports main contrib non-free
Now update apt cache:
apt-get update
2) Now install sun-java6-jdk either with apt-get or its frontend synaptic. Here I did it in a terminal with the command apt-get:
eeepc-albkwan:/home/user> apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
sun-java6-bin sun-java6-jre
Suggested packages:
binfmt-support sun-java6-demo sun-java6-doc sun-java6-source sun-java6-plugin
ia32-sun-java6-plugin sun-java6-fonts ttf-baekmuk ttf-unfonts ttf-unfonts-core
ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
Recommended packages:
libnss-mdns gsfonts-x11
The following NEW packages will be installed:
sun-java6-bin sun-java6-jdk sun-java6-jre
0 upgraded, 3 newly installed, 0 to remove and 85 not upgraded.
Need to get 51.0MB of archives.
After unpacking 152MB of additional disk space will be used.
Do you want to continue [Y/n]?
After installation has finished, you can verify if it is successful by checking current java version:
eeepc-albkwan:/home/user> java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

With the unlimited Internet access through 3G and GPRS of my mobile phone network, I would like to set up WiFi or USB tethering of my EeePC to my HTC Hero to gain Internet access for my EeePC on the road. This is possible with the android-wifi-tether package, but the pre-requisite is to have "root" access.

On the other hand, while I am travelling aboard, it would also be good to have Ad hoc WiFi network from my EeePC as Wireless AP to my mobile phone (i.e. the reverse way) so as to save roaming charges. Of course, provided that the hotel have broadband Internet access (by LAN cable). This will also require "root" access. This something I need to work out next.

Sunday, November 8, 2009

Install win2k in my EeePC 4G

After waiting for more than 2 years, finally I got win2k installed to my EeePC 4G this weekend.

This has been a long story. Since I bought my EeePC 4G in Oct 2007, I have been thinking about dual boot Windows and Linux in my EeePC. But due to the limitation of disk space with the 4GB SSD, the idea was to boot either one of them from USB.

Initially, I wanted to boot win2k from USB because I expect to use Linux more often. But after studying the possibility, I finally turned to working on Booting Xandros from USB, because chances are that Linux can more probably be customized. Indeed, after working with other forum members of the EeeUser Forum, we worked out a solution to Boot Xandros from USB. And then I further worked out the hack to mount a SDHC as the USER partition of the union filesystem of the EeePC, so I could spare the 2nd partition of the SSD (/dev/sda2) for win2k. It was then I have purchased this copy of Windows 2000 Professional.

I wanted to install Windows on my EeePC because I own quite a number of commerical music softwares that are Windows only, and I wanted to make use of my EeePC as a portable music workstation. In fact, this was also the reason why I have purchased a copy of winxp for my desktop after having abandoned Windows for so many years. But after working some time with my EeePC 4G, I realized that the CPU and hardware is just not powerful enough to make any decent music. So I didn't bother to install win2k anymore.

Recently, after having installed the 16 GB 2nd SSD from my brother, there is now plenty of disk space in my EeePC and so I am tempted to work on this again. And so this Sunday, I spent the afternoon doing this.


With an USB CDROM and the win2k install CD which I have prepared 2 years ago slipstreamed with SP4 as per instructions here: Making a Bootable Windows 2000 CD with Service Pack Integrated, installation is straightforward though very slow. It took me more than 2 hours to complete the installation. The reason is probably because of USB 1.1 support only in the BIOS.

I didn't encounter the BSOD problem for ar5211.sys (wifi card driver) as mentioned by forum member sloppiE in this thread, probably because I have turned off WiFi in default Xandros. And as per his instructions, after Windows installation was completed, I installed the drivers from the Asus Support DVD running the setup.exe in each of the folders in the DVD:

\Drivers\Acpi\
\Drivers\Audio\driver\
\Drivers\Chipset\
\Drivers\Wireless\install_cd\
\Software\Lanutility\

I also installed the EGalax touchscreen Windows driver from its install CD, and then I extracted the Silicone Wave bluetooth wireless driver from win2k.zip I have downloaded to get my bluetooth tongle working under win2k.


Now that win2k installation was completed, I need to get my Linux back in dual boot. I choose grub as the default bootloader. So I need to put grub stage0 back to the MBR of the SSD. To do this, I booted up to the copy of default Xandros in my 1st SSD. [Note: I have set 2nd SSD as 1st boot device in BIOS, and have installed win2k and my working copy of default Xandros in the 2nd SSD. The copy of default Xandros in the 1st SSD is for experiments only.]

In default Xandros, I open a terminal as root to run grub:
asus-2134610915:/home/user> grub
Probing devices to guess BIOS drives. This may take a long time.
Then in the grub shell, I enter these commands to install grub to the MBR of my 2nd SSD:
       [ Minimal BASH-like line editing is supported.   For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> find /boot/grub/stage1
(hd0,0)
(hd1,1)

grub> root (hd1,1)

grub> setup (hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd1) (hd1)1+15 p (hd1,1)/boot/grub/stage2 /boot/grub/menu.
lst"... succeeded
Done.

grub> quit
A bit explanation here:
(hd1) is my 2nd SSD (/dev/sdb), and (hd1,0) is the 1st partition in my 2nd SSD (/dev/sdb1) where I have installed win2k; (hd1,1) is the 2nd partition in my 2nd SSD (/dev/sdb2) where I have installed my working copy of default Xandros.

Now, on reboot, the system will boot up to default Xandros. And to get win2k to dual boot, I also need to edit the grub boot menu to add an entry for win2k. You can do it now or after you have rebooted into default Xandros. Basically, you need to edit the file /boot/grub/menu.lst. Here is the entry I have added (at the end of the file) for win2k:
title Win2k
rootnoverify (hd0,0)
makeactive
chainloader +1
Please be aware that if you still have union filesystem in your default Xandros, you need to edit the copy of menu.lst in the SYSTEM partition (i.e. sda1) instead of in sda2. In my case, I have already removed union filesystem, so just the one in sdb2.


There are a few settings you need to change to get win2k running smoothly which is covered in the section "Optimizing Windows XP" of the EeePC 701 User Guide.

But even after all that, win2k is terribly slow compared with default Xandros. So I don't think I will use it very often unless absolutely necessary.