1. 程式人生 > 實用技巧 >lubuntu(18.04) 安裝中文輸入法,安裝 googlepinyin

lubuntu(18.04) 安裝中文輸入法,安裝 googlepinyin

我愛 lubuntu 勝過愛維C

一 安裝 fcitx(fcitx是輸入法框架,ubuntu自帶)
在這裡插入圖片描述

sudo apt-get install fcitx
sudo apt-get install fcitx-googlepinyin
sudo apt-get install fcitx-config-gtk fcitx-frontend-all fcitx-frontend-gtk3 fcitx-ui-classic
sudo apt-get install -f

二 配置環境變數

vi ~/.bashrc

插入一段配置
###fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

export XMODIFIERS="@im=fcitx"
fcitx-autostart

在這裡插入圖片描述

sudo roboot

三 更改一下input配置
找到語言設定
如圖
在這裡插入圖片描述
四 新增輸入法
如圖
在這裡插入圖片描述
預設 Crlt+Space是切換輸入法在這裡插入圖片描述
五 使用
在這裡插入圖片描述