The Linux Public Web Browser mini-HOWTODonald B. Marti Jr., dmarti@best.comv0.3, 5 January 1998 ¿ªÀÚ : ÀÌÈ£¿¬ guru2k@kldp.org±×µéÀÇ ¾î¶°ÇÑ ´É·ÂÀÌ È¥¶õµÇ¾úÀ»¶§ »ç¶÷µé¿¡°Ô À¥ Á¢±ÙÀ» Á¦°øÇÏ´Â ±âº»ÀûÀÎ »ý°¢ÀÌ ¿©±â¿¡ ÀÖ´Ù. 1. Copyright and Disclaimer(¿ªÀÚÁÖ : ÀÌÇÏÀÇ ºÎºÐÀº ÀúÀÛ±Ç °ü·Ã ºÎºÐÀ¸·Î ¹ø¿ªÀ» ÇÏÁö ¾Êµµ·Ï ÇÏ°Ú½À´Ï´Ù.) Copyright 1997 Donald B. Marti Jr. This document may be redistributed under the terms of the Linux Documentation Project license. This document currently contains information for Netscape Navigator only, but I plan to add notes for other browsers too as I get the necessary information. If you try this with a different browser, please let me know. 2. ¼Ò°³±×µéÀÇ ¾î¶°ÇÑ ´É·ÂÀÌ È¥¶õµÇ¾úÀ»¶§ »ç¶÷µé¿¡°Ô À¥ Á¢±ÙÀ» Á¦°øÇÏ´Â ±âº»ÀûÀÎ »ý°¢ÀÌ ¿©±â¿¡ ÀÖ´Ù. ÀÌ ¼³Á¤Àº ¿ø·¡ Æ®·¹ÀÌµå ¼î¸¦ À§ÇØ Á¦°øÇÏ·Á°í Çß´Ù. ±×·¯³ª ±× °ÍÀº ÄÄÇ»Å͸¦ º¸¾ÆÁÖÁö ¾Ê°í À¥ ºê¶ó¿ìÁ®¸¦ ´ç½ÅÀÌ ¿øÇÏ´Â ´Ù¸¥ °÷¿¡ ÀÀ¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÒ ¼öµµ ÀÖ´Ù. ¾Æ·¡ÀÇ Áö½ÄÀº ´ç½ÅÀÇ ½Ã½ºÅÛÀ» ¹æźÀ̳ª °£´ÜÈ÷ ´Ù·ê ¼ö ÀÖ°Ô ¸¸µéÁö ¾Ê´Â´Ù. 3. ½ÃÀÛÇϱâ Àü¿¡3.1 ´ç½ÅÀº ±×·¡ÇÈ ºê¶ó¿ìÁ®°¡ ÇÊ¿äÇÏ´ÙÀÌ ¹®¼´Â ´ç½ÅÀÌ ÀÌ¹Ì ´ç½ÅÀÇ ½Ã½ºÅÛ¿¡¼ ³Ý½ºÄÉÀÌÇÁ ³×ºñ°ÔÀÌÅÍ °°Àº ±×·¡ÇÈ ºê¶óÁÖÁ®¸¦ »ç¿ëÇÑ´Ù°í °¡Á¤ÇÑ´Ù. ´ç½ÅÀº ´ç½ÅÀÇ ±×·¡ÇÈ À¥ ºê¶ó¿ìÁ®¸¦ »ç¿ëÇϱâ À§Çؼ Æ۹̼ÇÀ» °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù. ´ç½ÅÀÌ »ó¾÷¿ë ³Ý½ºÄÉÀÌÇÁ ³×ºñ°ÔÀÌÅ͸¦ »ç¿ëÇÏ·Á¸é, ´ç½ÅÀº Ä®µ¥¶ó¸¦ ÅëÇÏ¿© ÀûÇÕÇÑ ¶óÀ̼¾½º¸¦ »ì ¼ö ÀÖ´Ù. 3.2 ´ç½ÅÀº °èÁ¤À» Ãß°¡ ÇÒ ¼ö ÀÖ¾î¾ßÇÑ´Ù´ç½ÅÀÌ ·çÆ®°¡ µÉ¼ö ¾ø´Ù¸é, ``guest'' °èÁ¤À» Ãß°¡ÇÏ°í guestÀÇ È¨ µð·ºÅ丮ÀÇ ¼ÒÀ¯±ÇÀ» ÁÙ ¼ö ÀÖ´Â ½Ã½ºÅÛ °ü¸®ÀÚ°¡ µÇ¾î¾ß ÇÑ´Ù. ``¸¸µé±â ȤÀº ´ÙÀ½ÀÇ ÆÄÀÏ ¼öÁ¤''À» Çß´Ù¸é ´ÙÀ½ ÀÛ¾÷(``¸¸µé±â ȤÀº /home/guestÀÇ ´ÙÀ½ ÆÄÀÏÀÇ ¼öÁ¤'') À» Ç϶ó. 3.3 ´ç½ÅÀº À¥ ºê¶ó¿ì¡ ½ºÅ×ÀÌ¼Ç stand-alone¿ë httpd°¡ ÇÊ¿äÇÏ´Ù´ç½ÅÀÌ ³×Æ®¿öÅ© ¿¬°áÀ» ÇÏÁö ¾Ê°í stand-alone¸¦ ½ÇÇàÇϱâ À§ÇÑ À¥ ºê¶ó¿ì¡ ½ºÅ×À̼ÇÀ» ¼³Á¤Çß´Ù¸é, ´ç½ÅÀº httpd ÀÛ¾÷°ú À¥ ¹®¼À¸ÀÇ ¼³Ä¡¸¦ Çؾ߸¸ ÇÑ´Ù. ÀÌ °æ¿ì¿¡ ½ÃÀÛÇ϶ó:
lynx -dump http://localhost/´ç½ÅÀÇ ½Ã½ºÅÛÀÇ È¨ÆäÀÌÁöÀÇ ÅؽºÆ®¸¦ ¾ò¾î¾ß ÇÑ´Ù. 4. guest °èÁ¤ Ãß°¡Çϱâroot·Î, guest¸¦ Ãß°¡Çϱâ À§Çؼ adduser¸¦ ½ÇÇàÇضó. ±× ÈÄ ´ÙÀ½À» ½ÇÇàÇ϶ó. passwd guestguest °èÁ¤ÀÇ Æнº¿öµå ¼³Á¤À» Çضó. ``guest'' °°ÀÌ ½±°Ô ±â¾ïÇÒ ¼ö ÀÖ´Â °ÍÀ¸·Î ÇؾßÇÑ´Ù. ´ç½ÅÀº ÀÌ ¾ÏÈ£¸¦ »ç¶÷µé¿¡°Ô ¸»ÇÒ °ÍÀÌ´Ù. ÀÚ½ÅÀÇ ¾ÏÈ£¿Í °°Àº °ÍÀ» ¾²Áö ¸»¶ó. ±× ÈÄ, guestÀÇ È¨ µð·ºÅ丮¸¦ ¸¸µé¾î¶ó. ´ÙÀ½À» ½ÇÇàÇ϶ó. chown me.mygroup /home/guest»ç¿ëÀÚ À̸§À» ``me'' ¿Í ±×·ì À̸§À» ``mygroup''·Î ´ë½ÅÇ϶ó. (·¹µåÇÞ ¸®´ª½º¿¡¼´Â °°Àº °ÍÀÌ µÉ °ÍÀÌ´Ù, ¸ðµç »ç¿ëÀÚ´Â ±×ÀÇ ÀÚ½ÅÀÇ ±×·ìÀÌ ÀÖÀ» °ÍÀÌ´Ù.) ´ç½ÅÀº Áö±Ý ³ª¿À°í ÀÛ¾÷ÀÇ ³ª¸ÓÁö¸¦ ·çÆ®°¡ ¾Æ´Ñ »óÅ·ΠÇ϶ó. 5. ¸¸µé±â ȤÀº /home/guestÀÇ ´ÙÀ½ ÆÄÀÏÀÇ ¼öÁ¤5.1 ÆÄÀÏ À̸§: .bash_login
exec startx ÀÌ °ÍÀº guest·Î ·Î±×¸° ÇßÀ»¶§ ·Î±×ÀÎ ¼ÐÀº X À©µµ¿ì ½Ã½ºÅÛÀ» ½ÃÀÛÇÒ °ÍÀ» ÀǹÌÇÑ´Ù. 5.2 ÆÄÀÏ À̸§: .Xclients
netscape ÀÌ °ÍÀº X¸¦ ½ÃÀÛÇßÀ»¶§ guest´Â À¥ ºê¶ó¿ìÀú¸¦ À©µµ¿ì ¸Å´ÏÀú°¡ ¾Æ´Ñ »óÅ·Π½ÇÇàÇÒ °ÍÀÌ´Ù. ´ç½ÅÀÌ ´Ù¸¥ À¥ ºê¶ó¿ìÀú¸¦ ¼±ÅÃÇß´Ù¸é ´Ù¸£°Ô ³ª¿Ã °ÍÀÌ´Ù. .Xclients ÆÄÀÏÀº guest°¡ ½ÇÇàÇÒ ¼ö ÀÖ¾î¾ßÇÑ´Ù. ´ÙÀ½À» ½ÇÇà½ÃÄѶó. chmod 755 /home/guest/.XclientsÀÌ·¸°Ô ¸¸µé¾î¶ó. 5.3 ÆÄÀÏ À̸§: .xsession
#!/bin/sh netscape ´ç½ÅÀÌ xdm(1)À» »ç¶÷ÀÌ ·Î±×ÀÎ ÇßÀ»¶§ »ç¿ëÇÑ´Ù¸é, º¸ÅëÀº ·Î±×ÀÎ Çß´Ù¸é ÀÌ ÆÄÀÏÀº guest°¡ À¥ ºê¶ó¿ìÀú¸¦ ¾ò°Ô ¸¸µé °ÍÀÌ´Ù. .xession ÆÄÀÏÀº guest°¡ ½ÇÇàÇÒ ¼ö ÀÖ¾î¾ß ÇÑ´Ù. ´ÙÀ½ÀÇ ÀÛ¾÷À» Çضó. chmod 755 /home/guest/.xsessionÀÌ·¸°Ô ¸¸µé¾î¶ó. 5.4 ÆÄÀÏ À̸§: .Xdefaults
! Disable drag-to-select. *hysteresis: 3000 ! Make visited and unvisited links the same color by default *linkForeground: #0000EE *vlinkForeground: #0000EE Netscape.Navigator.geometry: =NETSCAPE_GEOMETRY ! Disable some of the keyboard commands. *globalTranslations: ! Mouse bindings: make all mouse buttons do the same thing. *drawingArea.translations: #replace \ <Btn1Down>: ArmLink() \n\ <Btn2Down>: ArmLink() \n\ <Btn3Down>: ArmLink() \n\ ~Shift<Btn1Up>: ActivateLink() \ DisarmLink() \n\ ~Shift<Btn2Up>: ActivateLink() \ DisarmLink() \n\ ~Shift<Btn3Up>: ActivateLink() \ DisarmLink() \n\ Shift<Btn1Up>: ActivateLink() \ DisarmLink() \n\ Shift<Btn2Up>: ActivateLink() \ DisarmLink() \n\ Shift<Btn3Up>: ActivateLink() \ DisarmLink() \n\ <Btn1Motion>: DisarmLinkIfMoved() \n\ <Btn2Motion>: DisarmLinkIfMoved() \n\ <Btn3Motion>: DisarmLinkIfMoved() \n\ <Motion>: DescribeLink() \n\ ÀÌ ÆÄÀÏÀº ±ô¹ÚÀ̴ ű×, drag-to-select, ±×¸®°í ±×¿ÜÀÇ º¸µå ¸í·ÉÀ» »ç¿ëÇÏÁö ¸øÇÏ°Ô ÇÑ´Ù. ¶ÇÇÑ ¸ðµç ¸¶¿ì½º ¹öÆ°À» ¸Þ´º¹Ù °¨Ã߱⠰°Àº °ÍÀ» ÇÏ°Ô ÇÑ´Ù. ±×¸®°í ¹æ¹® ÇÑ °÷°ú ÇÏÁö ¾ÊÀº °÷ÀÇ »öÀ» °°°Ô ÇÑ´Ù. ±×·¡¼ ´Ù¸¥ ¹æ¹®ÀÚµéÀº ÁÁÀº ÆĶõ»ö ¸µÅ©¸¦ ¾ò´Â´Ù. ´Ù¸¥ »ç¶÷µéÀº ÀÚÁÖ»öÀ¸·Î °æ¸êÇÏÁö ¾Ê°Ô ÇÑ´Ù. ´ç½ÅÀº X Áö¿À¸ÞÆ®¸® ÆÄÀÏÀÇ NETSCAPE_GEOMETRY¸¦ ´ÙÀ½°ú °°ÀÌ º¯°æÇØ¾ß ÇÑ´Ù: XxY+0-0, X´Â ´ç½ÅÀÇ ½ºÅ©¸°ÀÇ °¡·Î Y´Â ¼¼·Î + 32. ÀÌ °ÍÀº ³Ý½ºÄÉÀÌÇÁ ¸Þ´º ¹Ù¸¦ ½ºÅ©¸°ÀÇ À§·Î À§Ä¡ÇÏ°Ô ÇÑ´Ù. ±×·¡¼ »ç¿ëÀÚ´Â »ê¸¸ÇÏÁö ¾ÊÀ» °ÍÀÌ´Ù. ¿¹¸¦ µé¸é, ´ç½ÅÀÇ ½ºÅ©¸°ÀÌ 800x600À̶ó¸é, Áö¿À¸ÞÆ®¸® °ªÀº 800x630+0-0ÀÌ µÇ¾î¾ß ÇÒ °ÍÀÌ´Ù. 6. guest¸¦ À§ÇÑ .netscape µð·ºÅ丮 ¸¸µé±â´ÙÀ½ÀÇ ÀÛ¾÷À» ¼öÇàÇ϶ó mkdir /home/guest/.netscape chmod 777 /home/guest/.netscapeguestÀÇ .netscape µð·ºÅ丮¸¦ ¸¸µé°í ±×°ÍÀ» ¾²±â °¡´ÉÀ¸·Î ¸¸µé¾î¶ó. 7. ½ÃÇèÇغ¸¶ó·Î±× ¾Æ¿ôÇÏ°í, ±× ÈÄ guest·Î ·Î±×ÀÎ Çغ¸¶ó. 8. ´Ù¸¥ °Í ¹Ù²Ù±â´ç½ÅÀÌ guest°¡ ¸Þ´º¹Ù¸¦ »ç¿ëÇÏÁö ¸øÇÏ°Ô ÇÑ ÈÄ, ±×°ÍÀ» ¹Ù²Ù´Â °ÍÀÌ ÇÊ¿äÇϰųª, ȤÀº guestÀÇ °ÍÀ» ´Ù¸¥ ÆÄÀÏ·Î º¹ÇÏ»ç±â À§ÇØ ´ç½Å ÀÚÀÎÀÇ ´Ù¸¥ °ÍÀ» ¹Ù²Ù·Á¸é guestÀÇ ´Ù¸¥ °ÍÀ» ¼öµ¿À¸·Î ¹Ù²Ù¾î¾ß ÇÑ´Ù. |
With clothes the new are best, with friends the old are best. |