一、ubuntu设置
1、在/var/lib/locales/supported.d/local文件中添加一行:
zh_CN.UTF-8 UTF-8
执行sudo locale-gen下载文件
2、在/etc/environment文件中添加两行:
LANG=”zh_CN.UTF-8”
LC_ALL=”zh_CN.UTF-8”
3、在~/.profile文件中添加两行:
export LANG=”zh_CN.UTF-8”
export LC_ALL=”zh_CN.UTF-8
执行source ~/.profile
二、secureCRT设置
1、选择options – session options,弹出设置窗口
2、选择terminal – emulation,terminal下拉表选择linux,并在”ansi color”前面方框打上勾
3、选择terminal – appearance,”current color scheme”选择traditional
font字体选择fangsong,script选择”Chinese GB2312”
character encoding下拉表选择utf-8
退出当前crt窗口,重新登录试试!