Ubuntu 14.04 主機的終端機中文顯示

在Ubuntu 12.04 及Ubuntu 14.04 我們利用Terminal登入主機 卻不能顯示中文  一定要顯示中文時
請如下修改
1.編修 /var/lib/locales/supported.d/local 檔案
zh_TW BIG5
en_US.UTF-8 UTF-8
加入 zh_TW.UTF-8 UTF-8

zh_TW BIG5
en_US.UTF-8 UTF-8
zh_TW.UTF-8 UTF-8


2.重新製作local sudo  locale-gen


3. 修改預設的顯示語系 /etc/default/locale
sudo vim /etc/default/locale
全改為zh_TW.UTF-8
如下所示
LANG="zh_TW.UTF-8"
LANGUAGE="zh_TW.UTF-8"
LC_NUMERIC="zh_TW.UTF-8"
LC_TIME="zh_TW.UTF-8"
LC_MONETARY="zh_TW.UTF-8"
LC_PAPER="zh_TW.UTF-8"
LC_NAME="zh_TW.UTF-8"
LC_ADDRESS="zh_TW.UTF-8"
LC_TELEPHONE="zh_TW.UTF-8"
LC_MEASUREMENT="zh_TW.UTF-8"
LC_IDENTIFICATION="zh_TW.UTF-8"

這樣登出再登入就可以看到中文了


標籤: Ubuntu Linux
評論: 0 | 引用: 0 | 閱讀: 11458