1.換源
換成國內源
參考我的另一篇文章
2.更新
sudo apt-get update
3.安裝
sudo apt-get install ibus ibus-pinyin
sudo apt-get install zenity
sudo apt-get install zenity
im-config
點擊ok
點擊yes
選擇ibus,點擊ok
點擊ok
退出終端,註銷賬號,重新登錄
點擊右上角的i框,再點擊IBus Preferences中的Input Method,再點擊右邊的Add。
在彈出的框中選擇Chinese,選擇拼 Pinyin,點擊Add。
可以看到Input Method中出現了剛纔選的拼音,點擊close
4.編寫
cd ~
vi .bashrc
在最後添加
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
5.重啓
sudo reboot
6.切換
點擊右上角切換