Wednesday, December 26, 2007

autostart scim under KDE4

Yesterday I installed KDE4 on my linux system. I wanted to automatically start the chinese input method support scim after log into the KDE4 desktop from kdm. I took some advices from internet and added .xim in my home directry. The content of the .xim is as follows:

export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_SWITCHER=imsw-multi
export QT_IM_MODULE=scim
scim -d


However it didn't work. I checked the .xsession and found that the .xim was not called at all. After grepping in /etc, I found that KDE4 uses its own Xsession under /etc/kde4/kdm instead of the standard one under /etc/X11/xdm. After I added this line

[ -f $HOME/.xim ] && . $HOME/.xim

before calling startkde in the Xsession file, it worked like a charm!

Sunday, November 04, 2007

crysis demo looks nice.

Yesterday I downloaded the crysis demo and played a little bit. The graphics and physics effects look great. On my 3-year old laptop with a 1.6G centrino CPU and Raedon 9700 graphics card it runs still quite fluently.

Some tips if you're new to this game:
1. Don't waste your ammo. It's limited! However you can pick up guns when killing an enemy and take their ammos.
2. Use the jeep equipped with a machine gun, which seems to have infinite ammo. Mind your driving!
3. Press "V" key and try some options there.

Good job, Crytek.