Connect to fedora core2 through SSH in Windows
It is mainly because the fedora core2 encoding is UTF-8, so it cannot be correctly displayed.
1. temporary solution:
Run the following command every time you log on via SSH:
Chinese: Export lang = zh_cn.gb2312
English: Export lang = "en_us"
Export lc_all = "en_us"
For example, [root @ localhost ~] # Export lang = zh_cn.gb2312
2. (FIND) a stable solution:
The SSH terminal is garbled in as4, but as3 does not. Copy the/etc/sysconfig/i18n file in as3 to as4.
I18n file under as3
--------------------------
Lang = "zh_cn.gb18030"
Language = "zh_cn.gb18030: zh_cn.gb2312: zh_cn"
Supported = "zh_cn.gb18030: zh_cn: ZH"
Sysfont = "lat0-sun16"
Sysfontacm = "8859-15"
I18n file under as4
------------------
Lang = "zh_CN.UTF-8"
Supported = "zh_CN.UTF-8: zh_cn: ZH"
Sysfont = "latarcyrheb-sun16"
I use
------------------
Lang = "zh_cn.gb18030"
Language = "zh_cn.gb18030: zh_cn.gb2312: zh_cn"
Supported = "zh_cn.gb18030: zh_cn: Zh: en_US.UTF-8: en_us: en"
Sysfont = "lat0-sun16"
Sysfontacm = "8859-15"
/Usr/share/doc/initscripts-*/sysconfig.txt explanation:
--------------------------------------------------------------------
Lang = set locale for all categories, can be any two letter ISO
Language code
Lc_ctype = localedata configuration for classification and conversion
Of Characters
Lc_collate = localedata configuration for collation (sort order)
Strings
Lc_messages = localedata configuration for translation of yes and no
Messages
Lc_numeric = localedata configuration for non-monetary numeric data
Lc_monetary = localedata configuration for monetary data
Lc_time = localedata configuration for date and time
Lc_all = localedata configuration overriding all of the above
Language = Can Be A: separated list of ISO language codes
Linguas = can be a' separated list of ISO language codes
The above variables are used in/etc/profile. d/lang. Sh.
Sysfont = any font that is legal when used
/Usr/bin/consolechars-F $ sysfont...
(See console-Tools Package for lelechars command)
Unimap = any SFM (screen font map, formerly called Unicode Mapping
Table-see consolechars (8 ))
/Usr/bin/consolechars-F $ sysfont -- SFM $ unimap
Sysfontacm = any ACM (Application charset map-see consolechars (8 ))
/Usr/bin/consolechars-F $ sysfont -- ACM $ sysfontacm
The above is used by the/sbin/setsysfont command (which is run
By RC. sysinit at boot time .)