The Linux UUCP HOWTOGuylhem Aznar guylhem@oeil.qc.cav2.1.6 July 1998ÀÌ ¹®¼´Â unixȯ°æ¿¡¼ÀÇ UUCP¸¦ ¼³Ä¡ÇÏ°í °ü¸®ÇÏ´Â ¹æ¹ý¿¡ ´ëÇÏ¿© ¼³¸íÇÕ´Ï ´Ù. UUCP³ª ¸ðµ©, Á÷Á¢(direct-connection) ¶Ç´Â ÀÎÅͳÝÀ» ÅëÇÏ¿© ¿ø°Ý ½ÎÀÌÆ®¸¦ ¿¬°áÇÏ°íÀÚ ÇÑ´Ù¸é ÀÌ ¹®¼¸¦ ÀÐÀ¸¼Å¾ß ÇÕ´Ï´Ù. ¹°·Ð ¸¸¾à UUCP¿¡ °ü½ÉÀÌ ¾ø´Ù °Å³ª ±×°ÍÀÇ ÀǹÌÁ¶Â÷ ¸ð¸£½Å´Ù¸é ÀÌ ¹®¼¸¦ ÀÐÁö ¾ÊÀ¸¼Åµµ µË´Ï´Ù. 1. ¼Ò°³, copyright & standard disclaimer1.1 ¸ÞÀÏ°ú spam¸ÞÀÏ(Email & spamming)¿ì¼±, ÀÌ ¹®¼¿¡ Ç¥½ÃµÈ ¸ðµç email ÁÖ¼ÒÀÇ "at"Àº "@"·Î ¹Ù²ß´Ï´Ù. ±×°ÍÀº Àΰ£¿¡°Ô´Â °£´ÜÇÏÁö¸¸ spam¸ÞÀÏÀ» º¸³»±âÀ§ÇÏ¿© webÀ» ã¾Æ ´Ù´Ï´Â ³ª»ÛÀ̵鿡°Ô´Â °£´ÜÇÏÁö ¾Ê½À´Ï´Ù. ±×·¯¹Ç·Î spam mailÀ» ¹Þ´Â °ÍÀ¸·ÎºÎÅÍ ÀÏ ¹ÝÀεéÀ» º¸È£Çϴµ¥ ÃæºÐÇÕ´Ï´Ù. 1.2 ¸ñÀû(Goals)ÀÌ ¹®¼ÀÇ ¸ñÀûÀº Linux DebianÀÇ ÀÏ¹Ý ¹öÀü°ú RedHatÀÇ ¸î °³ÀÇ ¹öÀüÇÏ¿¡¼ÀÇ UUCP¿¡ °üÇÏ¿© "ÀÚÁÖ ¹®ÀǵǴ Áú¹®"¿¡¼ Á¢ÇÏ°Ô µÇ´Â ¿©·¯ Áú¹®µé°ú ¹®¼µé ¿¡ ´ëÇÏ¿© ´äÇÏ´Â °Í ÀÔ´Ï´Ù. 1.3 »õ ¹öÀü(New versions)ÀÌ ¹®¼ÀÇ »õ ¹öÀüÀº Á¤±âÀûÀ¸·Î comp.os.linux.announce¿Í comp.answers & news.answers¿¡ °ÔÀ÷µÉ °ÍÀÔ´Ï´Ù. ¶ÇÇÑ »õ ¹öÀüÀÇ ¹®¼µéÀº ´Ù¾çÇÑ À͸íÀÇ ftp ½ÎÀÌÆ®¿¡ ÷°¡µÉ °ÍÀ̸ç sunsite.unc.edu/pub/Linux/docs/HOWTO °°Àº sunsite FTP¿¡µµ Á¤º¸°¡ ÷°¡µÉ °ÍÀÔ´Ï´Ù. ¶ÇÇÑ, LDP ÆäÀÌÁö¿¡ ÀÖ´Â Linux WorldWideWebÀÇ È¨ ÆäÀÌÁö¿¡¼µµ ÀÌ ¹®¼µé Àº ãÀ¸½Ç ¼ö ÀÖ½À´Ï´Ù. 1.4 ¹ÝÀÀ(Feedback)ÀÌ ¹®¼¿¡ ´ëÇÑ ÄªÂùÀ̵ç ÁúÃ¥ÀÌµç ¾î¶² ¹ÝÀÀµµ ´Ù ȯ¿µÇÕ´Ï´Ù..(e-mailÀ» ÀÌ¿ë Çϼ¼¿ä) ¸¸¾à ½Ç¼ö³ª ºüÁøºÎºÐµîÀ» ¹ß°ßÇÏ½Ã¸é ²À Àú¿¡°Ô ¿¬¶ôÁÖ¼¼¿ä. Àú´Â Á¦°¡ ¹ÞÀº ¸ðµç ¸ÞÀÏÀ» ÀнÀ´Ï´Ù -±×·¯³ª ¸ðµç ¸ÞÀÏ¿¡ ²À ´äÀåÀ» ÇÏÁö´Â ¾Ê½À´Ï´Ù. ´õ¿í Çâ»óµÈ ¹®¼¸¦ À§ÇÑ ¿ä±¸µéÀº ½É»ç¼÷°íÇÏ¿© ±×³¯±×³¯ÀÇ Á¦ ±âºÐ À̳ª Á¦¾ÈÀÇ ÀÕÁ¡ ±×¸®°í ½Ã°£ÀÌ °¡´ÉÇÔ¿¡µû¶ó ¹Ý¿µµË´Ï´Ù.:-) FlamesÀº »èÁ¦(go to /dev/null)µÇ¹Ç·Î °ÆÁ¤ÇÏÁö ¾ÊÀ¸¼Åµµ µË´Ï´Ù. ÀÌ ¹®¼ÀÇ Çü½Ä¿¡ °üÇÑ »çÇ×Àº HOWTOÀÇ ÄÚµð³×ÀÌÅÍÀÎ Greg Hankins ( sunsite.unc.eduÀÇ greg)¿¡°Ô º¸³»¼Å¾ß ÇÕ´Ï´Ù. 1.5 ÀúÀÛ±Ç(Copyright)UUCP-HOWTOÀÇ ÀúÀÛ±ÇÀº Guylhem Azar¿¡°Ô ÀÖ½À´Ï´Ù(1997). LDP ÀúÀ۱ǿ¡ ÀÇÇÏ¿© ¹èÆ÷µË´Ï´Ù. ¸¸¾à ÀÌ¿¡ Àǹ®ÀÌ ÀÖÀ¸½Ã¸é Linux HOWTOÀÇ ÄÚµð³×ÀÌÅÍÀÎ Greg Hankins( sunsite.unc.edu ÀÇ greg) ¿¡°Ô ¿¬¶ôÇϼ¼¿ä. 1.6 Á¦ÇÑ»çÇ×¹°·Ð Àú´Â ÀÌ ¹®¼ÀÇ ³»¿ë¿¡¼ ¹ß»ýÇÒ ¼öµµ ÀÖ´Â ¾î¶² Ã¥ÀÓµµ ¾øÀ½À» ¾Ë·Áµå¸³ ´Ï´Ù. ÀÌ ¹®¼ÀÇ ¾î¶² °³³äÀ̳ª ¿¹Á¦µé &/(?)¸¦ »ç¿ëÇϽô °ÍÀº ÀüÀûÀ¸·Î ¿©·¯ ºÐÀÇ Ã¥ÀÓÀÔ´Ï´Ù. 2. ÀÌ ¿ÜÀÇ Á¤º¸2.1 USENETLinux¿¡¼ UUCP¸¦ ±¸¼ºÇÏ°í ½ÇÇàÇϴµ¥¿¡ Ưº°ÇÔÀº ¾ø½À´Ï´Ù. µû¶ó¼ ¿©·¯ºÐ Àº ÀϹÝÀûÀÎ UUCP, comp.os.linux.*newsgroups¿¡ °ü°èµÈ Áú¹®µéÀ» ¹Þ±â¸¦ ¿øÇÏ Áö ¾ÊÀ» °ÍÀÔ´Ï´Ù. ¿¹¸¦µé¾î "Deban 1.2 uucp°¡ ¹«¾ùÀÌ À߸øµÇ¾ú³ª¿ä?' ¶Ç´Â '½ÇÇà½Ã¿¡ RedHat5.0 uucp°¡ Ãæµ¹ÀÌ ÀϾ´Âµ¥...'¿Í °°Àº Linux¿¡ °ü°èµÈ Áú¹®ÀÌ ¾Æ´Ï¸é comp.os.linux·Î ¸ÞÀÏÀ» º¸³»Áö ¸¶¼¼¿ä. ´Ù½ÃÇѹø ¸»ÇÕ´Ï´Ù. comp.os.linux¿¡ uucp¿¡ °üÇÑ ¾î¶²°Íµµ ¸ÞÀÏÀ» º¸³»½Ç ÀÌÀ¯°¡ ¾ø½À´Ï´Ù. ¿©·¯ºÐ ÀÇ Áú¹®À» ´Ù·ç±â À§ÇÏ¿© comp.mail.*¾ÈÀÇ newsgroupÀÌ Á¸ºñµÇ¾î ÀÖ½À´Ï´Ù. ¸¸¾à ¿©·¯ºÐÀÌ Linux¿Í °ü°è¾ø´Â Áú¹®À» comp.os.linux.*¿¡ º¸³»½Å´Ù¸é µµ¿òÀ» ¹ÞÀ¸½Ç ¼ö ¾ø½À´Ï´Ù. uucp »ç¿ëÀÚµéÀº À§¿¡¼ ¾ð±ÞÇÑ °÷¿¡¼ ÇظÞÀÌ°í ÀϹÝÀûÀ¸ ·Î linux¸¦ ¿îÇàÇÏÁö ¸øÇÕ´Ï´Ù. Linux¿Í °ü°è¾ø´Â Áú¹®À» linux hierarchy¿¡ º¸³»´Â °ÍÀº ¿©·¯ºÐ°ú ±×¿ÜÀÇ ¸ðµç À̵éÀÇ ½Ã°£À» ³¶ºñÇÏ´Â °ÍÀÌ¸ç ¿øÇϽô ´äÀ» ¾ò±âÀ§ÇÑ ½Ã°£À» Áö¿¬½Ãŵ´Ï´Ù. uucp¿¡ °üÇÑ Áú¹®Àº comp.mail.uucp¿¡ ÇÏ½Ã¸é ¿øÇϽô µµ¿òÀ» ¹ÞÀ¸½Ç °Ì´Ï´Ù. 2.2 Mailing ListsTaylor UUCP mailing list¿¡ ´ëÇÏ¿© ¼³¸íÇÕ´Ï´Ù. ´ÙÀ½ list¸¦ ¿¬°áÇÏ¿© ¸ÞÀÏÀ» º¸³»¼¼¿ä. taylor-uucp-request@gnu.ai.mit.edu ÀÌ ÁÖ¼Ò´Â ÇÁ·Î±×·¥ÀÌ ¾Æ´Ñ »ç¶÷¿¡°Ô º¸³»¾îÁö±æ¸¦ ¿ä±¸ÇÕ´Ï´Ù. µû¶ó¼ textÈÀÏ ·Î ¸Þ½ÃÁö¸¦ ¹Þ±â ¿øÇÏ´Â mail ÁÖ¼Ò¸¦ ÷°¡ÇØ¾ß ÇÕ´Ï´Ù. ´ÙÀ½ list¿¡ ¸Þ½ÃÁö¸¦ º¸³»¼¼¿ä. taylor-uucp@gnu.ai.mit.edu 2.3 LDP·ÎºÎÅÍÀÇ ´Ù¸¥ ¹®¼ÀÚ·á´Ù¸¥ Linux HOWTO ¹®¼¿Í Linux DOC project·ÎºÎÅÍ Á¦°øµÇ´Â Ưº°ÇÑ ÀÚ·á°¡ ¸¹ÀÌ ÀÖ½À´Ï´Ù. ƯÈ÷ ´ÙÀ½ÀÚ·áµéÀ» ÂüÁ¶ÇÏ´Â °ÍÀÌ ¾ÆÁÖ À¯¿ëÇÒ °ÍÀÔ´Ï´Ù. * °¢ÀÚ computeÀÇ /usr/doc/uucp ¿Í //usr/info/uucp* :-) * the Linux Networking Administrators' Guide * the Serial Communications HOWTO * the Ethernet HOWTO * the News HOWTO * the Mail HOWTO 2.4 Âü°í¼ÀûUUCPÀÇ HDB¿Í V2 ¹öÀüÀº ´ëºÎºÐÀÇ *nix communications Ã¥ »Ó¸¸ ¾Æ´Ï¶ó ÆÇ ¸ÅµÇ°í ÀÖ´Â ¸ðµç °ü·Ã¹®¼¿¡¼ Á¦°øµÇ°í ÀÖ½À´Ï´Ù. Taylor config. ÆÄÀÏÀº ÇöÀç ¼Ò½º¿Í ÇÔ²² Á¦°øµÇ´Â Á¤º¸ ÆÄÀÏ¿¡ ±â·ÏµÇ¾î ÀÖ½À´Ï ´Ù. (±×¸®°í ¾Æ¸¶ ¿©·¯ºÐÀÇ ¹èÆ÷ºÐ¿¡¼ Á¦°øµË´Ï´Ù) ´ÙÀ½Àº µµ¿òÀÌ µÉ¸¸ÇÑ Âü°í ¼ÀûÀÌ´Ù.
3. ¿ä±¸»ç¾ç(Requirements)3.1 HardwareLinux»ó¿¡¼ UUCP¸¦ À§Çؼ ¿ä±¸µÇ´Â Ưº°ÇÑ hardware »ç¾çÀº ¾ø´Ù. ±âº»ÀûÀ¸ ·Î Hayes°¡´É ¸ðµ©ÀÌ UUCP¿Í ÇÔ²² ¹«¸®¾øÀÌ ÀÛµ¿ÇÏ¸é µÈ´Ù. ´ëºÎºÐÀÇ °æ¿ì¿¡ ¿©·¯ºÐÀº °¡Àå ºü¸¥ ¸ðµ©À» ¿øÇÏ°í ¶Ç ¿¹¸¦µé¾î 56000 bps¸ðµ© À» »ì¼öµµ ÀÖ´Ù ÀϹÝÀû·Î ¿©·¯ºÐÀº serial board¿¡ 16550 UART¸¦ ¶Ç 9600 baudÀÌ»óÀÇ ¼Óµµ¸¦ ´Ù·ç±â À§ÇÏ¿© ±×°ÍÀ» ¸ðµ©¿¡ ÀåÂøÇϱ⸦ ¿øÇÑ´Ù ¸¸¾à ¸¶Áü°¡ ¹®ÀåÀÇ Àǹ̸¦ ÀÌÇØÇÏÁö ¸øÇÑ´Ù¸é comp.dcom.modems groupÀ̳ª the various fine modem°ú serial communications FAQs¿Í ¾Õ¿¡ ¾ð±ÞÇÑ USENET ÁÖ¼Ò¿¡ ¸ÞÀÏÀ» ÅëÇÏ¿© ÀÚ¹®À» ±¸ÇÏ¸é µË´Ï´Ù. 3.2 SofrwarelinuxÀÇ UUCP´Â ¾îµð¼³ª ±¸ÇϽǼö ÀÖ½À´Ï´Ù. ¿¹¸¦µé¾î sunsite.unc.edu¿¡¼ ±¸ ÇÏ½Ã¸é µË´Ï´Ù. ±×·¯³ª ¾î´À ¹öÀüÀ» ±¸ÇϽñâ Àü¿¡ ÇöÀç uucp¸¦ ¼³Ä¡ÇÏ°í ¸¸µé ¾î º¸¼¼¿ä. ¾Æ¸¶ °¢°¢ÀÇ linux Á¦Ç°¸¶´Ù ÀÛÀº ¾î·Á¿òµéÀÌ ¸¹ÀÌ ÀÖÀ» °ÍÀÔ´Ï´Ù. ±×·¯¹Ç·Î ¸î °³ÀÇ ¿É¼Ç¿¡ µû¶ó ¼Ò½º¸¦ Á÷Á¢ ÆíÁýÇϰųª Àû´çÇÑ °æ·Î¿Í ±ÇÇѼ³ Á¤,¼³Ä¡ µîÀ» ÇÏ´Â °Íº¸´Ù ¿©·¯ºÐÀÇ È¯°æ¿¡ ¾Ë¸Â´Â uucp Á¦Ç°À» ¼³Ä¡(configure/ install)Çغ¸´Â °ÍÀÌ ´õ¿í ½¬¿î ¹æ¹ýÀÔ´Ï´Ù. ±×·¯³ª ¸¸¾à ¼Ò½º¸¦ ÆíÁýÇÏ´Â °ÍÀÌ ´õ ÁÁ´Ù¸é ...
4. ȯ°æÈÀÏ ¼³Á¤Àú´Â ¿©·¯ºÐ¿¡°Ô ¼³Ä¡½Ã¿¡ Æ÷ÇԵǾîÀִ ȯ°æÈÀÏÀ» ±ÇÇص帳´Ï´Ù. ÆÄÀϵéÀº ¹®¼¿¡ Æ÷ÇԵǾîÀÖ½À´Ï´Ù. 4.1 config. ÆÄÀϼ³Ä¡ÀÌ ÆÄÀÏÀ» uucp±âº» µð·ºÅ丮 Áï Çö linuxÁ¦Ç°Àº /etc/uucp¿¡ ÀÌÀü ¹öÁ¯Àº /usr/lib/uucp¿¡ À§Ä¡½ÃÅ°¼¼¿ä. ±×·±´ÙÀ½ °¢ ÆÄÀÏÀÇ Çã¿ë°ª(permissions)À» È®ÀÎÇϼ¼¿ä. (guylhem@barberouge:uucp)$ ls -l total 11 -rw-r--r-- 1 uucp uucp 501 Jan 23 11:33 Poll -rw-r----- 1 uucp uucp 589 Jan 23 11:34 call -rw-r----- 1 uucp uucp 1184 Jan 23 12:06 config -rw-r----- 1 uucp uucp 476 Jan 23 12:31 crontab -rw-r----- 1 uucp uucp 1256 Jan 23 11:47 dial -rw-r----- 1 uucp uucp 486 Jan 23 11:48 passwd -rw-r----- 1 uucp uucp 810 Jan 23 11:55 port -rw-r--r-- 1 uucp uucp 1690 Jan 23 12:04 sys (guylhem@barberouge:uucp)$ ÆÄÀÏÀÇ ¼ÒÀ¯ÁÖ¸¦ ´ÙÀ½°ú °°ÀÌ º¯°æ½ÃÅ°¼¼¿ä. (root@barberouge:uucp)$ chown uucp.uucp * ±×·±´ÙÀ½ ´Ù½ÃÇѹø ÆÄÀÏÀÇ Çã¿ë°ª(permissions)À» º¯°æ½ÃÅ°¼¼¿ä. (root@barberouge:uucp)# chmod 640 * (root@barberouge:uucp)# chmod +r Poll sys 4.2 "poll" ÆÄÀÏÀÌ ÆÄÀÏÀº ½Ã½ºÅÛÀÇ polling timetablesÀ» ¼³Á¤Çϴµ¥ »ç¿ëµË´Ï´Ù. schedule polux 01 poll polux 01Á¦ ±â°è´Â 01:00¿¡ polux¸¦ È£ÃâÇÕ´Ï´Ù. ÀÌ ±â´ÉÀÌ ´ÙÀÔ´Ï´Ù. ¿©·¯ºÐÀÌ ¸¸¾à ¸¹Àº ´Ù¸¥ ±â°èµéÀ» È£ÃâÇؾßÇÑ´Ù¸é ´Ù¸¥ ¸í·ÉµéÀ» ´õ Âü°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª °¢ ¸í·É¿¡ ´ÙÀ½ µÎÁÙ(schedue & poll)Àº ÀØÁö¸»°í ¾²¼Å¾ß ÇÕ´Ï ´Ù. 4.3 "call" ÆÄÀÏÀÌ ÆÄÀÏÀº ¿©·¯ºÐÀÌ ¼Û½Å(poll)ÇÏ´Â ¸ðµç ½Ã½ºÅÛ¸¶´Ù login/passwdÈÀÏÀ» Æ÷ÇÔÇÕ ´Ï´Ù. polux uudan passwordÁ¦ ±â°è´Â "polux"¸¦ ¼Û½Å(poll)ÇÒ ¶§ loginÀ¸·Î "uudan" ±×¸®°í password·Î "password"¸¦ »ç¿ëÇÕ´Ï´Ù :-) PollÀº ¿©·¯ºÐÀÇ È¯°æ¿¡ ¸Â°Ô Àû¿ë½Ãŵ´Ï´Ù. 4.4 "config" ÆÄÀÏ
nodename barberouge # The UUCP name of this system spool /var/spool/uucp # The UUCP spool directory pubdir /var/spool/uucppublic # The UUCP public directory logfile /var/log/uucp/log # The UUCP log file statfile /var/log/uucp/stats # The UUCP statistics file debugfile /var/log/uucp/debug # The UUCP debugging file #sysfile /etc/uucp/sys # Default "sys" #portfile /etc/uucp/port # Default "port" #dialfile /etc/uucp/dial # Default "dial" #dialcodefile /etc/uucp/dialcode # Default "dialcode" #callfile /etc/uucp/call # Default "call" #passwdfile /etc/uucp/passwd # Default "passwd" # No commands may be executed by unknowns (empty list of permitted commands) # Upload is authorized in /var/spool/uucp unknown commands unknown pubdir /var/spool/uucp unknown remote-send ~ !~/upload unknown remote-receive ~/uploadÀ§¿¡¼ "barberouge"·ê ¿©·¯ºÐÀÇ ½Ã½ºÅÛÀ̸§À¸·Î ¹Ù²Ù¸é µË´Ï´Ù. ¸¸¾à ½Ã½ºÅÛÀ̸§À» ¸ð¸£½Ã¸é "hostname"¸¦ ½ÇÇàÇϸé À̸§À» È®ÀÎÇÏ½Ç ¼ö ÀÖ½À ´Ï´Ù. 4.5 "crontab" ÆÄÀÏ
# Every day just before morning generate reports. # 0 7 * * * /usr/lib/uucp/uudemon.day root # # Every hour start the uudemon.hr. To actually poll a remote system, # enter its name in /etc/uucp/Poll. You are encouraged to change the "8". # 8 * * * * /usr/lib/uucp/uudemon.hr crontab ÆÄÀÏ¿¡ ÷°¡Çϱâ À§ÇÏ¿© ´ÙÀ½À» ½ÇÇà»çÅ°¸é µË´Ï´Ù. "crontab -u uucp /etc/uucp/crontab" 4.6 "dial" ÆÄÀÏ
# 1) expect nothing (i.e., continue with step 2) # 2) send "ATZ", then a carriage return, then sleep for 1 to 2 seconds. # The \c means to not send a final carriage return. # 3) wait until the modem echoes "OK", then do the the same for "ATX4" & "OK" # 4) send "ATDT", then the telephone number (after translating any dialcodes). # 5) wait until the modem echoes "CONNECT" # 6) if we get "BUSY", "NO CARRIER" ... during the chat script we abort dialing # 7) when the call is over, we make sure we hangup the modem dialer hayes chat "" ATZ\r\d\c OK\r \dATX4\r\d\c OK\r ATDT\D CONNECT chat-fail RING chat-fail NO\sCARRIER chat-fail ERROR chat-fail NO\sDIALTONE chat-fail BUSY chat-fail NO\sANSWER chat-fail VOICE complete \d\d+++\d\dATH\r\c abort \d\d+++\d\dATH\r\c # You can also add other dialers: inetd, nullmodem ... #dialer nullmodem #complete \d\dexit\r\c #abort \d\dexit\r\c¹®¹ýÀÌ ¿Ïº®ÇÔÀ¸·Î ÀÌ ÆÄÀÏÀº ¼öÁ¤ÇÏÁö ¾Ê´Â °ÍÀÌ ´õ ¹Ù¶÷Á÷ÇÕ´Ï´Ù. ±×·¯³ª Àú ´Â ¸ðµ© ÃʱâÈ ¸í·ÉÀ¸·Î "ATZ" & "ATX4"¸¦ »ç¿ëÇÕ´Ï´Ù. 4.7 "passwd" ÆÄÀÏ
#uuguest guestpassword¸¸¾à uucp dialinÀ» Çã¿ëÇϽ÷Á¸é ´ÜÁö ÀÌ ÆÄÀÏ¿¡ system/passwords¸¦ ÷°¡ÇÏ¸é µË´Ï´Ù. ¾ÆÁÖ °£´ÜÇÕ´Ï´Ù. ¾ÈÀü»óÀÇ ÀÌÀ¯·Î °¢°¢ ºÐ¸®µÈ °èÁ¤°ú Ȩ µð·ºÅ丮¸¦ °¡Áö´Â °ÍÀÌ ±Ç°í µË´Ï´Ù. ±×·¯¸é ¿©·¯ºÐÀº °¢°¢ÀÇ ÈçÀûÀ» ãÀ» ¼ö ÀÖ½À´Ï´Ù(track). 4.8 "port" ÆÄÀÏ
# Description for the modem entry # Debianers, make SURE this device is root:dialout, mode 0660 (crw-rw---) port ACU type modem device /dev/ttyS0 dialer hayes speed 57600 # hardflow n # Description for the TCP port - pretty trivial. DON'T DELETE. # Change service number if non standard, cf /etc/services port TCP type tcp #service 540 # Description for the nullmodem entry # (ttyS1 means COM2) port nullmodem type direct device /dev/ttyS1 dialer nullmodem speed 115200¿©·¯ºÐÀÇ ¸ðµ©Æ÷Æ®¹øÈ£¸¦ Á¦¿ÜÇÏ°í ´Ù¸¥ °ÍÀº º¯°æÇÏÁö ¸¶¼¼¿ä. mgettyÀÇ ÃÖ±Ù¹öÁ¯Àº /dev/ttySN ÀÌÀü¹öÀüÀº /dev/cuaNÀÌ´Ù ¿©±â¼ NÀº °¢ÀÚ ÀÇ serial port ÀÌ´Ù. 0À¸·Î ½ÃÀÛÇÏ´Â N°ú ttyS(N)Àº COM(N+1)À» ÀǹÌÇÑ´Ù. ¿¹¸¦µé¸é Á¦ ¸ðµ©ÀÌ ttyS0(COM1)ÀÎ µ¿¾È null-modemÀº ttyS1(COM2)ÀÔ´Ï´Ù. ÃÖ±Ù¸ðµ©ÀÇ ´ëºÎºÐÀº hardware flow controlÀ» Áö¿øÇÕ´Ï´Ù. ¸¸¾à ¿©·¯ºÐÀÇ ¸ðµ© ÀÌ À̸¦ Áö¿øÇÏÁö¾Ê´Â´Ù¸é "#hareflow n"ÀÇ "#"¸¦ »©½Ã¸é µË´Ï´Ù. 4.9 "sys" ÆÄÀÏ
# First some defaults. These are for ALL other entries (unless overridden). # protocol gvG protocol-parameter G packet-size 1024 # protocol-parameter G window 7 protocol-parameter G short-packets # # Our remote uucp connection. # system polux call-login * call-password * local-send / local-receive /var/spool/uucppublic remote-send / remote-receive /var/spool/uucppublic time any phone 0111111110 port ACU chat "" \r\c ogin:-BREAK-ogin:-BREAK- \L word: \P #chat "" \d\d\r\c ogin: \d\L word: \P # This is an alternate - it means that if a connection using the above # "system polux" fails it falls through to this entry. # Only useful if your service provider has more then one phone number for UUCP. #alternate polux-2 #alias polux-2 #phone 0222222220 # Here's another alternate - we poll the system over TCP/IP. # This is useful if we have a PPP connection to our provider. # The first two entries will fail because the modem is busy & we will poll # over TCP/IP. # #alternate polux-tcp #alias polux-tcp #time any #address uucp.polux #port TCP #protocol t # # Last example - a system that we poll over TCP/IP. # #system horizon #call-login * #call-password * #time any #chat "" \d\d\r\c ogin: \d\L word: \P #address uucp.horizon.nl #port TCP #protocol t"polux"¸¦ ¿©·¯ºÐÀÇ poll ½Ã½ºÅÛÀ̸§À¸·Î "0111111110"¸¦ ÀüȹøÈ£·Î ¹Ù²ã¾ß ÇÕ ´Ï´Ù. "polux-2","polux-tcp" ±×¸®°í "horizon"Àº »ç¿ëÀÚ ¿ä±¸ÀÇ ¿¹ÀÔ´Ï´Ù. ¸¸¾à ¿©·¯ºÐ ÀÌ ¼Û½Å(poll)ÇÏ´Â ½Ã½ºÅÛÀÌ Çϳª ÀÌ»óÀÇ lineÀ» °¡Áö°í ÀÖÀ¸¸é "itsname-2"·Î Á¤ ÀÇÇÕ´Ï´Ù. ¸¸¾à ¶§¤¨·Î PPP·Î È£ÃâÇϸé "itsname-tcp"·Î Á¤ÀÇÇÕ´Ï´Ù. ÀÌ°ÍÀº Åë½Å´ë±â(busy)½Ã À¯¿ëÇÕ´Ï´Ù. 4.10 test¿ì¼± ½ÇÇàÇغ»´Ù. (root@barberouge:uucp)# su uucp (uucp@barberouge:uucp)# /usr/lib/uucp/uuchk Local node name barberouge Spool directory /var/spool/uucp Public directory /var/spool/uucppublic Lock directory /var/lock Log file /var/log/uucp/log Statistics file /var/log/uucp/stats Debug file /var/log/uucp/debug Global debugging level uucico -l will strip login names and passwords uucico will strip UUCP protocol commands Start uuxqt once per uucico invocation System: polux When called using any login name Call out using port ACU The possible ports are: Port name ACU Port type modem Device /dev/ttyS0 Speed 57600 Carrier available Hardware flow control available Dialer hayes Chat script "" ATZ\r\d\c OK\r \dATX4\r\d\c OK\r ATDT\D CONNECT Chat script timeout 60 Chat failure strings RING NO\sCARRIER ERROR NO\sDIALTONE BUSY NO\sANSWER VOICE Chat script incoming bytes stripped to seven bits Wait for dialtone , Pause while dialing , Carrier available Wait 60 seconds for carrier When complete chat script "" \d\d+++\d\dATH\r\c When complete chat script timeout 60 When complete chat script incoming bytes stripped to seven bits When aborting chat script "" \d\d+++\d\dATH\r\c When aborting chat script timeout 60 When aborting chat script incoming bytes stripped to seven bits Phone number 0111111110 Chat script "" \r\c ogin:-BREAK-ogin:-BREAK- \L word: \P Chat script timeout 10 Chat script incoming bytes stripped to seven bits Login name uudan Password your_password_here At any time may call if any work May retry the call up to 26 times May make local requests when calling May make local requests when called May send by local request: / May send by remote request: / May accept by local request: /var/spool/uucppublic May receive by remote request: /var/spool/uucppublic May execute /usr/bin/uucp /usr/bin/rmail /usr/bin/rnews Execution path /bin /usr/bin /usr/local/bin /usr/sbin Will leave 50000 bytes available Public directory is /var/spool/uucppublic Will use protocols gvG For protocol G will use the following parameters packet-size 1024 short-packets¸ðµç Á¤º¸µéÀÌ ¾Ë¸Â°Ô ¼³Á¤µÇ¾ú´ÂÁö È®ÀÎÇÕ´Ï´Ù. °æ°í : ¿©·¯ºÐÀÇ ½ÇÇà°á°ú(mileage?)°¡ ´Ù¸¦¼öµµ ÀÖ½À´Ï´Ù. ´Ù¸¥Á¦Ç°µéÀº ºñ·Ï Linux FSSTD¿¡µµ ºÒ°íÇÏ°í ´Ù¸¥ °æ·Î¸¦ »ç¿ëÇÕ´Ï´Ù. ¸¸¾à ¸ðµç °ÍÀÌ Á¦´ë·Î ½ÇÇàµÇ¾ú´Ù¸é ´ÙÀ½À» ½ÇÇàÇÕ´Ï´Ù. /usr/sbin/uucico -r 1 -x 9 -s remote_system_name¿É¼Ç -x 9´Â Ãʱ⼳ġ½Ã µµ¿òÀÌ µÇ´Â /var/log/uucp/debugÈÀÏ¿¡ ¾²¿©Áö´Â ÃÖ´ë debuggingÁ¤º¸ÀÔ´Ï´Ù. Àú´Â º¸Åë -x 4·Î ½ÇÇàÇÕ´Ï´Ù. ¿Ö³ÄÇÏ¸é ±× Á¤µµ°¡ login¹®Á¦µéÀ» ÀÚ¼¼È÷ È®ÀÎ (log)ÇÒ ¼ö ÀÖ´Â levelÀÔ´Ï´Ù. ÀÌ ¹®ÀåÀº ¸í¹éÇÏ°Ô ¿©·¯ºÐÀÇ ½Ã½ºÅÛ ÆÄÀÏ (account/passwoed)À¸·ÎºÎÅÍ Á¤º¸µéÀ» Áö¿ó´Ï´Ù. ±×·¡¼ ´Ù¸¥À̵éÀÇ Àбâ·ÎºÎÅÍ º¸È£ÇØ¾ß ÇÕ´Ï´Ù. 4.11 Ãß°¡Á¤º¸emeraude.syseca.frÀÇ Pierre.Beyssac Taylor´Â ´õ ¸¹Àº logging ´Ü°è(level)À» Á¦°øÇÕ´Ï´Ù. -x allÀº °¡´ÉÇÑ ÃÖ´ëÀÇ ´Ü °è¸¦ ÀǹÌÇÕ´Ï´Ù. ¶ÇÇÑ, fly(?) µµÁß ¹ß»ýÇÏ´Â »óÈÀ» È®ÀÎÇϱâ À§ÇÑ debuggingµµÁß ´ÙÀ½À» ½ÇÇàÇÕ ´Ï´Ù. " tail -f /var/log/uucp/debug" 5. ÀÛµ¿µÇÁö ¾Ê´Â °æ¿ì - ¹«¾ùÀÌ ¹®Á¦Àΰ¡ ?ÀϹÝÀûÀ¸·Î ¹®Á¦°¡ ¹ß»ýÇϸé À§¿¡¼ ¾ð±ÞµÈ ¹®¼¸¦ ÂüÁ¶ÇÕ´Ï´Ù. ¶ÇÇÑ °æÇèÀÌ Ç³º¸ÇÑ UUCP Àü¹®°¡µé¿¡°Ô µµ¿òÀ» ¿äûÇÒ ¼öµµ ÀÖ½À´Ï´Ù.±×·± ¾î ·µç typo(?) °°Àº °ÍÀÔ´Ï´Ù. 6. Linux UUCP¿¡ ´ëÇÏ¿© ÀÚÁÖ ¹®ÀǵǴ Áú¹®6.1 HDB mode´Â ¹«¾ùÀΰ¡? HDBº¸´Ù Taylorȯ°æÀÇ UUCP Á¤º¸¸¦ ´ãÀº ÀÌÀ¯?(Á¾±³Àû ¸ðµå(religious mode ?) - ³ª´Â ³»°¡ "±âÁØ(being standard)"¿¡ ±×·¸µíÀÌ "»ç¿ëÀÇ ¿ëÀÌÇÔ(ease of use)"¿¡ Á¾±³ÀûÀÎ(religious ?) ¸î¸îÀ» ¾È´Ù. ±×°ÍÀÌ ¹Ù·Î ±×µéÀÌ ¼Ò½º¸¦ ÀÛ¼ºÇÏ°í ±×·ÎºÎÅÍ ¿©·¯ºÐÀÌ ÀÚ½ÅÀÇ °ÍÀ» ÀÛ¼ºÇÒ ¼ö ÀÖ´Â ÀÌÀ¯ÀÔ ´Ï´Ù. ¿Ö³ÄÇϸé IMHO´Â ÇöÀç de-facto standard uucp µµ±¸À̱⠶§¹®ÀÔ´Ï´Ù. °æÇèÀÌ Ç³ºÎÇÑ °ü¸®ÀÚ°¡ ¿î¿µÇÏ´Â ¼ö¸¹Àº ½ÎÀÌÆ®°¡ ÀÖÀ¸¸ç HDB¼³Ä¡¿¡ °üÇÑ ¹Ù·Î ÈǸ¢ÇÑ Á¤º¸¸¦ ¾òÀ» ¼ö ÀÖ´Â °÷ÀÌ ¸¹ÀÌ ÀÖ½À´Ï´Ù. ´õ±¸³ª ¸¸¾à ¿©·¯ºÐÀÌ HDB¸¦ ¾Ë°í ÀÖ´Ù¸é ¹°·Ð HOWTO¸¦ ÀÐÀ» ÇÊ¿ä°¡ ¾ø ½À´Ï´Ù. :-) ȯ°æÈÀÏÀÇ ¸ðµå(mode)¸¦ ¹Ù²Ù±â À§ÇÏ¿© /usr/sbin ¿¡ ÀÖ´Â uuconv¸¦ »ç¿ëÇϼ¼¿ä. 6.2 UUCP-1.04·Î ¾÷±×·¹ÀÌµå ½Ã Á¢¼ÓµµÁß "timeout"ÀÌ ¹ß»ýÇÏ´Â ÀÌÀ¯?
6.3 HDB anonymous uucp´Â ÀÛµ¿ÇÏÁö ¾Ê´Â°¡?HDB modeÀÇ Taylo´Â °ø¹é(white space)¿Í ºóÁÙ(blacn lines)¿¡ ¹Î°¨ÇÑ °Í °°´Ù. ¾ÈÀüÀ» À§ÇÏ¿© ±ÇÇÑÀÌ ÁÖ¾îÁø ÈÀϾȿ¡ °ø¹éÀ̳ª ºóÁÙÀÌ ¾øµµ·Ï ÇÕ´Ï´Ù. ¸¶Áö¸·À¸·Î /usr/lib/uucp ¶Ç´Â /etc/uucp¿¡ remote.unknownÈÀÏÀÌ Á¸ÀçÇÏ´ÂÁö ±×¸®°í ±× ÈÀÏÀÇ ½ÇÇà±ÇÇÑÀÌ ¾øÀ½À» È®ÀÎÇÕ´Ï´Ù. ÀÌ ÈÀÏÀÇ »ó¼¼ÇÑ ¼³¸íÀ» À§ÇÏ¿© O'Reilly& Associates ÀÇ "Managing UUCP & USENET"À» ÂüÁ¶ÇÕ´Ï´Ù. 6.4 "ÀÏÄ¡ÇÏ´Â Æ÷Æ®¸¦ ¹ß°ßÇÏÁö ¸øÇÔ(no matching ports found"ÀÇ Àǹ̴Â?¾Æ¸¶ Á¸ÀçÇÏÁö ¾Ê´Â dialer¸¦ »ç¿ëÇÏ·Á°í Çϰųª portÈÀÏ¿¡ ¸í½ÃµÈ dialer ¿Í dial ÈÀÏÀÇ ÀåÄ¡°¡ ÀÏÄ¡ÇÏÁö ¾ÊÀ»°æ¿ì ÀÔ´Ï´Ù. 6.5 HDB ¸ðµåÀÇ ¹Ù¶÷Á÷ÇÑ È¯°æÈÀÏÀº?´ÙÀ½Àº HoneyDanBer modeÀÇ Linuxȯ°æ¿¡¼ÀÇ Taylor1.05ÀÇ "±ÇÀå(known -good)" ȯ°æÈÀÏ(config files)ÀÔ´Ï´Ù. ÀÌ ÈÀϵéÀº Ä¿³Î 0.99-8 ¶Ç´Â ±× ÀÌÈĹö Àü¿¡¼ ÀÛµ¿ÇÕ´Ï´Ù. ¸ðµç ȯ°æÈÀϵéÀº ¿©·¯ºÐÀÌ uucp library À§Ä¡¸¦ ¼Ò½º¿¡¼ °íÄ¡Áö ¾Ê¾Ò´Ù¸é /usr/lib/uucp ¶Ç´Â /etc/uucp¿¡ Á¸ÀçÇؾßÇÕ´Ï´Ù. ¸¸¾à ÀÌ ÈÀϵéÀÌ ÀÌ ÀÌ¿ÜÀÇ ´Ù¸¥ À§Ä¡¿¡ ÀÖ´Ù¸é sendmail°ú °°Àº ÇÁ·ÎÇÁ·Î±×·¥ µéÀÇ È¥¶õÀÌ ¹ß»ýÇÒ ¼öµµ ÀÖ½À´Ï´Ù. µû¶ó¼ "±âÁØ(standard)" °æ·Î¿¡ °ü°èµÈ ¸ð µç ÇÁ·Î±×·¥, ¸ðµç ȯ°æÀÌ ¾Ë¸Â°Ô ¼³Á¤µÇ¾îÀÖ¾î¾ß¸¸ ÇÕ´Ï´Ù. #------------- Devices ------------- # make sure the device (cua1 here) matches your system # cua N = COM N+1 # # here "scout" is the Digicom Scout Plus 19.2 modem I use # tbfast etc. is for a Telebit Trailblazer Plus modem's various speeds # ACU cua1 - 19200 scout ACU cua1 - 9600 tbfast ACU cua1 - 1200 tbslow ACU cua1 - 2400 tbmed #------------- dialers -------------- # note the setting of the Trailblazer registers "on the fly" # "scout" is a Digicom Scout Plus (Hayes-like) modem I use here # scout =W-, "" ATM0DT\T CONNECT tbfast =W-, "" A\pA\pA\pT OK ATS50=255DT\T CONNECT\sFAST tbslow =W-, "" A\pA\pA\pT OK ATS50=2DT\T CONNECT\s1200 tbmed =W-, "" A\pA\pA\pT OK ATS50=3DT\T CONNECT\s2400 #-------------- Systems ------------- # this is a very generic entry that will work for most systems # # the Any;1 means that you can call once per minute with using -f (force) # the ACU,g means force "g" protocol rather than Taylor's default "i" # fredsys Any;1 ACU,g 19200 scout5555555 "" \r ogin:--ogin: uanon word: uanon #------------------------ Permissions ------------------------- # Taylor UUCP in HDB mode appears to be sensitive to blank lines. # Make sure all Permissions lines are real or commented out. # # this is a anonymous uucp entry # LOGNAME=nuucp MACHINE=OTHER \ READ=/var/spool/uucp/nuucp \ WRITE=/var/spool/uucp/nuucp \ SENDFILES=yes REQUEST=yes \ COMMANDS=/bin/rmail # # this is a normal setup for a remote system that talks to us # note the absolute path to rnews since this site puts things # in locations that aren't "standard" # LOGNAME=fredsys MACHINE=fredsys \ READ=/var/spool/uucp/fredsys:/var/spool/uucp/uucppublic:/files \ WRITE=/var/spool/uucp/fredsys:/var/spool/uucppublic \ SENDFILES=yes REQUEST=yes \ COMMANDS=/bin/rmail:/usr/bin/rnews #------------------------------------------------------------- 6.6 ±³Ã¼¹øÈ£(alternate numbers)¸¦ È£ÃâÇϱâ À§ÇÏ¿© uucico ¾ò±â»õ ¹öÀüÀÎ v1.05´Â ¿ø°Ý ½Ã½ºÅÛÀÇ ¼ýÀÚ¸¦ °íüÇÒ ¼ö ÀÖ´Â '-z' ¿É¼ÇÀÌ Ãß°¡µÇ¾ú½À´Ï´Ù. ¿©·¯ºÐÀº ¶Ç Taylir mode¿Í "systemyouarecalling-s"¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. (»ó¼¼ÇÑ ¼³¸íÀ» À§ÇÏ¿© ȯ°æ ÆÄÀϺκÐ(config. files section)¿¡ ÀÖ´Â "sys"¸¦ ÂüÁ¶ ÇÕ´Ï´Ù.) 7. °¨»çÀλ縹Àº Á¤º¸¿Í °æÇèÀ¸·Î ÀÌ ¹®¼ÀÛ¼º¿¡ µµ¿òÀ» ÁֽŠºÐµéÀÔ´Ï´Ù. Ed Carp, Steve Robbins, lan Taylor, Greg Naber, Matt Welsh, Pierre Beyssac ƯÈ÷ ÀÌ °Å´ëÇÑ ÀÛ¾÷À» °¡´ÉÇÏ°Ô ÇϽŠVince Skahan¿¡°Ô ¸¹Àº °¨»çµå¸³´Ï´Ù. ¸¸¾à Á¦°¡ ÀØ°í °¨»ç¸¦ µå¸®Áö ¾ÊÀº ºÐÀÌ ÀÖ´Ù¸é ¿ë¼ÇϽʽÿä. : Àú¿¡°Ô ¸ÞÀÏÀ» º¸³»¼¼¿ä. |
Man's horizons are bounded by his vision. |