對於 Ubuntu 用戶,如果之前沒有配置 ubuntu-cn 的源的話,需要配置一下 apt 源。例如使用 cn99.com 的設置:
deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse
sudo apt-get upgrade
sudo apt-get install locale-pinyin
LC_COLLATE="zh_CN.UTF-8"
tar xzf locale-pinyin.tar.gz
cd locale-pinyin
./configure
make
make install然後編輯 /etc/profile 或者 ~/.profile,如同 Ubuntu 用戶一樣
export LC_COLLATE="zh_CN.UTF-8"完成安裝、修改之後,重啓 X Window 或者註銷用戶,重新登錄系統,以上修改即完全生效。