본문 바로가기

Server/Ubuntu

Ubuntu 14.x 한글 깨짐



우분투를 제대로 썼던건 9.x, 이후 근황이 궁금하여 12.xx대를 깔아봤었는데

이번 블로그 포스팅을 위해서 다시한번 14를 깔아보았다. 


매번 블로그를 찾아가면서 셋팅하는게 보통이었지만, 오늘은 포스팅을 직접 해보련다. 


복붙을 위해 ssh로 붙었고, Ubuntu Server이다. 



cirrus@192.168.2.9's password: 

Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64)


 * Documentation:  https://help.ubuntu.com/


  System information as of Wed Jul 29 20:07:31 KST 2015


  System load:  1.24               Processes:           161

  Usage of /:   0.3% of 456.40GB   Users logged in:     0

  Memory usage: 12%                IP address for eth1: 192.168.2.9

  Swap usage:   0%


  Graph this data and manage this system at:

    https://landscape.canonical.com/


156 packages can be updated.

108 updates are security updates.


Last login: Wed Jul 29 20:07:31 2015


1. 한글 설치여부를 확인하기 위해 

다음과 같은 명령어를 입력한다. 


cirrus@ubuntu:~$ aptitude search language-pack-ko

i   language-pack-ko                - translation updates for language Korean   

i A language-pack-ko-base           - translations for language Korean          

cirrus@ubuntu:~$ 


위처럼 i가 표기되어 있으면 Installed 되어있다는 뜻.


2. sudo /vi/environment

마지막줄에 이것을 추가한다. 


LANG="ko_KR.UTF-8"
LANGUAGE="ko_KR:ko:en_GB:en"



3. sudo vi /etc/profile


# The default umask is now handled by pam_umask.

# See pam_umask(8) and /etc/login.defs.


if [ -d /etc/profile.d ]; then

  for i in /etc/profile.d/*.sh; do

    if [ -r $i ]; then

      . $i

    fi

  done

  unset i

fi

LANG="ko_KR.UTF-8" # Cirrus : 이 내용을 추가해준다 !

~                              


4. vi ~/.bashrc

해당 파일의 맨 아랫줄에
export LANG=C

를 추가해주세요.



사실 이 단계는 열람하는 콘솔의 언어셋을 지정하는 거라 한글을 잘 셋팅해놓은 맥에선 문제없이 한글이 표시되고 있었다. 

서버에 직접 KVM을 붙여 확인하였을 때 한글 확인이 되지 않으므로 추가하여야 한다. 


5. 재부팅하면?  짜잔~