1. 安裝所需要的漢語語言包
sudo apt-get install language-pack-zh-hans
2. 安裝谷歌拼音輸入法
sudo apt-get install fctix-googlepinyin
3. 設定鍵盤的輸入方式為 fctix
System Settings --> Language Support --> Language : Keyboard input method system
4. 重新開機電腦,将 fctix 輸入法架構添加進來
sudo reboot
5. 進行輸入法配置
ctrl + alt + t 打開終端
輸入 fctix-configtool 進行輸入法配置
input Method 中點選 + 号 搜尋 pinyin 選擇 google pinyin
6. 至此 ubuntu 中文輸入法的配置完成,可以通過 ctrl + space 進行輸入法的切換