Sunday, March 16, 2008

Install Gentoo with coLinux

coLinux is gaining momentum as a way to run Linux programs on Windows, and I decided to try it. As a user of Gentoo, my first choice is to use Gentoo with coLinux. The following description documents what I have done to run Gentoo cooperatively in Windows laptop. I mainly follows up the Gentoo Wiki Howto article and other coLinux resources.

1. Installation

First download the latest coLinux snapshot (you can also get it from SourceForge). The file I used is coLinux-0.7.2.exe from SourceForge. Run the installer. Some notes during installation:

  • In screen Choose Components, leave the default settings on (i.e. selecting all components), but uncheck Root FileSystem image download (we will download it separately).
  • In addition, change the Destination folder to c:\bin\coLinux (note that all the description below assumes coLinux is installed into this directory. If you prefer other directory, please modify accordingly in steps below).
  • Installer prompts to download and install WinPCap separately, but my network configuration does not need WinPCap therefore I don't install it.

Then download Gentoo-colinux-i686-2007-03-03.7z from SourceForge, extract the archive into c:\bin\coLinux, with a gentoo subdirectory created during extraction. Copy file gentoo.conf in gentoo to the parent directory and modify it as follows:

kernel=vmlinux
cobd0=C:\bin\coLinux\gentoo\gentoo-root
cobd1=C:\bin\coLinux\gentoo\linux-swap
root=/dev/cobd0
hdc=\Device\Cdrom0
initrd=initrd.gz
mem=1024
eth0=tuntap
cofs0=c:\linux

Some explanations of the above file, details will be covered in later sections.

  • For mem, I set it to 1G. Choose according to your own situation.
  • For network, I only select TAP driver.
  • I shared Windows folder c:\linux to coLinux.
  • CD/DVD-Drive is mounted.

To test drive, open a command prompt, change to the directory c:\bin\coLinux, and run the following command:

colinux-daemon @gentoo.conf

coLinux console should run. If there is something wrong, please check previous steps. After some time, you are prompted for log in. You can now login as root with password. Change your password immediately.

Congratulations! You just successfully run Gentoo in coLinux! You can now fool around with the system. Type halt when you are tired. There is still a long road ahead to fully harness the power. Following is two optional steps, but highly recommended.

Run coLinux during system startup

First, we need to install coLinux as a service. Open a command prompt, change to the directory c:\bin\coLinux, and run the following command:

colinux-daemon.exe @gentoo.conf --install-service "CoGentoo Linux" 

Then open Control Panel, first select Administrative Tools, then Services, click service CoGentoo Linux, and change its Startup type to Automatic.

Enlarge the image file

The original image size is 2G. This might not be sufficient. To enlarge it, you need to download the tools from here. Extract the archive and run file toporesize.bat. Use the program to resize file c:\bin\coLinux\gentoo\gentoo-root to whatever size you want. Make sure you uncheck "resize file only no resize2fs".

2. Configuration

2.1 Timezone

Since I'm located in Beijing, I set the corresponding info as follows. The related configuration files is /etc/conf.d/clock. I changed two lines as follows.

CLOCK="local"
TIMEZONE="Asia/Shanghai"

Also run command ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime.

It is interesting that Beijing cannot manage to snap one place inside /usr/share/zoneinfo/Asia.

2.2 Network

Based on coLinux wiki article.

2.2.1 One network interface

This configuration only enable TAP, which is used to enable both the high-speed private connection between Windows host and Linux guest, and also to bridge the connection to Internet. One drawback of this setup is that when you Internet connection changes (e.g. from ADSL to WiFi, you have to adjust bridging and some parameters manually).

File gentoo.conf discussed above already contains the setup for coLinux. Next steps are as follows.

On hosting OS (Windows), configure TAP-Win32 Adapter V8 (coLinux) with following properties (make sure to leave Default Gateway as blank):

Ethernet adapter:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : TAP-Win32 Adapter V8 (coLinux)
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.0.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

We need to bridge the Internet connection with TAP interface. For example, assume you're using an ADSL PPPoE connection. In Windows host, select Control Panel -> Network Connections, right click the PPPoE interface, and select Properties. In tab Advanced, for Internet Connection Sharing, check Allow other network users to connect through this computer's Internet connection, and for the Home networking connection, select the TAP interface (e.g. Local Area Connection 2). When Windows prompts that TAP interface IP address will be set to 192.168.0.1, choose OK.

Under coLinux, edit file /etc/conf.d/net as follows.

config_eth0=( "192.168.0.20/24" )
routes_eth0=( "default via 192.168.0.1" )
dns_servers_eth0=(" xxx.xxx.xxx.xxx " )

Please change the DNS server information (shown as xxx above) to those obtained in windows (e.g. via ipconfig).

We have to emphasize here that in this setup, Linux guest has IP address 192.168.0.20 (this is arbitrarily selected, could be other numbers like 192.168.0.x when 2 <= x <= 254), and Windows host has IP address 192.168.0.1 interfacing Linux (of course Windows host has external IP addresses as well).

2.2.2 For two network interfaces

Note this part is NOT compatible with other sections. The purpose of this section is only to document alternatives to above solution. If one interface solution is fine for you, you can skip this section.

This configuration enables both SLiRP and TAP connections. SLiRP is used to connect outside world while TAP enables the high-speed private connection between Windows host and Linux guest, which is desirable for X protocol. The benefits of this configuration includes improved security and that SLiRP can automatically use current Windows Internet connection for outgoing connections (i.e. you do not need to enter DNS server information) without reconfigurations. This works fine for Wireless LANs, but I did meet problems for ADSL and finally decided to use TAP only.

Anyway, let's look at how to setup two network interfaces.

First, we need to modify the aforementioned file gentoo.conf located in coLinux directory. Change the line eth0=tuntap with two lines as below.

eth0=slirp
eth1=tuntap

Then edit file /etc/conf.d/net on Linux guest. This enables both SLiRP and TAP.

config_eth0=( "dhcp" )
config_eth1=( "192.168.37.20/24" )

We then need to setup DHCP client as following:

emerge dhcpcd
rc-update add dhcpcd default
/etc/init.d/dhcpcd start

Since only eth0 device is generated, we need to generate eth1 device by

cd /etc/init.d
ln -s net.lo net.eth1

On hosting OS (Windows), configure TAP-Win32 Adapter V8 (coLinux) with following properties (make sure to leave Default Gateway as blank):

Ethernet adapter:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : TAP-Win32 Adapter V8 (coLinux)
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.37.10
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
2.2.3 Proxy

If you connect to Internet directly, you can skip this section.

To use proxy server, add the following lines into /etc/env.d/99local:

http_proxy="http://proxy.server.com:8080"
ftp_proxy="http://proxy.server.com:8080"

Replace the port and domain name according to your situation. Then run:

env-update && source /etc/profile

2.3 Add additional locales

Modify file /etc/locale.gen, select appropriate locales. For me, the locales are:

en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8

Then run command locale-gen.

2.4 Mirror selection

First run emerge mirrorselect. To select the fastest mirror. I use the following command mirrorselect -D -H -s2 to select the mirror. It means that:

  • -D: actual file will be downloaded from the mirror to test speed.
  • -H: test http mirrors only.
  • -s2: only select 2 mirrors.

After running the command, original /etc/make.conf will be backed up as /etc/make.conf.backup and your selected mirrors will be reflected in make.conf. Type mirrorselect -h for details.

2.5 Modify /etc/make.conf

This is specific for your computer type and other factors. Following is my configuration (I'm using a Core 2 Duo CPU on 32 bit Windows). Please refer to Gentoo documentation for your own reference. GENTOO_MIRRORS reflects the fastest mirrors for my connection, so you may skip that line if your have already performed mirrorselect above.

CFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe -fno-ident"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="x86"
FEATURES="parallel-fetch"
LINGUAS="en zh"
USE="-* auctex bash-completion bzip2 cjk crypt curl doc emacs gd gif glibc-omitfp gtk \
     javascript jpeg mmx mozilla ncurses nls nptl nptlonly opengl pam png readline \
     ruby sbcl source spell sse sse2 ssl svg tcpd tiff truetype \
     unicode X xft xml xorg xpm zlib"
PORTDIR_OVERLAY="/usr/local/portage"
GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/"

2.6 Update system

Since our original system is somehow outdated, we need to update it. First run emerge --sync or emerge-webrsync -v to synchronize portage, then run the following suites of commands (we need the -p argument to check what the commands are supposed to do since they're somehow "dangerous"):

emerge -uDNpv world
emerge -uDNv world
emerge --depclean -pv 
emerge --depclean -v
revdep-rebuild -pv
revdep-rebuild -v

Caveat: if you encounter circular dependency when emerge -uDNv world, try to remove gtk USE flag from /etc/make.conf. After successful emerging, add gtk flag again and run emerge -uDNv world again.

After update, run dispatch-conf to update the configuration files (you need to avoid the update of /bin/setfont. If you accidentally updated the file, you can remedy the situation as discussed below):

Caveat: if during booting, you meet the error message putfont: PIO_FONT: Function not supported, Solve the problem as follows (as discussed here):

First, run command mv /bin/setfont /bin/setfont.old

Create a new file /bin/setfont with the following content:

#!/bin/bash

if ! uname -r | grep -q -e "-co-"
then
        /bin/setfont.old $@
fi

and make it executable by running chmod +x /bin/setfont

3. Run X

X.org is already installed in coLinux machine when we update the system as discussed in section 2.6 (we have include X USE flag). Therefore the remaining steps are just to install X server in Windows host.

We choose Xming considering it is lightweight and widely used. To install Xming, Download Xming installer, font installer and Xming-tools-and-clients. You may use Xming-mesa installer to replace Xming installer for stable OpenGL operation (only do so if you meet problems with Xming installer).

My settings during installation of Xming are as follows:

  • Xming
    • Destination directory: changed to c:\bin\Xming.
  • Xming-fonts
    • Destination directory: changed to the same directory as Xming (c:\bin\Xming)
    • Fonts to be installed: select according to your own taste.
  • Xming-tools-and-clients
    • extract the zip file of Xming-tools-and-clients to the directory where Xming is installed (c:\bin\Xming in this case).

Settings on Windows host

For file x0.hosts in Xming directory, make sure the IP address of coLinux machines (192.168.0.20) is added.

If you want to run the tools and clients bundled with Xming in Windows host, you need to type set DISPLAY=127.0.0.1:0 in your Windows host.

Following steps are used to enable Windows fonts to be used by X application. This step is optional.

Open a command prompt window, change to directory c:\bin\Xming, and type the following commands:

mkfontscale C:/WINDOWS/Fonts
mkfontscale -b -s -l C:/WINDOWS/Fonts

Make sure that directory C:\Windows\Fonts appeared in the file font-dirs in Xming directory.

On coLinux machine

Add the following line into /etc/profile.

export DISPLAY=192.168.0.1:0

After start Xming (preferably to start it automatically when Windows start), you can simply invoke any command inside Linux console like:

xterm &

4. Miscellaneous

Change host name

According to Gentoo Handbook.

Edit file /etc/conf.d/hostname, if you call your coLinux machine as tux, then set the following line.

HOSTNAME="tux"

Edit file /etc/conf.d/net, if you call your domain as homenetwork, then set the following line.

dns_domain_lo="homenetwork"

Remove string .\O from file /etc/issue to get rid of the annoying unknown_domain in the welcome message "This is host.unknown_domain ...".

Create regular user accounts

With the following command, I created a new user named foo as a powerful user (with the ability to su to root and also invoke some portage related commands). Pleas substitute foo above with your desired user name.

useradd foo -m -G users,wheel,portage
passwd foo

Access Windows folder

When we edit gentoo.conf above, we have already enabled coLinux to share folder c:\linux. To make our regular user to access this directory in Linux, edit file /etc/fstab and add the following line:

cofs00  /home/foo/windows  cofs  uid=foo,gid=foo,dmask=0755,fmask=0644 0 0

The above line will enable the Windows folder to be shared in Linux as a folder /home/foo/windows. You can modify above line for your own user.

Additional programs

Following is a list of commands to install my own favorite programs. Your situation would be of course different.

# Some system utilities
emerge gentoolkit slocate

# Development tools
echo "dev-lang/erlang hipe" >> /etc/portage/package.use
emerge aspell ruby sbcl erlang dev-util/git maxima

# Gfx (GLEidescope is one of my favorite XScreenSaver)
emerge inkscape blender xscreensaver

# Netowork
emerge mozilla-firefox

# X tools
emerge xlsfonts xfontsel

Before emerge texlive, I have to add a bunch of keywords for dependencies in /etc/portage/package.keywords as follows.

app-text/texlive ~x86
app-text/texlive-core ~x86
dev-texlive/texlive-metapost ~x86
dev-texlive/texlive-basic ~x86
dev-texlive/texlive-documentation-base ~x86
dev-texlive/texlive-psutils ~x86
dev-texlive/texlive-langcjk ~x86
dev-tex/cjk-latex ~x86
dev-texlive/texlive-documentation-english ~x86
dev-texlive/texlive-genericrecommended ~x86
dev-texlive/texlive-latexrecommended ~x86
dev-texlive/texlive-latex ~x86
dev-texlive/texlive-texinfo ~x86
dev-texlive/texlive-latex3 ~x86
dev-texlive/texlive-htmlxml ~x86
app-text/jadetex ~x86
dev-texlive/texlive-fontsrecommended ~x86
app-text/dvipdfm ~x86
dev-texlive/texlive-documentation-chinese ~x86
dev-texlive/texlive-langmanju ~x86

Use CVS version of Emacs

Run the following commands:

echo "app-editors/emacs-cvs ~x86" >> /etc/portage/package.keywords
emerge emacs-cvs

If you want to use this bleeding-edge version only, you can uninstall the previous version of Emacs (if you have installed) and type:

echo "virtual/emacs ~x86" >> /etc/portage/package.keywords

Otherwise (i.e. you have multiple versions of Emacs), when you emerge packages requiring Emacs, a stable version (e.g. v22.1) will be installed. For the multiple-version-installation, you can use eselect emacs list to see a list of available version. To use Emacs 23 just installed, you can type eselect emacs set emacs-23. For details, please consult here.

Emacs extensions

I run the following commands to install a few Emacs extensions. Note that in Gentoo, many extensions (e.g. those related to development) are automatically installed for you when you emerge the related tools and enable emacs USE flag.

echo "app-emacs/gentoo-syntax ~x86" >> /etc/portage/package.keywords
echo "app-emacs/imaxima ~x86" >> /etc/portage/package.keywords
emerge htmlize imaxima app-emacs/gentoo-syntax keywiz

Enable SSH server

You may want to enable SSH access to your coLinux machine. There are some benefits. Examples are shown below (assuming PuTTY is used):

  • More flexibilities to configure the client (e.g. pretty fonts) and nice scrollbars.
  • The title of PuTTY indicates what coLinux is doing (such information might be useful during a long emerge process).

To start SSH server, type the following commands.

rc-update add sshd default
/etc/init.d/sshd start

When you use PuTTY client, you should fill 192.168.0.20 as the host address to utilize the high speed internal connection.

GTK configrations

Change the default GTK+ font. Edit file ~/.gtkrc-2.0, add the following line, and change the font name and size to your preferred one.

gtk-font-name = "Arial 15"

Mount CD

Simply type the following

# mount -t iso9660 -o ro /dev/hdc /mnt/cdrom

Final Words

coLinux is an interesting way to run Linux applications in Windows host. One drawback of coLinux is that the daemon process is pinned to one processor only. This avoids some bizarre issues, however it does not utilize the potentials of modern multi-core systems. This is disappointing especially for a Gentoo user who requires lots of computation power. Hope the situation could be improved in the future.

Update: please refer this post on how to enable sound.

Thursday, January 17, 2008

Reading List

My previous post discussed my thoughts on how to read programming books, here comes my reading list of programming/computer science books. The books I have completed reading after this post are listed for each year, afterwards come the books I am reading and those I plan to read (all books I have completed before this post is not listed here). Note that this is a living document.


Reading

To Read


Update (2008-8-18): started to add books other than CS/programming, e.g. mathematics, physics, literature, communications.

Update (2009-2-25): replaced table format with lists (lists with year heading consists books completed in that year), partly because lists are easier to update, but mainly because that I tend to sneak more books into reading queue when no free "slots" available, which makes the table format itself somehow "cheating".

Update (2009-3-13): started to use Amazon widget; correct the 1st paragraph to reflect the status of reading.

Wednesday, January 16, 2008

Read Programming Books

Although learning programming can be achieved via online tutorials, reading books is still the preferred way for systematic learning (see some discussions here, here, and here from author's point of view). Following list is gathered along my adventure on reading programming books, especially on programming language books (for books not requiring active participations, it is recommended that you follow advice from Charles Petzold). Some suggestions are easier to be said than to be done, therefore the list is also a reminder to myself.

1. Select the right book

Reading a programming book requires enormous time and energy. Before embarking on the hundreds-hour-adventure, it is justified to spend sometime to select the correct path. Sometimes starting reading an excellent book itself is an achievement. So which book to read? The simplest solution is to search in Google or Amazon and select those with enthsiastic reviews. Google/Amazon are always handy since you can get more details/reviews on books. There are alternatives of course, as we will discuss below.

If you just want to read great programming books without any specific topics, you are lucky since this important question has already been discussed again and again. For example, you may refer to this Reddit thread, or you can consult the opinions of some outstanding programmers/bloggers (e.g. Steve Yegge's recommendations here and here, Joel Spolsky's advice, and Jeff Atwood's list).

If you do have some topics in mind (e.g. one particular programming language), there are various ways in addition to Google/Amazon approach.

  • Lookup in Wikipedia. Typically for one programming language, there will be one related article. At the end of the article, there is one References section, where you can find some interesting links to books.
  • Consult the FAQ of the language newsgroup. Normally, language X has one corresponding newsgroup like comp.lang.X. Generally the FAQ (sometimes quite outdated) of the newsgroup contains some book recommendations.
  • For some languages with official website (e.g. Haskell, Perl, and Python), you can easily find book recommendations in the site.

Let's name a few commonly recommended books for some programming languages: SICP (a.k.a. Wizard Book) for Scheme, Practical Common Lisp for Common Lisp, Programming Ruby (a.k.a. The PickAxe Book) for Ruby, and Javascript, the Definitive Guide (a.k.a. The Rhino Book) for the Next Big Language.

2. Setup programming environment and prepare related resources

You can't learn programming without getting your hands dirty. To study one programming language, you have to install necessary package(s). "Modern" programming books (e.g. Practical Common Lisp, Programming Ruby, Javascript, the Definitive Guide, and Programming Erlang) typically have one chapter getting you started. If your book does not contain such part, you can always consult online tutorials to setup the environment.

Typically the package contains some kind of editor or IDE for developing. You need to familiarize yourself with them either by reading your book or tutorial. For Emacs users, you can install related mode and simply fire up Emacs.

If the book is not so cutting-edge, you can find abundant resources in the web: source code, discussion on exercises, and even video lectures. You can bookmark or download these resources for your future reference. SICP is an excellent example here: great video lectures, and nice wiki to discuss solutions to exercises.

3. Practice, practice, and practice

You can't learn a language without sustained practice. We will focus on the examples and exercises contained in the book here.

When you read one example, simply reading is not enough. It is better if you type the example and run it. Note: type, not copy & paste. The reason is the same as when you write programs. After compilation, you think your code has done what it's supposed to do. But typically you need several iterations to make it right. Similar thing happens for reading. You think you understand the code on paper, but actually you do not. You should type it in and run it to really understand it. When you type, you can think about the meaning of the code, syntax and idioms associated simultaneously. A more paranoid yet effective way is that you first read the example, and then enter it without even referring to the book. You then run the code, analyze the results, and compare your code with the example supplied in the book.

Now for exercises. Do them all if you can. Excellent books come with excellent exercises, if any. You could gain more insight when you employ the techniques you just learned. (If you have any doubt on the value of exercises, you can look at Steve Yegge's example on how doing exercises can change a person's view about a language.) If you cannot solve one problem with serious try, you can leave it for a while and attack it later. If you really cannot handle it, you can refer to the solutions, which you can typically find online. Believe me, you can easily find the answers to these hard problems of excellent books in the web.

4. Develop hobby project

When you have already read several chapters of the book and feel comfortable to write a few small programs with the language you just learned, you may consider to setup some hobby projects. You can use the project to automate some day-to-day tasks, either in home or at work. Or you may try to implement/interface some (emerging) cool things (e.g. Google Chart API or Ray tracing) with the language you are learning. Make sure the skills to complete the project match the skills you just learned. You may meet some problems you cannot handle with the skills you just acquired. Don't panic. Just peep the later chapters of the book you are reading, or Google around. Try to finish the project if you can (and then you can blog about it if nobody has not done so or your way is quite interesting). If you cannot finish it, you can leave it for a later attempt. You may try several such projects when you progress in the reading. The further you progress, the more ambitious task you can try. Such hobby project itself can be viewed as extended exercises, but designed by you, instead of the author.

(Note: this section is largely influenced by a nice article/post related to reading On Lisp. Unfortunately I cannot find the URL now.)

5. Never give up

The last but not the least advice is that you should read the book from the beginning to the end. Spending a lot of time on one book but giving it up when approaching say one third of it is just wasting time. Since you only touched the surface of the book, which is easier to learn and also easier to forget. Authors arrange the books in such a way that you could linearly read along, which typically means that advanced topics come later. You may get stuck with one chapter and cannot understand the topics discussed there. At this point, don't give up. Remember that you can only achieve a higher level of understanding of one language/technique if you can understand the difficult part of it. Just read it, understand it, try it, or Google around to find different (maybe better) treatment of the topic. Attack this gnarly problem and you will gain lots from it. You have now learned some unique things of the language, you can now look at the language in a different yet more insightful view, and of course, you can now proceed further to read the great book and learn more.

Happy reading!

Update (2010-2-21): editorial corrections (thank you justin for your suggestions).

Monday, January 14, 2008

MID for Programmers

Lots of MIDs were showed off in CES 2008. However, none of them satisfy my requirements. What I need is a device for web surfing, RSS feed consuming, programming, and of course blogging. The one closest to my criterial is from LG, however I shunned away from Windows. Following is a list of features I expect an MID to have, from a programmer's perspective.

Mandatory factors:

  • Around 5 inch touchscreen. Size matters. The screen size is the most difficult factor when making tradeoffs. We want it smaller for portability (otherwise why not a gorgeous 17 inch MacBook Pro?), but not so small to hurt our eyes. 5 inch seems to strike a nice balance. At this size, 800x600 resolution seems to be preferred.
  • Full keyboard (similar as that of laptop in terms of keys equipped). Interface is critical. I am an Emacs fan, and the main usage of the MID is to try interesting programming ideas within Emacs and to compose blogs as well. Therefore I need the keyboard to have Ctrl and Alt equipped as a minimum. I also hope numerical keys have their independent positions (e.g. not shared with QWERTYUIOP as my Dopod 838, which is really painful). Keyboard from LG prototype satisfies all requirements here, therefore I do hope other vendors could follow suit.
  • Fast CPU. Gentoo is my favorite Linux distribution, therefore I may try to install it (somebody has already done so on Q1 Ultra). In addition to satisfy a power-demanding distribution, a powerful CPU is also a right for programmer even on such a tiny gadget.
  • Linux based OS. Linux will shine on MID, which is actually an old news. However, there are also devices running Windows at least for Menlow based MIDs, e.g. the one from LG. The reason for me to mandate Linux here is that I can easily install other flavors of Linux distributions if the device itself comes with one. With built-in Linux, we can make sure that source code for hardware is readily accessible: every vendor should learn something from the event of Eee PC GPL issues.
  • WiFi access. Connection is important. Without WiFi access, I guess we can remove Internet from the name of MID.
  • Miscellaneous. We should match the fast CPU with at least 512 MB RAM. 8 GB internal storage is a minimum to fool around. SD card slot is a must to connect the MID with other devices, and Bluetooth with A2DP support is necessary to avoid hairy wires.

Optional features:

  • Phone capability. This feature is actually desperately needed. However I doubt whether I could find one MID if I insist on this feature. There are various reasons for vendors to drop this feature: maturity of the needed software, regulation aspects, and marketing issues (imagine the impact on N95 if N810 is a phone) etc.
  • GPS. This is always a nice feature to enjoy.
  • Nice camera. Just imagine the wow moment when you use your 5-inch-LCD-digital-camera.

Finally, is it possible for MID + Android?

Saturday, January 12, 2008

Gentoo's Crisis

Sad to learn Gentoo's crisis from Slashdot. I unsubscribed from Gentoo newsletter several months ago (even the newsletter itself has not been updated for some time), and I do not have any clue on this crisis. But according to my knowledge, there is no Gentoo 2007.1 release, which is a dangerous signal. Although the periodical release in Gentoo itself is not as important as for other distributions (actually there is no impact for users who have already installed Gentoo), bleeding-edge release is a must for newcomers.

As a fan of Gentoo, I do hope that Robbins's offer will be accepted and all the issues will be sorted out quickly.