´ÙÀ½ ÀÌÀü Â÷·Ê

2. ÀϹÝÀûÀÎ ½Ã½ºÅÛ ¼³Á¤

2.1 Å°º¸µå

¿ì¼± Å°º¸µå¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀ» ¾Ë¾Æ¾ß ÇÑ´Ù. ¼³Ä¡ÇÏ´Â µ¿¾È ÀÌ °úÁ¤À» ºüÆ®·È°Å³ª Å°º¸µå¸¦ ¹Ù²Ù°íÀÚ ÇÑ´Ù¸é, ¾Æ·¡ÀÇ ÀýÂ÷¸¦ µû¶ó¾ß ÇÑ´Ù.

   - /usr/lib/kbd/keytables¿¡¼­ Àû´çÇÑ Å° Å×À̺íÀ» ¼±ÅÃÇÑ´Ù.  ¿¹¸¦ µé¾î 
     ÀÌÅ»¸®¾Æ Å°º¸µå¶ó¸é it.mapÀ» °í¸¥´Ù.
   - /etc/sysconfig/keyboard¸¦ ÆíÁýÇؼ­ ¾Æ·¡¿Í °°ÀÌ µÇµµ·Ï ÇÑ´Ù.  
        KEYTABLE="/usr/lib/kbd/keytables/it.map"
   - Å°º¸µåÀÇ ¹Ýº¹ ºñÀ²°ú Áö¿¬ ½Ã°£À» ¼³Á¤ÇÏ·Á¸é, /etc/profileÀ̳ª rc 
     ÆÄÀÏ °¡¿îµ¥ Çϳª¿¡ ¾Æ·¡ÀÇ ÇàÀ» Ãß°¡ÇÑ´Ù.
        /sbin/kbdrate -s -r 16 -d 500  # or whatever
   - ³¡À¸·Î Å°º¸µå¸¦ ¼³Á¤ÇÒ ±ÇÇÑÀ» ¾ò±â À§ÇØ ¾Æ·¡¿Í °°ÀÌ ÇØÁØ´Ù.
        ~# chmod 666 /dev/port
Å°º¸µå´Â ´ÙÀ½¿¡ ºÎÆÃÇÒ ¶§ºÎÅÍ º¯°æµÈ »çÇ×´ë·Î ÀÛµ¿ÇÏ°Ô µÈ´Ù.

2.2 Ä¿³Î

´ÙÀ½¿¡ ÇØ¾ß ÇÒ ÀÏÀº ÀÚ½ÅÀÇ ½Ã½ºÅÛ¿¡ °¡Àå ÀûÇÕÇϵµ·Ï Ä¿³ÎÀ» À籸¼ºÇÏ´Â °ÍÀÌ´Ù. ¸Å¿ì ½±±â´Â ÇÏÁö¸¸, ¹Ýµå½Ã /usr/src/linuxÀÇ README ÆÄÀÏÀ» Àо¾Æ¾ß ÇÑ´Ù. ¿ä·ÉÀº ´ÙÀ½°ú °°´Ù.

   - ÀÚ½ÅÀÌ ¿øÇÏ´Â °ÍÀÌ ¹«¾ùÀÎÁö Àß »ý°¢ÇØ¾ß ÇÑ´Ù.  ÇÑ ´ÞÀÌ ¸Ö´Ù ÇÏ°í 
     Àç ¼³Á¤, Àç ÄÄÆÄÀÏ ÇÏ´Â °Íº¸´Ù´Â, ÇÑ ¹ø¿¡ ÀûÀýÇÑ Ä¿³ÎÀ» ¼±ÅÃÇÏ°í 
     ÆÐÄ¡¸¦ ³¡³»´Â ÆíÀÌ ´õ »ý»êÀûÀÌ´Ù.  ƯÈ÷ ¼­¹ö·Î ¾²´Â ¸®´ª½º  
     ½Ã½ºÅÛÀÇ °æ¿ì¿¡´Â ÀÌ Á¡ÀÌ Áß¿äÇÏ´Ù.  ÀåÂ÷ Ãß°¡ÇÒ °¡´É¼ºÀÌ ÀÖ´Â 
     ¸ðµç Çϵå¿þ¾î¸¦ Áö¿øÇϵµ·Ï ÇÏ´Â °ÍÀ» Àؾ´Â ¾ÈµÈ´Ù.
   - »çÀ̸¯½º CPU¸¦ ¾²´Â PC¶ó¸é ¼º´É Çâ»óÀ» À§ÇØ ÀûÀýÇÑ ÆÐÄ¡¸¦ 
     °¡ÇØ¾ß ÇÑ´Ù.
 
www.linuxhq.com/patch/20-p0591.html
     ¿¡ ÀÖ´Â Á¤º¸¸¦ ÂüÁ¶Çϱ⠹ٶõ´Ù.
   - ³ëÆ®ºÏ »ç¿ëÀÚ¶ó¸é noblink ÆÐÄ¡¸¦ ½á¼­ È­¸éÀ» Á» ´õ Àб⠽±°Ô 
     ÇÏ´Â ÆíÀÌ ÁÁ´Ù.
   - ³ëÆ®ºÏ »ç¿ëÀÚ°¡ PCMCIA ¸ðµ©/Æѽº¸¦ ¾µ °èȹÀ̶ó¸é, ½Ã¸®¾ó  
     Áö¿øÀ» ¸ðµâ·Î ÄÄÆÄÀÏÇؼ­´Â ¾ÈµÈ´Ù.  Ä¿³Î ³»ºÎ¿¡ Æ÷ÇÔ½ÃÅ°Áö  
     ¾ÊÀ¸¸é PCMCIA ¸ðµ©ÀÌ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.

2.3 ºÎÆ®¾÷ ¸Þ½ÃÁö

ºÎÆ®¾÷ ¸Þ½ÃÁö¸¦ ÃëÇâ¿¡ ¸ÂÃß°í ½ÍÀ¸¸é, /etc/rc.d/rc.localÀÌ /etc/issue¿Í /etc/motd¸¦ µ¤¾î¾²´Â Áö È®ÀÎÇÏ¿©¾ß ÇÑ´Ù. µ¤¾î¾²°Ô µÇ¾î ÀÖ´Ù¸é ÆíÁýÇؼ­ ¹Ù²Ùµµ·Ï Ç϶ó.

2.4 È£½ºÆ® À̸§

"hostname new_host_name"À̶ó°í ¸í·ÉÀ» ³»¸®´Â °ÍÀ¸·Î´Â ÃæºÐÇÏÁö ¾Ê´Ù. /etc/sysconfig/network ÆÄÀÏÀ» ÆíÁýÇؼ­ ±× ¾ÈÀÇ È£½ºÆ® À̸§À» ¹Ù²ã¾ß ÇÑ´Ù.

2.5 ¼¾µå¸ÞÀÏ¿¡ ÀÇÇÑ Áöü

¾î¶² ½Ã½ºÅÛ¿¡¼­´Â ºÎÆÃÇÒ ¶§ ¼¾µå¸ÞÀÏ ¶§¹®¿¡ ÁöüµÇ°ï ÇÑ´Ù. ÀÌ·± °æ¿ì¿¡´Â /etc/hosts ÆÄÀÏ¿¡

127.0.0.1 localhost

¶ó´Â ÇàÀÌ µé¾îÀÖ´ÂÁö È®ÀÎÇؼ­ ¾øÀ¸¸é Ãß°¡ÇØ¾ß ÇÑ´Ù.

2.6 µð¹ÙÀ̽º µå¶óÀ̹ö

/dev¿¡ µé¾îÀÖ¾î¾ß ÇÒ µð¹ÙÀ̽º°¡ (ȤÀº ½ÇÁ¦ µð¹ÙÀ̽º µå¶óÀ̹ö·Î ¿¬°áµÈ ¸µÅ©°¡) ¾øÀ» ¼öµµ ÀÖ´Ù. ÀÚ½ÅÀÇ ¸¶¿ì½º, ¸ðµ©, CD-ROM µå¶óÀ̹ö°¡ ¾î´À µð¹ÙÀ̽º¿¡ ´ëÀÀµÇ´ÂÁö È®ÀÎÇÑ µÚ ¾Æ·¡¿Í °°ÀÌ ÇÏ¸é µÈ´Ù.

     ~# cd /dev
     /dev# ln -s /dev/cua0 mouse
     /dev# ln -s /dev/cua1 modem
     /dev# ln -s /dev/hdb cdrom
±×¸®°í ÇÊ¿äÇÏ´Ù¸é "chmod 666"À¸·Î ¸ðµç »ç¿ëÀÚµéÀÌ ÀÌ µð¹ÙÀ̽ºµéÀ» ¸¶À½´ë·Î ¾²µµ·Ï ÇÑ´Ù. ÆÁ: ¾î¶² ·¦Å¾ ÄÄÇ»ÅÍÀÇ °æ¿ì¿¡´Â ¸¶¿ì½º µð¹ÙÀ̽º°¡ /dev/psauxÀÌ´Ù. X À©µµ¿ì¸¦ ¼³Á¤ÇÒ ¶§ ÀÌ Á¡µµ °í·ÁÇØ¾ß ÇÑ´Ù.

Ãß°¡·Î "chmod 666 /dev/fd*"·Î ·çÆ® ÀÌ¿ÜÀÇ »ç¿ëÀÚ°¡ Ç÷ÎÇÇ µð½ºÅ© µå¶óÀ̺긦 »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÏ°í ½ÍÀ» ¼öµµ ÀÖ´Ù. ÀÌ·¸°Ô ÇÏ´Â °ÍÀº º¸¾È ¹®Á¦¸¦ ÀÏÀ¸Å³ ¼ö ÀÖÁö¸¸, ÇÊÀÚ´Â ÀÚ¼¼ÇÑ ³»¿ëÀ» ¸ð¸¥´Ù. ÀÌ Á¡¿¡ ´ëÇÑ Á¶¾ðÀ» ºÎŹÇÑ´Ù.

2.7 ¸¶¿ì½º

gpm ¸¶¿ì½º ¼­ºñ½º¸¦ ÀÌ¿ëÇϸé Äֿܼ¡¼­ º¹»ç/»ðÀÔÀ» Çϰųª ÀϺΠÀÀ¿ë ÇÁ·Î±×·¥¿¡¼­ ¸¶¿ì½º¸¦ »ç¿ëÇϴµ¥ Æí¸®ÇÏ´Ù. /etc/sysconfig/mouse ¶ó´Â ÆÄÀÏ¿¡ ¾Æ·¡¿Í °°Àº ÇàÀÌ ÀÖ´ÂÁö È®ÀÎÇϱ⠹ٶõ´Ù.

     MOUSETYPE="Microsoft"
     XEMU3=yes
¾Æ¿ï·¯ /etc/rc.d/init.d/gpm ÆÄÀÏÀÌ ÀÖ¾î¾ß ÇÑ´Ù. ¹°·Ð ÀÌ ¼³Á¤ÀÌ ÀÚ±âÀÇ ¸¶¿ì½º¿¡ ¸Â´ÂÁö È®ÀÎÇØ¾ß ÇÑ´Ù. ÆÁ: ¾î¶² ·¦Å¾ ÄÄÇ»ÅÍ¿¡¼­´Â MOUSETYPEÀÌ "PS/2"ÀÌ´Ù.

2.8 ¸¶¿îÆ® ÁöÁ¡

Ç÷ÎÇÇ¿Í CD-ROM, µµ½º ÆÄƼ¼Ç ¹× ±âŸ ÀåÄ¡µé¿¡ ´ëÇÑ ¸¶¿îÆ® ÁöÁ¡À» °¡Áö°í ÀÖ´Â °ÍÀÌ ÆíÇÏ´Ù. ¿¹¸¦ µé¾î ´ÙÀ½°ú °°ÀÌ ÇÒ ¼ö ÀÖ´Ù.

     ~# cd /mnt
     /# mkdir a: ; mkdir floppy ; mkdir cdrom ; mkdir win ; mkdir zip
ÀÌ·¸°Ô ÇÔÀ¸·Î½á MS-DOS Ç÷ÎÇÇ¿Í ext2 Ç÷ÎÇÇ, CD-ROM, µµ½º ÆÄƼ¼Ç, º´·Ä Æ÷Æ®¸¦ ÀÌ¿ëÇÏ´Â Zip µå¶óÀ̺êÀÇ ¸¶¿îÆ® ÁöÁ¡À» ¸¸µé ¼ö ÀÖ´Ù. ´ÙÀ½¿¡´Â /etc/fstab ÆÄÀÏÀ» ÆíÁýÇؼ­ ¾Æ·¡ÀÇ ³»¿ëÀ» Ãß°¡ÇÑ´Ù.
/dev/fd0        /mnt/a:          msdos          user,noauto      0 1
/dev/fd0        /mnt/floppy      ext2            user,noauto     0 1
/dev/cdrom      /mnt/cdrom     iso9660         ro,user,noauto    0 1
/dev/hda1       /mnt/dos        msdos          user,noauto      0 1
/dev/sda4       /mnt/zip        vfat             user,noauto     0 1
¹°·Ð ù ¹ø° Ç׸ñ¿¡´Â Á¤È®ÇÑ µð¹ÙÀ̽º¸¦ ½á¾ß ÇÑ´Ù. À©95ÀÇ ±ä ÆÄÀÏ À̸§À» »ç¿ëÇϱâ À§ÇØ ¸¶Áö¸· ÁÙ¿¡¼­´Â msdos ´ë½Å vfat¸¦ »ç¿ëÇß´Ù. ÇÏÁö¸¸ (¾ÆÁ÷Àº) vfat32¿¡´Â ÀÌ°ÍÀÌ Àû¿ëµÇÁö ¾Ê´Â´Ù.

2.9 LILO¿Í Loadlin

¸¹Àº »ç¿ëÀÚµéÀÌ PC¿¡ ¸®´ª½º¿Í µµ½º/À©µµÁ ÇÔ²² ¾²±â¸¦ ¹Ù¶ó°í ÀÖ°í, ¶Ç ºÎÆÃÇÒ ¶§ ¾î´À ¿î¿µÃ¼Á¦¸¦ ¾µ °ÍÀÎÁö ¼±ÅÃÇÏ°í ½Í¾îÇÑ´Ù. /dev/hda1¿¡´Â µµ½º/À©µµÁî°¡ ÀÖ°í, /dev/hda2¿¡´Â ¸®´ª½º°¡ ÀÖ´Ù°í ÇÒ ¶§, ¾Æ·¡¿Í °°ÀÌ ÇÏ¸é µÈ´Ù.

     ~# fdisk
     Using /dev/hda as default device!
     Command (m for help):a
     Partition number (1-4): 2
     Command (m for help):w
     ~#
ÀÌ·¸°Ô ÇÏ¸é ¸®´ª½º ÆÄƼ¼ÇÀÌ ºÎÆà °¡´ÉÇÏ°Ô µÈ´Ù. ÀÌ ´Ü°è´Â LILOÀÇ QuickInst¸¦ ½ÇÇàÇÒ ¶§, È°¼ºÈ­(activate)¿¡ ÀÇÇؼ­ ¼öÇàµÇ¾î¾ß ÇÏÁö¸¸, ÇÊÀÚÀÇ ·¹µåÇÞ¿¡¼­´Â ÀÛµ¿µÇÁö ¾Ê¾Ò´Ù. ¾Æ·¡¿Í °°ÀÌ ±âº»ÀûÀÎ /etc/lilo.conf ÆÄÀÏÀ» ¾²µµ·Ï ÇÑ´Ù.
     boot = /dev/hda2
     compact
     delay = 50
     # message = /boot/bootmesg.txt  # write your own
     root = current
     image = /boot/vmlinuz
     label = linux
     other = /dev/hda1
     table = /dev/hda
     label = dos
ÀÌÁ¦ /sbin/lilo¸¦ ¼öÇàÇÏ¸é ¼³Á¤Àº ³¡³­´Ù. LILO´Â ¼³Ä¡°úÁ¤¿¡¼­ ¸Å¿ì Áß¿äÇÑ ºÎºÐÀ̱⠶§¹®¿¡, ¹Ýµå½Ã ¸®·Î¿¡ µþ¸° ¹®¼­¸¦ Àеµ·Ï °­·ÂÈ÷ ±Ç°íÇÑ´Ù. µµ½º¿¡¼­ ¸®¼Â ´ÜÃ߸¦ ´©¸£Áö ¾Ê°í ¸®´ª½º¸¦ ºÎÆýÃÅ°·Á¸é, LOADLIN.EXE¸¦ µµ½ºÀÇ Æнº¿¡ Æ÷ÇÔµÈ (µµ½º ÆÄƼ¼Ç ³»ÀÇ!) µð·ºÅ͸®¿¡ À§Ä¡½ÃŲ´Ù. ´ÙÀ½¿¡´Â ÀÚ½ÅÀÇ Ä¿³ÎÀ» ¿¹¸¦ µé¾î C:\DOS\VMLINUZ·Î º¹»çÇÑ´Ù. ÀÌÁ¦ ¾Æ·¡¿Í °°Àº ¹èÄ¡ ÆÄÀÏ·Î ¸®´ª½º¸¦ ºÎÆýÃų ¼ö ÀÖ´Ù.
     rem   linux.bat
     smartdrv /C
     loadlin c:\dos\vmlinuz root=/dev/hda2 r
À©µµÁî 95¸¦ ¾´´Ù¸é, ÀÌ ¹èÄ¡ ÆÄÀÏÀÇ ¼Ó¼ºÀ» µµ½º ¸ðµå¿¡¼­ ½ÃÀÛÇÏ´Â °ÍÀ¸·Î ¼³Á¤ÇØ¾ß ÇÑ´Ù.

2.10 ÇÁ¸°ÅÍ ¼³Á¤

·¹µåÇÞ¿¡´Â ÈǸ¢ÇÑ ¼³Á¤ µµ±¸°¡ À־ ÇÊÀÚ´Â HP µ¥½ºÅ©Á¬ 400 ¼³Á¤À» ¸ÚÁö°Ô ³¡³¾ ¼ö ÀÖ¾ú´Ù. ¸¸¾à ·¹µåÇÞÀ» ¾²Áö ¾Ê´Â´Ù¸é ¾Æ·¡¿Í °°ÀÌ ¼öµ¿ ¼³Á¤À» ÇØ¾ß ÇÑ´Ù.

Æ÷½ºÆ®½ºÅ©¸³Æ®¸¦ Áö¿øÇÏÁö ¾Ê´Â ÇÁ¸°ÅÍ·Î (C ¼Ò½º ÆÄÀÏ °°Àº) ÅؽºÆ® ÆÄÀÏ°ú Æ÷½ºÆ®½ºÅ©¸³Æ® ÆÄÀÏÀ» ÀμâÇÏ°í ½Í´Ù°í ÇÏÀÚ. Æ÷½ºÆ®½ºÅ©¸³Æ®¸¦ ÀμâÇÏ·Á¸é °í½ºÆ®½ºÅ©¸³Æ®¸¦ ½á¾ß ÇϹǷΠ¹Ì¸® ¼³Ä¡µÇ¾î ÀÖ´Ù°í °¡Á¤Çϱâ·Î ÇÑ´Ù.

ÇÁ¸°ÅÍ ¼³Á¤Àº ¸î °¡Áö ´Ü°è·Î ÀÌ·ç¾îÁø´Ù.

   - º´·Ä ÇÁ¸°ÅÍ µð¹ÙÀ̽º°¡ ¹«¾ùÀÎÁö ¾Ë¾Æº¸±â À§ÇØ, ´ÙÀ½°ú °°ÀÌ ÇÏ°í
        ~# echo "hello, world" > /dev/lp0
        ~# echo "hello, world" > /dev/lp1
     ¾î´À °ÍÀÌ ÀÛµ¿ÇÏ´ÂÁö Àû¾îµÐ´Ù.
   - µÎ °³ÀÇ ½ºÇ® µð·ºÅ͸®¸¦ ¸¸µç´Ù.
        ~# cd /var/spool/lpd
        /var/spool/lpd/# mkdir raw ; mkdir postscript
   - ÇÁ¸°ÅÍ°¡ "°è´Ü Çö»ó"À» º¸Àδٸé (´ëºÎºÐÀÇ À×Å©Á¬) ÇÊÅÍ°¡  
     ÇÊ¿äÇÏ´Ù.  ¾Æ·¡¿Í °°ÀÌ ÇÏ¿© µÎ ÁÙÀ» ÇÁ¸°Æ®ÇØ º»´Ù.
        ~# echo "first line" > /dev/lp1 ; echo "second line" > /dev/lp1
     Ãâ·Â °á°ú°¡
        first line
                second line
     À̸é, ¾Æ·¡ÀÇ ÆÄÀÏÀ» /var/spool/lpd/raw/filter¶ó°í ÀúÀåÇÏ°í,
        #!/bin/sh
        # This filter does away with the "staircase effect"
        awk '{print $0, "\r"}'
     "chmod 755 /var/spool/lpd/raw/filter"·Î ½ÇÇà °¡´ÉÇÏ°Ô ÇÑ´Ù.
   - Æ÷½ºÆ®½ºÅ©¸³Æ® ¿¡¹Ä·¹À̼Ç(¸ð¹æ)À» À§ÇÑ ÇÊÅ͸¦ ¸¸µéÀÚ.  ¾Æ·¡¿Í 
     °°Àº ÇÊÅ͸¦ /var/spool/lpd/postscript/filter ·Î ÀúÀåÇÑ´Ù.
        #!/bin/sh
        DEVICE=djet500
        RESOLUTION=300x300
        PAPERSIZE=a4
        SENDEOF=
        nenscript -TUS -ZB -p- |
        if [ "$DEVICE" = "PostScript" ]; then
                cat -
        else
                gs -q -sDEVICE=$DEVICE \
                       -r$RESOLUTION \
                       -sPAPERSIZE=$PAPERSIZE \
                       -dNOPAUSE \
                       -dSAFER \
                       -sOutputFile=- -
        fi
        if [ "$SENDEOF" != "" ]; then
                printf "\004"
        fi
     (¿©±â¼­´Â HP µ¥½ºÅ©Á¬ ÇÁ¸°Å͸¦ °¡Á¤Çß´Ù.  ÀÚ½ÅÀÇ ÇÁ¸°ÅÍ¿¡  
     ¸ÂÃßµµ·Ï ÇÑ´Ù.)
   - ³¡À¸·Î ¾Æ·¡ÀÇ ³»¿ëÀ» /etc/printcap¿¡ Ãß°¡ÇÑ´Ù.
        # /etc/printcap
        lp|ps|PS|PostScript|djps:\
                :sd=/var/spool/lpd/postscript:\
                :mx#0:\
                :lp=/dev/lp1:\
                :if=/var/spool/lpd/postscript/filter:\
                :sh:
        raw:\
                :sd=/var/spool/lpd/raw:\
                :mx#0:\
                :lp=/dev/lp1:\
                :if=/var/spool/lpd/raw/filter:\
                :sh:
´õ º¹ÀâÇϰųª ƯÀÌÇÑ ÇÁ¸°Æà ¼³Á¤ÀÌ ÇÊ¿äÇϸé Printing-HOWTO¸¦ Àо±â ¹Ù¶õ´Ù.

·¹µåÇÞ »ç¿ëÀÚµéÀ» À§ÇØ: ÇÁ¸°Æ®ÅøÀÌ ¼±ÅÃÇÑ GSDEVICE´Â Á¦´ë·Î ÀÛµ¿ÇÒ °ÍÀÌ´Ù. ÇÏÁö¸¸ ÀÌ°ÍÀÌ ÀÚ½ÅÀÇ ÇÁ¸°ÅÍ¿¡ °¡Àå ¾Ë¸ÂÀº °ÍÀº ¾Æ´Ò ¼öµµ ÀÖ´Ù. postscript.cfg ÆÄÀÏÀÇ »ç¼ÒÇÑ ³»¿ëµéÀ» »ìÆ캸´Â °ÍÀÌ ÁÁ´Ù. ¿¹¸¦ µé¾î ÇÊÀÚÀÇ °æ¿ì¿¡´Â GSDEVICE¸¦ cdj500¿¡¼­ djet500À¸·Î ¹Ù²å´õ´Ï Ãâ·Â ¼Óµµ°¡ ÈξÀ »¡¶óÁ³´Ù.


´ÙÀ½ ÀÌÀü Â÷·Ê