Centos 设置时区和时间以及增加中文输入法

增加中文输入法:

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

PS: 系统的 Python 更新到 Python3 后无法选择 Input Method Preferences,解决办法为:

在terminal中打开/usr/libexec/ibus-ui-gtk/usr/ bin/ibus-setup/usr/libexec/ibus-engine-table并把其中到“exec Python”改为“exec python2.6”。

设置时区和时间:

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

# ntpdate time.windows.com && hwclock -w  //联网更新时间

# date -R; date +%z  //查询时间及时区

系统语言设置成中文或英文:

# vi /etc/sysconfig/i18n

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 

原文地址:https://www.cnblogs.com/liuliu3/p/5111704.html