Solaris 한글 환경설정

Posted 2008. 11. 28. 17:58


### 출처 : www.bigcom.co.kr ### 
 
 
시스템 사용시 한글 사용을 위해 점검해야할 사항 
---------------------------------------------- 
 
1. O/S를 한글버젼으로 설치했는지 확인한다. 
   한글 팩키지 설치 확인 
   # pkginfo | grep  Korean 
 
2. /etc/default/init : 
   시스템에서 사용되는 Language와 TIMEZONE을 아래와 같이 지정한다 
   (/etc/TIMEZONE과 hard link 되어 있으므로 둘중 하나만 수정) 
   TZ=ROK 
   LANG=ko ;한글과 영문을 사용하는 경우 
   LANG=C  ;영문만 사용하는 경우 
 
   cf) CDE 초기환경이 한글로 안뜰때 위의 사항 체크 
 
3. 계정(user) 환경설정 : .cshrc, .profile 정의. 
 
  - csh : .cshrc 화일에 아래와 같이 정의 
 
    setenv LANG ko 
    stty cs8 -istrip -parenb 
 
  - sh 또는 ksh :.profile 화일에 아래와 같이 정의 
 
    LANG=ko 
      export 
      stty cs8 -istrip -parenb 
 
4. 환경 설정 확인 
 
  % env | grep LANG 
  LANG=ko 
 
  % /bin/stty -a|grep cs8 
  -parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts 
                  
  % /bin/stty -a|grep istrip 
  -ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc