locale_change
Updated:
Contents
每次重装ubuntu之后,有意见非常头痛的事情便是输入法的配置。这次备份一下,方便未来。
将语言环境变量改成中文
查看当前语言环境:
locale
编辑配置文件,将en-US.UTF_8改成zh_CN.UTF-8。
sudo vim /etc/default/locale
LANG=”zh_CN.UTF-8”
LANGUAGE=”zh_CN:zh”
继续查看locale
如果出现一下的错误:
dby@sys:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory应该是没有安装zh_CN.UTF-8
- 安装方法:
cd /usr/share/locales
sudo ./install-language-pack zh_CN.UTF-8
安装输入法
资料推荐:
- http://wiki.ubuntu.org.cn/%E4%BF%AE%E6%94%B9locale
- http://blog.csdn.net/ydonghao2/article/details/9343171
100days—第1天—001