리눅스에서 telnet 이나 ssh로 접속했을 때 한글 깨짐 현상해결
[root@localhost sysconfig]# echo $SHELL
/bin/bash
----------------------------------------------------------------------------------
설정파일 위치 : /etc/sysconfig/i18n
[root@localhost ~]# cd /etc/sysconfig/
[root@localhost sysconfig]# ls
apm-scripts desktop iptables network-scripts sendmail
apmd dund iptables-config networking smartmontools
auditd firstboot irda nfs syslog
authconfig grub irqbalance nspluginwrapper system-config-securitylevel
autofs hidd kernel ntpd system-config-users
bluetooth hsqldb keyboard pand udev-stw
cbq httpd krb524 pm-action vncservers
clock hwconf kudzu prelink wpa_supplicant
conman i18n mkinitrd readonly-root
console init modules rhn
cpuspeed ip6tables netconsole saslauthd
crond ip6tables-config network selinux
----------------------------------------------------------------------------------
현재 시스템 로케일 확인 : #locale
[root@localhost sysconfig]# locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_PAPER="ko_KR.UTF-8"
LC_NAME="ko_KR.UTF-8"
LC_ADDRESS="ko_KR.UTF-8"
LC_TELEPHONE="ko_KR.UTF-8"
LC_MEASUREMENT="ko_KR.UTF-8"
LC_IDENTIFICATION="ko_KR.UTF-8"
LC_ALL=
----------------------------------------------------------------------------------
[root@localhost sysconfig]# cat i18n
LANG="ko_KR.UTF-8" -->최초 초기 지원 언어 지정(부팅시사용할언어패키지)
----------------------------------------------------------------------------------
[root@localhost sysconfig]# cat i18n
LANG="ko_KR.eucKR"
SYSFONT="latarcyrheb-sun16" -->사용할언어패키지의글자폰트지정(latarcyrheb-sun16)
----------------------------------------------------------------------------------
[root@localhost sysconfig]# bash --> 쉘을 적용해줌
[root@localhost sysconfig]# locale
LANG=ko_KR.eucKR
LC_CTYPE="ko_KR.eucKR"
LC_NUMERIC="ko_KR.eucKR"
LC_TIME="ko_KR.eucKR"
LC_COLLATE="ko_KR.eucKR"
LC_MONETARY="ko_KR.eucKR"
LC_MESSAGES="ko_KR.eucKR"
LC_PAPER="ko_KR.eucKR"
LC_NAME="ko_KR.eucKR"
LC_ADDRESS="ko_KR.eucKR"
LC_TELEPHONE="ko_KR.eucKR"
LC_MEASUREMENT="ko_KR.eucKR"
LC_IDENTIFICATION="ko_KR.eucKR"
LC_ALL=
----------------------------------------------------------------------------------
[root@localhost sysconfig]# setup
한글이 정상적으로 보인다.