우분투 한글폰트 설치 및 안티 앨리어싱 적용하기

새로운 폰트 적용하기

 우분투에서 새로운 한글 폰트를 적용/설치 하기 위해서는 아래의 디렉토리에 새로운 디렉토리를 생성하여 폰트를 넣으면 된다.

/usr/share/fonts/truetype

 그런 후 터미널에서 다음을 입력하면 된다.

# sudo -s
(root 권한이 필요하다..)
# fc-cache -f – v

————————————————————————————————————————————————————

안티 앨리어싱 적용하기

 처음 우분투를 사용하면 유독 한글 폰트에(ex. 은진낙서체) 대해서 글자가 뭉개지는 것을 확인할 수 있다.
 이는 우분투에서 안티 앨리어싱 설정을 끄도록 설정이 되어있어서 그러는 것인데, 이를 다시 적용시키기 위해서는 다음의 작업이 필요하다.

 먼저 root 권한으로 다음의 파일을 열도록 하자.

# sudo vi /etc/fonts/conf.d/29-language-selector-ko-kr.conf

열린 파일의 내용중 아래의 내용을 찾아 해당 부분을 주석처리를 하자.
주석처리는 “<!–” 로 시작하여 “–>”로 끝이 난다.

<!– Turn off antialias and autohint for Korean fonts depending on pixelsize –>
<!–<match target=”font”>
        <test name=”lang” compare=”contains”>
                <string>ko</string>
        </test>
        <test name=”pixelsize” compare=”more”>
                <int>10</int>
        </test>
        <test name=”pixelsize” compare=”less”>
                <int>22</int>
        </test>
        <edit name=”antialias” mode=”assign”>
                <bool>false</bool>
        </edit>
        <edit name=”autohint” mode=”assign”>
                <bool>false</bool>
        </edit>
        <edit name=”hintstyle” mode=”assign”>
                <const>hintmedium</const>
        </edit>
</match>–>

하나 더 주석처리를 해야 한다.

<!– Turn off antialias and autohint for ttf-alee depending on pixelsize –>
<!–<match target=”font”>
        <test name=”family”>
                <string>Guseul</string>
        </test>
        <edit name=”autohint” mode=”assign”>
                <bool>true</bool>
        </edit>
</match>
<match target=”font”>
        <test name=”family”>
                <string>Guseul</string>
                <string>Guseul Mono</string>
        </test>
        <test name=”pixelsize” compare=”more”>
                <int>11</int>
        </test>
        <test name=”pixelsize” compare=”less”>
                <int>16</int>
        </test>
        <edit name=”antialias” mode=”assign”>
                <bool>false</bool>
        </edit>
        <edit name=”autohint” mode=”assign”>
                <bool>false</bool>
        </edit>
</match>–>

출처 : http://ihoney.pe.kr/635

installing ubuntu-9.10-netbook_remix on the webmachines v10HC

 이번에 새로 산 웹 머신즈 V10HC 모델에 우분투를 설치하여 사용하더 중 한가지 문제점을 발견하였다.

 바로 무선랜이 안된다는 것.

 구글링을 해보니 다음의 주소에서 해결의 실마리를 얻을 수 있었다.

 http://spac.tistory.com/66?srchid=BR1http%3A%2F%2Fspac.tistory.com%2F66

 하지만 내가 설치한 넷북 전용 버전에서는 약간의 수고를 더 해야만 활용할 수 있었다.

 즉, 다음의 작업들이 실행되어야 한다.

 먼저 아래의 주소에서 리눅스용 무선랜 드라이버를 다운 받는다.

 http://122.146.118.42/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8192SE

 그리고 콘솔창을 열어 다음을 입력한다.

 # sudo su –

 # apt-get install build-essential linux-source-2.6.31
 # cd /usr/src
 # tar xvfz linux-source-2.6.31.tar.bz2

 다운 받은 파일이 있는 디렉토리로 이동한다. 필자의 경우 /home/pchero/다운로드

 # cd /home/pchero/다운로드
 # tar xvfz rtl8192se_linux_2.6.0013.1204.2009.tar.gz
 # cd rtl8192se_linux_2.6.0013.1204.2009
 # make
 # make install

 이로써 설치는 끝이다. 우분투를 재부팅한 후, 무선랜이 활성화가 되는것을 확인할 수 있다.

우분투 미러링 rsync 주소 변경

 우분투 9.10 업데이트에 대한 기대로 행복할 무렵..

 동아리 미러링 서버 상태를 확인해보니 아래의 메시지가 나타나 있었다.

Found all ISO images for series The Dapper Drake and flavour edubuntu.

Found all ISO images for series The Hardy Heron and flavour edubuntu.
Found all ISO images for series The Intrepid Ibex and flavour edubuntu.
Found all ISO images for series The Hardy Heron and flavour kubuntu.
Found all ISO images for series The Intrepid Ibex and flavour kubuntu.
Found all ISO images for series The Jaunty Jackalope and flavour kubuntu.
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-alternate-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-alternate-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-desktop-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-desktop-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-netbook-i386.iso: Bad response code: 404
Found all ISO images for series The Dapper Drake and flavour ubuntu.
Found all ISO images for series The Hardy Heron and flavour ubuntu.
Found all ISO images for series The Intrepid Ibex and flavour ubuntu.
Found all ISO images for series The Jaunty Jackalope and flavour ubuntu.
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-alternate-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-alternate-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-desktop-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-desktop-armel+dove.img: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-desktop-armel+imx51.img: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-desktop-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-netbook-remix-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-server-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-server-i386.iso: Bad response code: 404

 아직 업데이트가 안되었다는 메시지…

 흠… 처음에는 그저 업데이트가 느리다는 생각 뿐이었다. 그러나 서버에서 rsync 프로세스를 확인해본 결과 rsync 프로세스는 실행되어 있지 않았다.

 cron 작업을 걸어두어 매일 새벽에 자동으로 체크하도록 해 놓았는데 실행이 되어있지 않다니… 문득 이상한 생각이 들어 직접 프로세스를 실행시켜 보았다.
 하지만 아래의 메시지만 나오고 제대로 실행되어 있지 않았다.

 rsync: failed to connect to releases.ubuntu.com: Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.3]

 아니… 이건 무슨 에러지… 구글링을 해보니 똑같은 에러 메시지 몇개가 나왔다. 그런데 그중에 눈에 익은 글이 나왔다. 바로 내가 포스팅한 글이었다….

 전에도 이런 에러를 한번 겪었었는데 그때는 DNS 포트를 막아놔서 제대로된 쿼리와 응답을 받지 못해 생긴 오류였는데 이번에도 똑같은 에러 메시지였지만 상황이 달랐다. DNS 포트는 막혀있지 않았던 것이었다.

 무엇이 문제일까… 잠시 구글링을 포기하고 dig와 nslookup을 통해 releases.ubuntu.com 의 질의가 제대로 이루어 지는지를 확인하고, 혹시나 싶어 releases.ubuntu.com 의 도메인 네임 대신에 IP 주소를 입력하여 rsync 스크립트를 재 실행 해보았다.

 결과는 마찬가지였다.

 이래저래 고민을 하다가 결국 우분투 미러링 IRC 채널에 문의해보기로 했다.
 IRC 채널 : irc.freenode.org in #ubuntu-mirrors

 답은 간단했다.
https://lists.ubuntu.com/archives/ubuntu-mirrors-announce/2009-October/000015.html

 아래는 위의 링크에 나와있는 메시지의 전문이다.

Hi

As you may know, the newest version of Ubuntu (9.10) is scheduled to be
officially released on Thursday, 29 October. To ensure that this release
goes smoothly, we need your help!

* If you are rsyncing from releases.ubuntu.com please update your
scripts/cronjobs to rsync from rsync.releases.ubuntu.com ASAP!

* Please take a moment to verify that your mirror is ready and
syncing.

* Set any "releases" mirror (the CD images) to sync every 2 hours.
(These rsyncs are very small and quick, and you should not
notice any increased load on your server.)

/! rsyncing straight from releases.ubuntu.com will stop working
before the final release /!

Thank you very, very much for your help spreading Ubuntu, we really
appreciate it!

Cheers,
--
Chris Jones
cmsj at canonical.com
www.canonical.com

 즉, Ubuntu-9.10 릴리즈에 맞춰 rsunc 서버가 변경되었기 때문에 rsync 접속 주소의 수정이 필요하다는 내용이었다.

 모든 등록된 미러링 서버 관리자 이메일 주소로 이 메시지가 발송되었으나, 미처 확인을 안한 것이 문제였다. (설마….도메인이 변경되었을 줄이야…)

 즉시 rsync 스크립트를 고쳐 다시 실행하니 잘 작동한다. 🙂

우분투에서 rpmbuild 설치..

 우분투에서 rpmbuild 를 설치하기 위해 다음의 명령어를 입력했다.

 sudo apt-get install rpmbuild
 꾸러미 목록을 읽는 중입니다… 완료
 의존성 트리를 만드는 중입니다      
 상태 정보를 읽는 중입니다… 완료
 E: rpmbuild 꾸러미를 찾을 수 없습니다

 rpmbuild 꾸러미를 찾을 수 없다고 나왔다… 무슨 패키지에 들어있는 걸까..

 답은 의외로 간단했다. ubuntuforums 에 문의하니 바로 나왔다.

 http://ubuntuforums.org/showthread.php?t=498868&highlight=rpmbuild

 즉 rpm 패키지를 설치하면 된다. : )

 다음의 명령어를 입력하자.

 sudo apt-get install rpm

 모든것이 술술이다.