KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You will step on the soil of many countries.
FrontPage › MakingTeXKNOPPIX
TeXKNOPPIX Live CD¸¦ ¸¸µå´Â ¹ý

¸ñÂ÷

1 °¨»çÀÇ ¸»
2 Áغñ¹°
3 ¸¸µå´Â¹ýÀÇ °³°ü
4 ISO file¿¡¼­ file ÃßÃâÇϱâ
5 »õ·Î¿î packageÀÇ ¼³Ä¡ ¹× ÇÊ¿ä ¾ø´Â packageÀÇ »èÁ¦
5.1 ÇÑ±Û LaTeX system ±¸Ãà
6 KDE configuration¹× ±âŸ package¼³Ä¡
7 Make compressed FS and iso image
8 Âü°í ¹®¼­

1 °¨»çÀÇ ¸»

  • ½ÇÁ¦·Î º¸¸é °ÅÀÇ ¸ðµçÀÏÀº µµÀºÀ̾ƹö´ÔÀÌ ´Ù Çϼ̽À´Ï´Ù. ¿©±â Àú±â¿¡ ÀÖ´Â È­ÀÏ°ú ±¸¼º¿¡ ´ëÇؼ­ ¸¹Àº ¾Æ´Ï °ÅÀÇ ´ëºÎºÐÀÇ µµ¿òÀ» Áּ̽À´Ï´Ù. ´Ù½Ã Çѹø °¨»ç ¸»¾¸µå¸³´Ï´Ù.
  • ±×¸®°í ÀÌ ±ÛÀº °ÅÀÇ ´ëºÎºÐ GunSmoke´ÔÀÇ ±ÛÀ» °¡Áö°í ¿Ô½À´Ï´Ù. °¨»çµå¸³´Ï´Ù.

2 Áغñ¹°

3 ¸¸µå´Â¹ýÀÇ °³°ü

±âº»ÀûÀÎ ¾ÆÀ̵ð¾î´Â ¸Å¿ì °£´ÜÇÏ´Ù.

  • remastering ½ºÅ©¸³Æ®¸¦ È°¿ëÇÏ¿© knoppix CD¿¡ ÀÖ´Â ÆÄÀϵéÀ» ÃßÃâÇÏ°í À̸¦ /mnt/hda1/remaster/Knoppix.build/Knoppix.Master¿¡ º¹»çÇÑ´Ù.
  • /mnt/hdc1/remaster¸¦ ·çÆ® µð·ºÅ丮·Î chrootÇÏ°í ¸®ÆÐŰ¡ÇÑ´Ù.
  • chroot »óÅ¿¡¼­ X¸¦ ½ÇÇàÇÏ°í ¿øÇÏ´Â ´ë·Î X ȯ°æÀ» ¼³Á¤ÇÑ´Ù.(ÀúÀÇ °æ¿ì¿¡´Â x-window°¡ ½ÃÀÛµÇÁö ¾Ê¾Æ¼­ °í»ýÇß½À´Ï´Ù.)
    • À̶§ KDE ¼³Á¤ ³»¿ë ¿ÜÀÇ ÇÁ·Î±×·¥ Áï, /home/knoppix/.kde µð·ºÅ丮 ÀÌ¿ÜÀÇ ´Ù¸¥ ¼³Á¤¿¡ ´ëÇؼ­´Â °í¹ÎÀ» Á» ÇغÁ¾ß ÇÒ µí ÇÏ´Ù. (ƯÈ÷ mozilla-firefox´Â /home/knoppix¿¡¼­ /etc/skel·Î º¹»çµÉ ¶§ ´Ù¸£°Ô º¯È¯µÇ´Â ºÎºÐÀÌ ÀÖ³ª?? µ¹¾Æ¹ö¸®´Â ÁÙ ¾Ë¾Ò´Ù.)
  • chroot »óŸ¦ Á¾·áÇÏ°í CD À̹ÌÁö·Î ¾ÐÃàÇÑ´Ù.
  • ¾ÐÃàµÈ CD À̹ÌÁö¸¦ CD RW·Î ±¸¿ö³»¸é ¸ðµç ÀÛ¾÷ ³¡.

4 ISO file¿¡¼­ file ÃßÃâÇϱâ

  • ÇÑ±Û knoppix¸¦ CD·Î ±¸¿ö³»¼­ ºÎÆÃÇÑ´Ù.
  • ºÎÆÃÀÌ ³¡³µÀ¸¸é Çϵåµð½ºÅ©¸¦ ÆÄƼ¼Å´×ÇÏ°í Æ÷¸äÇÑ´Ù.
     cfdisk /dev/hda1
     mke2fs -vj /dev/hda1
     
  • ¹æ±Ý Æ÷¸äÇÑ /dev/hda1¸¦ ¸¶¿îÆ®ÇÏ°í remaster µð·ºÅ丮¸¦ ¸¸µç´Ù.
     mount -t ext3 /dev/hda1 /mnt/hda1
     mkdir /mnt/hda1/remaster
     
  • remaster ½ºÅ©¸³Æ®¸¦ ´Ù¿î·ÎµåÇÑ´Ù. (http://debian.tu-bs.de/knoppix/remaster/) ´Ù¿î·Îµå À§Ä¡´Â /mnt/hda1ÀÌ¸ç ¾ÐÃàÀ» Ç®°í scripts µð·ºÅ丮¸¦ ¸¸µé¾î ¿Å±ä´Ù. (remaster ½ºÅ©¸³Æ®¸¦ Á¦´ë·Î ½ÇÇàÇϱâ À§ÇØ µð·ºÅ丮 À̸§À» ¹Ù²Ù¾î Áà¾ß ÇÑ´Ù.)
     tar zxvf remaster-0.1-6.tar.gz
     mv remaster-0.1 scripts
     cd scripts
     
  • ÀÌÁ¦ ½ºÅ©¸³Æ®¸¦ ½ÇÇà½ÃÄÑ knoppix CD¿¡¼­ ÆÄÀÏÀ» ÃßÃâÇØ º¸ÀÚ. ´ÙÀ½°ú °°ÀÌ ¸í·ÉÀ» ³»¸®¸é »õ·Î¿î âÀÌ ³ªÅ¸³¯ °ÍÀÌ´Ù.
     ./knoppix-remaster /mnt/hda1/remaster
     
  • »õ·Î¿î â¿¡¼­ 1¹øÀ» ½ÇÇàÇϸé terminal¿¡ chroot»óÅ·Πº¯Çϸ鼭 »õ·Î¿î package¼³Ä¡°¡ °¡´ÉÇØÁø´Ù. chrootÁ¾·á´Â exitÀÌ´Ù.

5 »õ·Î¿î packageÀÇ ¼³Ä¡ ¹× ÇÊ¿ä ¾ø´Â packageÀÇ »èÁ¦

  • apt-getÀ» È°¿ëÇϱâ À§ÇØ ¼Ò½º¸®½ºÆ® Á¤º¸¸¦ ¼öÁ¤ÇÑ´Ù. º»ÀÎÀº http://debianusers.org/DebianWiki/wiki.php/¼Ò½º¸®½ºÆ®/Sid ÀÇ ¾Æ·¡¿Í °°Àº ³»¿ëÀ» /etc/apt/sources.list¿¡ º¹»ç Çß´Ù.
     deb http://ftp.debian.org/debian unstable main contrib non-free
     deb-src http://ftp.debian.org/debian unstable main contrib non-free
     deb http://http.us.debian.org/debian unstable main contrib non-free
     deb-src http://http.us.debian.org/debian unstable main contrib non-free
     deb ftp://ftp.debian.or.kr/debian-kr unstable-kr main contrib non-free
     deb-src ftp://ftp.debian.or.kr/debian-kr unstable-kr main contrib non-free
    


     cp À§ÀÇ ³»¿ë /etc/apt/sources.list
     


  • apt-getÀ» ¾÷µ¥ÀÌÆ®ÇÑ´Ù. µÉ¼ö Àִµ¥·Î apt-get upgrade´Â ÇÏÁö ¸»ÀÚ. ÇÏ¸é ¾Æ¸¶µµ bootingÇϴµ¥ ¹®Á¦°¡ »ý±é´Ï´Ù.
     apt-get update 
     


  • ¿ì¼± Áö¿ö¾ß ÇÒ packageºÎÅÍ Áö¿ìÀÚ.
     apt-get remove ttf-baekmuk openoffice.org openoffice.org-l10n-ko openoffice.org-l10n-en lynx mozilla-thunderbird kstars kstarts-data scribus
     dpkg -r emacs21 emacs-common-bin emacs-bin
    

  • »õ·Î¿î package¼³Ä¡ÇÏÀÚ
     apt-get install tetex-base tetex-extra tetex-bin libkpathsea4 libkpathsea4-dev cmap-adobe-korea1 gs-cjk-resource
     apt-get install koffice
     apt-get remove kdelock-knoppix %¿·ÀÇ ¸í·ÉÀ» ½ÇÇàÇÏÁö ¾ÊÀ¸¸é kile¼³Ä¡½Ã¿¡ error°¡ ¶³¾îÁö¸é¼­ Á¦´ë·Î installÀÌ µÇÁö ¾ÊÀ½
     apt-get install kile
    

  • dhucs-live.tar.gz¿Í cm-super package down¹Þ±â
     wget http://kbrobgy.linuxtop.co.kr/TeXKNOPPIX/dhucs-live.tar.gz
     wget http://ftp.ktug.or.kr/mirrors/CTAN/fonts/ps-type1/cm-super.zip
    


    DeleteMe. apt-get install cm-super·Î ¼³Ä¡Çصµ µÇÁö ¾Ê³ª¿ä?
    Àúµµ óÀ½¿¡´Â cm-super°¡ ÀÖÀ»ÁÙ ¾Ë¾Ò´Âµ¥, ãÀ»¼ö ¾ø´Ù°í ÇÏ°í ¶ÇÇÑ package list¿¡µµ °¡ ºÁµµ cm-super´Â ¾ø´øµ¥¿ä. Á¦°¡ ¹» Àß ¸ð¸£°í ÇÑ°Ç°¡¿ä. Ȥ½Ã ÇÏ´Â ¹æ¹ýÀÌ ÀÖ´Ù¸é ¾Ë·ÁÁֽʽÿä. --synapse

5.1 ÇÑ±Û LaTeX system ±¸Ãà

±¸ÃàÀÇ °³¿ä
 * UTF-8 encodingÀ» ±âº»ÀûÀ¸·Î Áö¿øÇÏ´Â system¸¸ ¼³Ä¡Çϱâ·Î ÇÑ´Ù.(dhucs, memhangul-ucs)
 * CompileÀÇ ÃÖÁ¾ »ê¹°Àº pdf·Î ÇÑ´Ù.(dvipdfmx ¼³Ä¡)
  • À§¿¡ down¹ÞÀº dhucs-live.tar.gz¸¦ /usr ¿¡ copyÇØ ³õ°í ³ª¼­ untarÇØÁØ´Ù. ÇØÁÖ°í ³­ÈÄ¿¡ ²À dhucs-live.tar.gz deleteÇØÁØ´Ù.
    • dhucs-live texmf´Â maintexmf¿Í ÅëÇÕÇعö¸®´Â °ÍÀÌ ÁÁÀ»°Í °°¾Æ¼­ ÀÌ·¸°Ô Çß½À´Ï´Ù.
    • dhucs-live texmf´Â ÇѱÛKNOPPIX¿¡ µé¾î ÀÖ´Â unttf¸¦ »ç¿ëÇÕ´Ï´Ù. ±×·¡¼­ /etc/texmf/texmf.d/05Fonts.cnf ³¡¿¡
          TTFONTS = .;$TEXMF/fonts/truetype//;/usr/share/fonts/truetype/unfonts
      


  • DVIPDFMx ÀÇ installation¹æ¹ý(µµÀºÀ̾ƹö´ÔÀÌ °¡¸£ÃÄ ÁֽŠ¹æ¹ýÀε¥, ¾Æ¸¶µµ ÀÌ·± ¹æ¹ýÀº debian»ç¿ëÀڵ鿡°Ô´Â »ó´çÈ÷ µµ¿òÀÌ µÉµí ½Í½À´Ï´Ù) ¿·ÀÇ file¸¦ down¹Þ¾Æ¼­ wget http://kbrobgy.linuxtop.co.kr/TeXKNOPPIX/for_synapse.tar.gz Àû´çÈ÷ Ç®¾îÁÖ°í³ª¼­.
    ¸®´ª½º ¼Ò½º¸¦ ¼³Ä¡ÇÕ´Ï´Ù.
    #> apt-get install linux-source-2.6.12
    #> cd /usr/src
    #> bzip2 -d linux-source-2.6.12.tar.bzip2; tar xvf linux-source-2.6.12.tar
    #> rm -f linux; ln -s ./linux-source-2.6.12 ./linux
    #> cd linux/include; ln -s asm-i386 asm
    
    (1) dvipdfmx
    
    cvs·Î dvipdfmx ¼Ò½º¸¦ ´Ù¿î·Îµå¹ÞÀº ´ÙÀ½ configure¸¦ º¸³»µå¸®´Â °ÍÀ¸·Î ¹Ù²ß´Ï´Ù.
    ±×¸®°í /usr/include/kpathsea/ ¿¡ ÀÖ´Â c-vararg.h¸¦ ¹é¾÷ÇصР´ÙÀ½ ¿ª½Ã ÷ºÎµÈ
    ÆÄÀÏ·Î ±³Ã¼ÇÕ´Ï´Ù.
    #> mv /usr/include/kpathsea/c-vararg.h /usr/include/kpathsea/c-vararg.h.orig
    #> cp ./c-vararg.h /usr/include/kpathsea/
    
    ÀÌÁ¦ ÄÄÆÄÀÏÀ» ½ÃµµÇÕ´Ï´Ù.
    #> ./configure --prefix=/usr; make ; make install
    
    • dvipdfmx.cfg(/etc/texmf/dvipdfm)ÀÇ GhostScript ¼³Á¤ÀÌ Ç®·Á ÀÖÁö ¾Ê½À´Ï´Ù. #D "gs -q ... --> D "gs -q.....
    • dvipdfmx.cfg(/etc/texmf/dvipdfm)ÀÇ »õ·Î¿î mapÈ­ÀÏ Áý¾î ³Ö±â. È­ÀÏ ³¡¿¡ f cid-trivcj.map ¿Í f cid-unttf-live.map Áý¾î³Ö´Â´Ù.
    • /etc/texmf/texmf.d/50dvipdfmx.cnf À» °íÃÄÁØ´Ù(¾Æ¸¶µµ ÇÊ¿äÇÑ package¼³Ä¡¸¦ Çß´Ù¸é ¸¸µé¾îÁ® ÀÖÀ»°ÍÀÌ´Ù. ¾È ¸¸µé¾îÁ® ÀÖÀ¸¸é ¸¸µé¸é µÈ´Ù.) CMAPINPUTS = .;/usr/share/fonts/cmap// ¸¦ insert

  • ttf2tfm°ú ttf2pk ÀÇ installation wget http://kbrobgy.linuxtop.co.kr/TeXKNOPPIX/ttf2pk.tar.gz
    ÷ºÎÇÏ´Â ÆÄÀÏÀ»  Ç®¸é ttf2pk/ µð·ºÅ丮°¡ »ý±â´Âµ¥¿ä, ÀÌ°ÍÀ» /usr/local/share ¾Æ·¡¿¡¼­
    Ç®¾úÀ» ¶§ /usr/local/share/ttf2pk/freetype-2.1.9/contrib/ttf2pk-freetype2/
    µð·ºÅ丮¿¡ ÀÖ´Â ½ÇÇà ¹ÙÀ̳ʸ® ttf2pk¿Í ttf2tfmÀ» /usr/bin ¶Ç´Â /usr/local/bin À¸·Î ¿Å°ÜµÎµµ·Ï
    ÇØ¾ß ÇÒ °Í °°½À´Ï´Ù.
    

  • cm-super package¼³Ä¡(ÀúÀÇ °æ¿ì¿¡´Â mc·Î ¼³Ä¡¸¦ ÇÏ¿´½À´Ï´Ù.)
     1. CTAN¿¡¼­ ³»·Á¹ÞÀº cm-super¸¦ /usr/share/texmf ¾Æ·¡¿¡ ´ÙÀ½°ú °°ÀÌ ¼³Ä¡
    ÇÏ¿´´ÂÁö È®ÀÎÇÏ¿© ÁֽʽÿÀ.
    
    /usr/share/texmf/fonts/afm/cm-super/*.gz
    /usr/share/texmf/fonts/enc/dvips/cm-super/*.enc
    /usr/share/texmf/fonts/map/dvips/cm-super/*.map
       -> ¹Ýµå½Ã dvips/ ¾Æ·¡¿¡ ÀÖ´Â map ÆÄÀÏÀ̾î¾ß ÇÕ´Ï´Ù. dvipdfm/ ¾Æ·¡
         ÀÖ´Â  *.map µéÀº ÇÊ¿ä ¾ø½À´Ï´Ù.
    /usr/share/texmf/fonts/type1/cm-super/*.pfb
    /usr/share/texmf/tex/latex/cm-super/type1ec.sty
    
    2. updmap.cfg(/etc/texmf/updmap.d/10tetex-base.cfg)¿¡ ´ÙÀ½ ÇàÀ» Ãß°¡ÇÕ´Ï´Ù.
    
    # cm-super
    MixedMap cm-super-t1.map
    MixedMap cm-super-t2a.map
    MixedMap cm-super-t2b.map
    MixedMap cm-super-t2c.map
    MixedMap cm-super-ts1.map
    MixedMap cm-super-x2.map
    


  • mktexlsr; updmap-sys; fmtutil-sys ÇØÁØ´Ù.

6 KDE configuration¹× ±âŸ package¼³Ä¡

  • pdflatex¿¡¼­ ÇÑ±Û »ç¿ëÀ» À§ÇÑ °Í
    • /etc/skel/.bashrc¿¡ ´ÙÀ½À» Ãß°¡ÇÑ´Ù.
    • alias pdflatex='pdflatex "\pdfmapfile{+pdftex-unttf-live.map}\input"'
  • kile
    • /etc/skel/.kde/share/config¿¡ wget http://kbrobgy.linuxtop.co.kr/TeXKNOPPIX/kilerc ¸¦ down¹Þ¾Æ¼­ copyÇÑ´Ù.
    • Kicker¿¡ kile³ªÅ¸³ª°Ô Çϱâ
        cd /usr/share/applnk/Office
        cp /usr/share/applications/kde/kile.desktop /usr/share/applnk/Office
        vi /etc/skel/.kde/share/config/kickerrc Çؼ­ openoffice.desktopÀ¸·Î µÇ¾î ÀÖ´Â °ÍÀ» kile.desktopÀ¸·Î ÇØÁØ´Ù.
      
  • pump¿Í dhcp-client package°°ÀÌ ¼³Ä¡Çϱâ

7 Make compressed FS and iso image

  • chroot»óÅ¿¡¼­ exitÇÏ°í ³­ÈÄ¿¡ óÀ½ knoppix-remastering script È­¸é¿¡¼­ 2¹ø make compressed FS --> 3¹ø isoimage¸¸µé±â ÇÏ¸é µÈ´Ù. »ó´çÈ÷ ½Ã°£ÀÌ ¿À·¡ °É¸°´Ù.

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-11-12 22:29:35
Processing time 0.0479 sec