For Xubuntu 25.10, the process is similar but with some XFCE-specific steps. Here's how to set up Chinese language support and input methods:

  1. Install Chinese Language Support
    System Language Packages
    sudo apt update
    sudo apt install language-pack-zh-hans language-pack-zh-hans-base
    Fonts (Recommended)
    sudo apt install fonts-noto-cjk fonts-wqy-microhei fonts-wqy-zenhei
  2. Install Chinese Input Method
    Option A: Fcitx5 (Modern, Recommended)
    Fcitx5 works better with newer Xubuntu versions:
    sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk4 fcitx5-frontend-gtk3 fcitx5-frontend-qt5
    Configure Fcitx5:
    Log out and log back in
    Run in terminal: fcitx5-configtool
    Click +​ → uncheck "Only Show Current Language"
    Search for and add:
    Pinyin​ (for simplified Chinese)
    Shuangpin​ (if you use double pinyin)
    Auto-start:
    echo "fcitx5 -d" >> ~/.xprofile
    Option B: IBus (Simpler)
    sudo apt install ibus-libpinyin ibus-gtk ibus-gtk3
    Configure IBus:
    Open Settings​ → Session and Startup
    Go to Application Autostart​ tab
    Add: ibus-daemon -drx
    Run: ibus-setupto configure
  3. Set System Language to Chinese
    Change Display Language
    Open Settings Manager​ → Language
    Click Add Language
    Select 中文 (简体)
    Drag it to the top of the list
    Log out and log back in
    Alternative: Using Terminal

    Set locale

    sudo update-locale LANG=zh_CN.UTF-8

Or for specific components

sudo update-locale LC_TIME=zh_CN.UTF-8 LC_NUMERIC=zh_CN.UTF-8

  1. Set Up Input Switching
    For Fcitx5:
    Default shortcuts:
    Switch input method: Ctrl + Space
    Switch between languages: Super + Space
    Change shortcuts:
    fcitx5-configtool
    Go to Global Options​ → Trigger Input Method
    For IBus:
    Switch input: Super + Space
    Configure: ibus-setup
  2. Fix Common Issues
    Input Method Doesn't Show

    Check if running

    fcitx5-remote # Should return 0

    If not, start it

    fcitx5 -d

Or for IBus

ibus restart
Missing Tray Icon
sudo apt install fcitx5-module-xorg
Then add to ~/.xprofile:
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5
Font Rendering Issues

Install font config

sudo apt install fontconfig-config

Rebuild font cache

fc-cache -fv

  1. Complete Setup Script
    Run this for a complete setup:

    !/bin/bash

    Chinese support for Xubuntu 25.10

    sudo apt update
    sudo apt install -y \
    language-pack-zh-hans \
    fonts-noto-cjk \
    fonts-wqy-microhei \
    fcitx5 \
    fcitx5-chinese-addons \
    fcitx5-frontend-gtk4 \
    fcitx5-frontend-gtk3

Create config files

cat > ~/.xprofile << EOF
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5
fcitx5 -d &
EOF

echo "Install complete. Please log out and log back in."

标签: none

仅有一条评论

  1. [...]一、在centos7上安装kvmhttp://qianlongoffice.gicp.net/index.php/archives/171/二、kvm虚拟机镜像的选择与下载三、设置kvm宿主机为桥接模式四、kvm虚拟机安装中文语言包http://qianlongoffice.gicp.net/index.php/archives/196/五、虚拟机下安装anaconda虚拟环境六、安装google[...]

添加新评论