CentOS设置中文环境(解决ssh远程乱码)
2014-05-27 16:50
405 查看
一、乱码产生的原因
新安装的centos操作系统经常会出现中文显示乱码的情况,这主要是在安装的时候选择了非中文语言环境从而导致系统不支持中文引起的。
二、解决方法
1、安装中文环境支持包[root@centos ~]# yum groupinfo
Chinese-support
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached
hostfile
*
base: mirrors.grandcloud.cn
*
extras:
mirrors.grandcloud.cn
*
updates:
mirrors.grandcloud.cn
Group: 中文支持
Language:
zh
Default
Packages:
cjkuni-ukai-fonts
cjkuni-uming-fonts
ibus-table-cangjie
ibus-table-erbi
ibus-table-wubi
wqy-zenhei-fonts
Optional
Packages:
cjkuni-fonts-ghostscript
Conditional
Packages:
autocorr-zh
eclipse-nls-zh
eclipse-nls-zh_TW
ibus-chewing
ibus-pinyin
kde-i18n-Chinese
kde-i18n-Chinese-Big5
kde-l10n-Chinese
kde-l10n-Chinese-Traditional
libreoffice-langpack-zh-Hans
libreoffice-langpack-zh-Hant
[root@centos ~]# yum
groupinstall Chinese-support
2、设置i18n文件
(1)关于i18n文件
/etc/sysconfig/i18n是系统区域语言设置文件。i18n是国际化与本地化(英文:Internationalization and
Localization)的简写(字母i和n之间正好有18个字母)。在资讯领域,通常是指调整软件,使之能适用于不同的语言和地区。
(2)中文环境设置如下:
[root@centos ~]# vim
/etc/sysconfig/i18n
#设置系统语言
#LANG="zh_CN.UTF-8"
#屏蔽默认的UTF-8编码,用GB18030替代
LANG="zh_CN.GB18030"
#使用中文
#设置系统支持的语言
SUPPORTED="zh_CN.UTF-8:zh_CN.GBK:zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
#设置控制台终端字体
相关文章推荐
- [置顶] SSH远程连接CentoS 中文乱码解决
- 解决CentOS6.4 用SSH远程连接时显示中文乱码的问题
- CENTOS通过SSH远程连接中文显示乱码解决方法
- CentOS下设置中文编码设置和中文乱码解决
- 解决ssh工具远程连接linux出现中文乱码问题
- 【Linux利用远程SSH连接】SecureCRT中文出现乱码解决办法 Linux服务器技术
- CentOS6.5解决中文乱码与设置字符集
- centos 系统设置为中文后出现乱码解决办法
- 【Linux利用远程SSH连接】SecureCRT中文出现乱码解决办法 Linux服务器技术
- CentOS6.5解决中文乱码与设置字符集
- CentOS6.5解决中文乱码与设置字符集
- centos 5.5 ssh 中文乱码解决
- 解决ssh终端CentOS后中文显示乱码
- centos 7.2中xampp mysql 数据字符集设置解决中文乱码
- SSH Secure Shell 3.2 连接 CentOS7 解决中文乱码的问题
- 远程ssh连接linux解决可能出现的中文乱码
- Centos 解决中文乱码与设置字符
- CentOS6.5解决中文乱码与设置字符集
- gedit 没有preference项,使preference回归,并用命令行设置行号,解决centos7下中文乱码,text wrapping等问题
- SecureCRT中文乱码解决方法--字符集设置(Linux环境)