2013年5月11日 星期六

Thinkpad Trackpoint on Debian Wheezy

After install Debian Wheezy, Thinkpad X61 trackpoint can not scroll well.
Add a device configuration about trackpoint in X.org.

Step:
1. Create a directory under /etc/X11
    >> mkdir /etc/X11/xorg.conf.d
2. Create configuration
    >> touch /etc/X11/xorg.conf.d/20-thinkpad.conf
3. Add description for Trackpoint device
    /etc/X11/xorg.conf.d/20-thinkpad.conf
    
    Section "InputClass"
      Identifier "Trackpoint Wheel Emulation"
      MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device"
      MatchDevicePath "/dev/input/event*"
      Option "EmulateWheel" "true"
      Option "EmulateWheelButton" "2"
      Option "Emulate3Buttons" "false"
      Option "XAxisMapping" "6 7"
      Option "YAxisMapping" "4 5"
     EndSection

Reference:

Change GNOME default Chinese directory name

After I install Debian by select Chinese, the default directory will like 下載,公用 ,音樂, 桌面,文件, 範本.
But it's not easy to use under console.
I want directory look like: Downloads, Public, Music, Desktop, Documents, Templates.

We can use "xdg-user-dirs-gtk-update" to modify it.

Step:
1. >> export LANG=en_US
2. >> xdg-user-dirs-gtk-update
    Then press YES
3. >> export LANG=zh_TW.UTF-8