step 1:設置root帳號密碼
輸入命令:
sudo passwd root
根據提示輸入root帳號密碼。
step 2:保證以root帳號權限進行後續操作
如果不是用root帳號登錄系統
輸入命令:
su root -p
然後輸入root帳號密碼。
如果是用root帳號登錄系統,該step略過。
step 3:安裝git,從git上獲取輸入法程序
輸入命令:
apt-get install git-core
git clone git://github.com/tchaikov/scim-googlepinyin.git
cd scim-googlepinyin/
step 4:準備編譯輸入法程序,安裝幾個幫助編譯的程序
輸入命令:
aptitude install autotools-dev libgtk2.0-dev libscim-dev libtool automake
apt-get install scim
step 5:編譯
輸入命令:
./autogen.sh
make
make install
step 6:系統中設置scim爲默認輸入法:
見下圖:
System-->Administration-->Language Support
在最後一行,選擇scim。點擊“Apply System-Wide”
step 7:重啓scim:
輸入命令:
pkill scim
scim -d
step 8:restart系統。
假如restart系統後(有人說只要切換用戶,不必要重啓系統。我經過試驗,發現這種說法是錯誤的),發現還是不能輸入中文,重複step7
附:在終端裏,鼠標右鍵“input methods”,選擇“SCIM input method”後,在終端裏也可以輸入中文了。