Centos 設置時區和時間以及增長中文輸入法

增長中文輸入法:python

1.用root登陸 ,或su root
2.yum install "@Chinese Support"
3.exit
4.回到桌面,system->preferences->input method>Input Method Preferences>Input Method 下拉選擇拼音 Add 進列表中,下次登入便可生效。windows

PS: 系統的 Python 更新到 Python3 後沒法選擇 Input Method Preferences,解決辦法爲:ui

在terminal中打開/usr/libexec/ibus-ui-gtk/usr/ bin/ibus-setup/usr/libexec/ibus-engine-table並把其中到「exec Python」改成「exec python2.6」。.net

設置時區和時間:terminal

# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimeget

# ntpdate time.windows.com && hwclock -w  //聯網更新時間input

# date -R; date +%z  //查詢時間及時區it

系統語言設置成中文或英文:table

# vi /etc/sysconfig/i18nclass

LANG=zh_CN.UTF-8  # 設置成中文

# reboot

# vi /etc/sysconfig/i18n

LANG=en_US.UTF-8  # 設置成英文

# vi /etc/profile

export LANG=en_US.UTF-8  # 設置成英文

# reboot 

相關文章
相關標籤/搜索