Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Ubuntu 安裝 SCIM 中文輸入法完整教學(舊版參考)

編輯:Linux 教學

注意:本文內容適用於 Ubuntu 10.04 等舊版本。現代 Ubuntu(18.04+)預設使用 IBus 或 Fcitx5 框架,SCIM 已不再維護,建議改用 ibus-libpinyin、fcitx5-chinese-addons 或 fcitx5-rime。


舊版安裝步驟(僅供歷史參考)

  1. 移除系統預安裝的舊版 SCIM
    sudo apt-get remove scim
  2. 安裝 SCIM 核心平台
    sudo apt-get install scim
  3. 安裝中文支援模組
    sudo apt-get install scim-chinese
  4. 建立 X11 輸入法啟動腳本
    sudo gedit /etc/X11/Xsession.d/95xinput

    在檔案中寫入:

    /usr/bin/scim -d
    XMODIFIERS="@im=SCIM"
    export XMODIFIERS
    export GTK_IM_MODULE=scim
    export QT_IM_MODULE=scim
  5. 登出並重新登入,按 Ctrl+Space 應可啟用中文輸入。

現代 Ubuntu 推薦方案(2024+)

方案一:IBus + libpinyin(官方預設,穩定)

sudo apt update
sudo apt install ibus-libpinyin
ibus restart

進入「設定」→「語言支援」→「鍵盤輸入法系統」選 IBus,重新登入後在 IBus 偏好設定新增「Chinese (Intelligent Pinyin)」。

方案二:Fcitx5 + Rime(高度可定製、支援注音/倉頌/五筆)

sudo apt update
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-rime fcitx5-config-qt
im-config -n fcitx5

重新登入後執行 fcitx5-configtool 新增 Rime 輸入法,並依需求調整方案(預設有朙月拼音、注音、倉頌等)。

方案三:Fcitx5 + 庫拼音(類搜狗體驗)

sudo apt install fcitx5 fcitx5-pinyin-zhwiki fcitx5-config-qt
im-config -n fcitx5

啟用「庫拼音」即可享受雲詞庫聯想、整句輸入體驗。

常見問題排查

  • 輸入法不顯示:確認環境變數 GTK_IM_MODULE、QT_IM_MODULE、XMODIFIERS 正確設定於 ~/.xprofile 或 ~/.profile。
  • 無法切換中英文:檢查 IBus/Fcitx5 設定中的「切換鍵」是否與桌面環境快捷鍵衝突。
  • Wayland 下無法輸入:確保使用 fcitx5 或新版 ibus,並安裝 fcitx5-frontend-gtk3/4、fcitx5-frontend-qt5/6。

選擇現代、活躍維護的輸入法框架,能獲得更好的相容性、效能與功能更新。SCIM 時代已成歷史,建議遷移至 IBus 或 Fcitx5 生態系。

Copyright © Windows教程網 All Rights Reserved