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

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ÀÌ µÇ¾î¾ß ÇÒ °ÍÀÌ´Ù.


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