macsplex.com 로그인

검색

조회 수 203 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
Extra Form
Gentoo Linux에서 console에서 한글을 사용하기 위해

여러 삽질 끝에 unicon을 설치한 과정을 적어봅니다.



우선 김병래님의 사이트(http://www.okpos.com)가 많은 도움이 되었습니

다.

debianusers.org에서 이정필님의 글

(http://debianusers.org/stories.php?story=02/08/18/9272628)

이 결정

적으로 도움이 되었습니다.



우선 pth 와 newt를 설치합니다.

emerge pth

emerge newt



kernel source를 다운받습니다.

emerge sys-kernel/gentoo-sources



현재 linux kernel version 2.4.19 가 다운될 겁니다.



http://debianusers.org/upload/23/20020809003703/unicon-

kernel-2..4.19.patch.gz

에서 unicon kernel patch를 다운받습니다.



cp unicon-kernel-2.4.19.patch.gz /usr/src/

cd /usr/src/linux

bzip2 -cd ../unicon-kernel-2.4.18.patch.bz2 | patch -p1



gentoo linux kernel 에다가 patch를 해도 한군데가 hunk가 나긴 해도 아



문제가 없습니다.

original linux kernel 과 gentoo linux kernel 이 약간 차이가 있지만 정상



으로 patch 가 됩니다.(Documentation/Configure.help 가 차이가 있더군

요)

make menuconfig 또는 config , xconfig에서

video mode selection support 와 frame buffer , unicon을 반드시 선택



여야 하겠죠.



make dep && make clean bzImage modules modules_install

mv /boot/bzImage /boot/bzImage.orig (만약을 대비해서)

cp /usr/src/linux/arch/i386/boot/bzImage /boot



김병래님의 사이트(www.okpos.com)에서 다음을 다운받습니다.

unicon-3.0.4-20010924.tar.gz

unicon-3.0.4-korean-1.0.7.patch.bz2



tar zxf unicon-3.0.4-20010924.tar.gz

cd unicon-3.0.4

bzip2 -cd ../unicon-3.0.4-korean-1.0.7.patch.bz2 | patch -p1

chmod 755 `find . -name "*install*" -print` && chmod 755

`find . -

name "*INSTALL*" -print`



cd unikey

여기서 xl_* 으로 시작하는 화일들에

#include <linux/malloc.h>을

#include<linux/slab.h>로 고쳐줍니다.



이부분에서 kltp에서의 팁으로...(^^님 감사)

find ./ -name "xl*.c" -exec perl -pi -e 's/malloc.h/slab.h/g' {} ;



/usr/src/linux/include/linux/include에서 malloc.h를 확인해 보십시요.

(이것의 이유를 아시는 분 댓글 바랍니다.)



cd ..

./configure --prefix=/usr

make

make install

make data

make data-install



cp scripts/unicon-init.ko /etc/init.d/unicon

chmod 755 /etc/init.d/unicon

rc-update add unicon default



/etc/init.d/unicon을 약간 수정해주는것이좋을듯



echo -ne "."

modprobe unikey >/dev/null 2>&1

echo -ne "."

# for i in `seq 1 6` ; do

# if [ -e /etc/redhat-release -a -x /bin/consolechars ] ;

then

# consolechars --tty=/dev/tty$i --screen-font-

map=/usr/lib

/unicon/direct.uni

# else

# loadunimap -c /dev/tty$i /usr/lib/unicon/direct.uni

# fi

# echo -ne "."

# done



loadunimap /usr/lib/unicon/direct.uni



modprobe encode-kscm >/dev/null 2>&1

echo -ne "."

modprobe encode-jis >/dev/null 2>&1

위와 같이 해주어야 불필요한 warning메세지를 줄일수 있을듯

그리고 끝부분쯤의

/etc/rc.d/init.d/gpm restart부분도

/etc/init.d/gpm stop

/etc/init.d/gpm start 으로 수정



kernel 옵션으로 vga=0x303 을 /boot/grub/menu.lst 에 줍니다.

800x600이상이 되어야 입력 글자가 상태바에 정확히 나타나더군요.

(당연히 grub을 설치하셨겠지요)

see "Documentation/fb/vesafb.txt" in linux kernel source.

color 640x480 800x600 1024x768 1280x1024

256 0x301 0x303 0x305 0x307

32k 0x310 0x313 0x316 0x319

64k 0x311 0x314 0x317 0x31a

16M 0x312 0x315 0x318 0x31b



mknod /dev/unikey c 10 202 (이것도 필요없을 듯 devfs를 커널옵션으



주었겠지요)



.bashrc등에

export LANG=ko_KR.eucKR



중간에 unicon을 중지시킬 때

/etc/init.d/unicon stop

다시 시작할 때

/etc/init.d/unicon start



폰트 바꾸기는 이정필님의 글

(http://debianusers.org/stories.php?story=02/08/18/9272628)

아래부분 참조

폰트 크기가 16만 되더군요. 다른 경우는 깨집니다.

백묵굴림 16 으로 하면 아주 좋더군요.




--------------------------------------------------광고(Advertising)-------------------------------------------------------------------------------------


TAG •

리눅스 Tip

Linux Tip

  1. 하드속도체크 명령어

    Read More
  2. 프로세스 강제종료

    Read More
  3. 편리하게 이미지크기, 이미지 회전이 필요할때

    CategoryFedora
    Read More
  4. 페도라에서 VLC를 설치하고 싶을때

    CategoryFedora
    Read More
  5. 페도라 방화벽포트열기

    CategoryFedora
    Read More
  6. 파이어폭스 시작페이지가 변경이 되지 않을때

    CategoryUbuntu
    Read More
  7. 지메일을 리눅스 파일시스템으로 쓰는 방법

    Read More
  8. 젠투에서 한글콘솔 유니콘사용법

    Read More
  9. 젠투리눅스 백업 스크립트 예제

    Read More
  10. 웹분석프로그램 분석사이트

    Read More
  11. 웹로그분석툴 GoAccess

    CategoryDebian
    Read More
  12. 워드프레스 고유주소 nginx 설정

    CategoryDebian
    Read More
  13. 우분투에서 윈도우7 설치 USB 만들기(WinUSB)

    CategoryUbuntu
    Read More
  14. 우분투에서 안드로이드 스튜디오 설치방법

    CategoryUbuntu
    Read More
  15. 우분투에서 iso 파일만들기

    CategoryUbuntu
    Read More
  16. 우분투에서 7zip 프로그램 설치

    CategoryUbuntu
    Read More
  17. 우분투에서 alt키를 한영키로 변환하는법

    CategoryUbuntu
    Read More
  18. 우분투서버 12.04

    CategoryUbuntu
    Read More
  19. 우분투 파일관리자 네트워크에 컴퓨터들이 보이지 않을때

    CategoryUbuntu
    Read More
  20. 우분투 시스템세팅이 실행되지 않은다면

    CategoryUbuntu
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8