Linux simple fax printer server mini-HOWTO (faxsrv-mini- HOWTO) Erez Strauss > v1.0, 8 November 1997 ¿ªÀÚ : ÀÌÈ£¿¬ > º¸ÁõÀº ÇÏÁö ¾Ê´Â´Ù. ÀÇ°ßÀº ¾ðÁ¦³ª ȯ¿µÀÌ´Ù. ÀÌ ¹®¼­´Â ´ç½ÅÀÇ ¸®´ª½º ½Ã ½ºÅÛ¿¡¼­ Æѽº ¼­¹ö¸¦ ¼³Ä¡ÇÏ´Â Á¦ÀÏ °£´ÜÇÑ ¹æ¹ýÀÇ ÇϳªÀÇ »ó¼¼ÇÑ ¼³¸íÀ» ¼­¼úÇÑ´Ù. ±× Æѽº´Â ·ÎÄà ȣ½ºÆ®ÀÇ »ç¿ëÀÚ¿Í ³×Æ®¿÷ »ç¿ëÀÚµéÀÌ ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù. ______________________________________________________________________ ¸ñÂ÷ 1. ¼Ò°³ 2. Áú¹® & ´äº¯ 2.1 Æѽº ÇÁ¸°ÅÍ ¼­¹ö¶õ ? 2.2 ±×°ÍÀº ¼³Ä¡ÇÏ´Â ¹æ¹ýÀº ? 2.2.1 efax ¼ÒÇÁÆ®¿þ¾î 2.2.2 The printcap entry. 2.2.3 Æѽº ¸í·É 2.2.4 /usr/bin/fax ÆÄÀÏ. 2.2.5 /var/spool/fax µð·ºÅ丮. 2.2.6 lock ÆÄÀÏ. 2.2.7 /dev/modem Ưº°ÇÑ ÆÄÀÏ. 2.2.8 /var/lock µð·ºÅ丮 2.3 ±× ¼­¹ö¸¦ ¾î¶»°Ô ³»°¡ ¾²´Â°¡ ? 2.4 ¾îµð¿¡ Æѽº ¹øÈ£¸¦ Àû¾î¾ß Çϳª ? 2.5 ³×Æ®¿öÅ©ÀÇ ´Ù¸¥ À¯´Ð½º·Î ºÎÅ;°Ô ¾²´Â°¡ ? 2.6 Ä®µ¥¶ó, LPRng »ç¿ëÀÚ 3. ÃÖ±ÙÀÇ ¹öÀü, ÇÊÀÚ¿Í ¿¬¶ôÇϱâ. ______________________________________________________________________ 1. ¼Ò°³ ¸®´ª½º ÄÄÇ»ÅÍÀÇ ÇÁ¸°ÅÍ/Æѽº¿¡¼­ ÀÛ¾÷À» ÇÏ·Á¸é ´ç½ÅÀº ¸î¸î ¼ÒÇÁÆ®¿þ¾î¿Í Æѽº ¸ðµ©À» °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù. ÇÁ¸°Æà ¼ÒÇÁÆ®¿þ¾î´Â ÇÁ¸°ÅÍ ÇÊÅÍ·Î Æѽº ¼ÒÇÁÆ®¿þ¾î¸¦ »ç¿ëÇÒ °ÍÀÌ´Ù. efax´Â ÇÁ¸°Æ® ÀÛ¾÷ ¹øÈ£·Î ºÎÅÍ Æѽº ³Ñ¹ö¸¦ ãÀ» °ÍÀ̵µ Æѽº·Î º¸³¾ °ÍÀÌ´Ù. efax ¼ÒÇÁÆ®¿þ¾î´Â Ed Casas > ¿¡ ÀÇÇØ ¾²¿©Áø ¼ÒÇÁÆ®¿þ¾îÀÌ´Ù. ¹®¼­ÀÇ ³ª¸ÓÁö ºÎºÐÀº Q&A·Î ¸¸µé¾ú´Ù. 2. Áú¹® & ´äº¯ 2.1. Æѽº ÇÁ¸°ÅÍ ¼­¹ö¶õ ? Æѽº ÇÁ¸°ÅÍ ¼­¹ö´Â ¸î¸î ÇÁ·Î±×·¥ÀÇ ¼³Ä¡°¡ ÀÖ´Ù: efax, ±×¸®°í °¡´ÉÇÑ ÇÑ °£´ÜÇÏ°Ô ÇÁ¸°ÅÍ·Î ÇÁ¸°Æ®¾Æ¿ôÀ» º¸³»´Â ÄÄÇ»ÅÍ·Î ºÎÅÍ Æѽº¸¦ º¸³»´Â ÇÁ¸°ÅÍ ¼­¹ö. 2.2. ±×°ÍÀº ¼³Ä¡ÇÏ´Â ¹æ¹ýÀº ? ¸î¸î ¹®Á¦°¡ ¾ø¾îÁø Æѽº ÇÁ¸°ÅÍ ¼­¹öÀÎ efaxÀÇ ¼³Á¤À» ³ª´Â ¸î¹ø Çß°í, ³ª´Â ÀÛÀº ¹Ì´Ï ÇÏ¿ìÅõ¿¡¼­ ÀÌ ÁöÇý¸¦ ¸ðÀº °ÍÀÌ ºÐ¸íÇÏ°í, ºñÆòÀº > À¸·Î º¸³»¶ó. ³ª´Â ±×°Í°ú ÇØ°á, ±×¸®°í ªÀº ½ºÅÜÀÇ Áö½ÄÀÇ ÀüºÎ¸¦ ¿©±â¿¡ ±â¼úÇß´Ù: 2.2.1. efax ¼ÒÇÁÆ®¿þ¾î ´ç½ÅÀº efax ÆÐÅ°Áö¸¦ °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù. RPM ±â¹ÝÀÇ ½Ã½ºÅÛ¿¡¼­´Â ÀÌ ¸í·ÉÀ» »ç¿ëÇضó 'rpm -qv efax'. ´ç½ÅÀº .tar.gz·Î µÈefax ¼Ò½º¸¦ sunsite·Î ºÎÅÍ ¾òÀ»¼ö ÀÖ´Ù: sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a.tar.gz or ¹ÙÀ̳ʸ® rpm ÆÐÅ°Áö: ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/efax-0.8a-3.i386.rpm 2.2.2. The printcap entry. efax ¹®¼­¿¡´Â ¾ø¾îÁø°Ô ÀÖ´Ù : printcap entryÀÇ ³¡¿¡. ÇØ°á: ´ÙÀ½ÀÇ ¿£Æ®¸®¸¦ /etc/printcap¿¡ Ãß°¡Ç϶ó: fax:\ :lp=/dev/null:\ :sd=/var/spool/fax:\ :if=/usr/bin/faxlpr: 2.2.3. Æѽº ¸í·É ÇÏµå ¸µÅ©¸¦ ¾²°í ½Éº¼¸¯ ¸µÅ©¸¦ Æѽº ¸í·ÉÀ» ¾²±â À§ÇØ ¾²Áö¸¶¶ó. ¸í·ÉÀ» ½ÇÇàÇضó: ln /usr/bin/fax /usr/bin/faxlpr 2.2.4. /usr/bin/fax ÆÄÀÏ. ´ç½ÅÀÇ ¼±Åÿ¡ µû¶ó /usr/bin/fax¸¦ ¼öÁ¤Ç϶ó: ´ç½ÅÀÇ ¸ðµ©ÀÇ ¿ÇÀº Æѽº Ŭ·¡½º¸¦ ¼±ÅÃÇ϶ó: CLASS=2.0 FROM="your international phone number" Çʵ带 ¼³Á¤Ç϶ó NAME="Your Name" À̽º¶ó¿¤ÀÇ ¿¹Á¦¸¦ ±¹Á¦ÀûÀÎ ÀüÈ­ ¹øÈ£ º¯È¯À» À§ÇÑ ¶óÀÎÀ» Ãß°¡ÇÏ·Á¸é ÀÌ°ÍÀ» ¾²¶ó: TELCVT='sed -e s/+972/0/ -e s/+/00/' # Israel ÆÄÀÏÀÇ 586¹ø° ÁÙ¿¡ ¹®Á¦°¡ ÀÖ´Ù, cfile=...À» ´ÙÀ½ÀÇ µÎÁÙ·Î ¹Ù²ã¶ó: cfile=`/usr/bin/tail -1 lock` cfile=`cat $cfile` 586, 587ÁÙ¿¡ '-' ºÎÈ£°¡ ÀÖÀ¸¸é ¾ÈµÈ´Ù: 0) echo "$l" | mail -s "fax to $num succeeded" $user@$host ;; *) echo "$l" | mail -s "fax to $num failed " $user@$host ;; 2.2.5. /var/spool/fax µð·ºÅ丮. /var/spool/fax µð·ºÅ丮¸¦ ¸¸µé¾î¶ó mkdir /var/spool/fax chmod 777 /var/spool/fax 2.2.6. lock ÆÄÀÏ. lock ÆÄÀÏ(/var/spool/fax/lock)Àº Ʋ¸° Æ۹̼ÇÀ¸·Î ¸¸µé¾î Á³°í, ¿Ã¹Ù¸£°Ô ¼³Á¤ÇÏ·Á¸é ¾Æ·¡ÀÇ ¸í·ÉÀ» ½á¶ó: touch /var/spool/fax/lock ; chmod 644 /var/spool/fax/lock 2.2.7. /dev/modem Ưº°ÇÑ ÆÄÀÏ. efax ÇÁ·Î±×·¥Àº /dev/modem¿¡ ÀÖ´Â ÁøÂ¥ ÀåÄ¡ ÆÄÀÏÀ» Á¦¿ÜÇÑ´Ù. ±×¸®°í ½Éº¼¸¯ ¸µÅ©¿Í´Â ÀÛ¾÷À» ÇÏÁö ¾ÊÀ»°ÍÀÌ´Ù. ±×·¡¼­ /dev/cua?ó·³ ¸ðµ©°ú ¿¬°áµÈ ÆÄÀÏ°ú °°Àº ¸ÞÀÌÀú ¹øÈ£¿Í ¹Ì·¯ ¹øÈ£¸¦ °¡Áø ÀåÄ¡ ÆÄÀÏÀ» ¸¸µé¾î¶ó. ±× ÆÄÀÏÀº ¾î¶²»ç¿ëÀÚµç Æѽº ¼ÒÇÁÆ®¿þ¾î¸¦ ÀÌ¿ëÇÒ¼ö ÀÖ°Ô rw- rw-rw- ¸ðµå ÀÇ Æ۹̼ÇÀ» °¡Á®¾ß ÇÑ´Ù. ls -lL /dev/modem rm /dev/modem mknod /dev/modem c Mj Mi chmod 666 /dev/modem cau0ÀÇ ¸ÞÀÌÀú ¹øÈ£´Â 5ÀÌ°í, ¸¶ÀÌ³Ê ¹øÈ£´Â 64ÀÌ°í, cua1ÀÇ ¸¶ÀÌ³Ê ¹øÈ£´Â 65ÀÌ°í..µîµî... ¿¹µéµé¾î (cua1Àº): mknod /dev/modem c 5 65 2.2.8. /var/lock µð·ºÅ丮 . /var/lockÀÇ µð·ºÅ丮 ¸ðµå¸¦ ¹Ù²ã¶ó chmod 1777 /var/lock 2.3. ±× ¼­¹ö¸¦ ¾î¶»°Ô ³»°¡ ¾²´Â°¡ ? ´ç½ÅÀº Æѽº ¹øÈ£¿Í ÇÔ²² -P ¿É¼Ç°ú -J ¿É¼ÇÀ» ½á¾ßµÈ´Ù. ¾Æ·¡ÀÇ lpr ¸í·ÉµéÁß Çϳª¸¦ ½á¶ó: lpr -Pfax -J [file-names] any command | lpr -Pfax -J 2.4. ¾îµð¿¡ Æѽº ¹øÈ£¸¦ Àû¾î¾ß Çϳª ? -J ¿É¼Ç ´ÙÀ½¿¡. 2.5. ³×Æ®¿öÅ©ÀÇ ´Ù¸¥ À¯´Ð½º·Î ºÎÅ;°Ô ¾²´Â°¡ ? ´ÙÀ½ÀÇ ¿£Æ®¸®¸¦ /etc/printcap ÆÄÀÏ¿¡ Ãß°¡ÇÏ°í Ŭ¶óÀ̾ðÆ® ¸®´ª½º ½Ã½ºÅÛÀº, ½ºÇ® µð·ºÅ丮¸¦ ¸¸µé°í, µîµî ... fax:\ :sd=/var/spool/fax:\ :mx#0:\ :sh:\ :rm=host.domain:\ :rp=fax: Ŭ¶óÀ̾ðÆ® È£½ºÆ®ÀÇ À̸§À» Æѽº ¼­¹ö ÄÄÇ»ÅÍÀÇ /etc/hosts.lpd¿¡ Ãß°¡Ç϶ó. ÇϱâÀü¿¡ »ç¿ëÇضó. ³ëÆ®: Æѽº·Î º¸³»´Â »ç¿ëÀÚ À̸§¿¡ ÀÇÇØ ½Ç½ÃµÇ´Â Æѽº ÆäÀÌÁö°¡ efax¿¡ Ãß°¡ µÈ´Ù. (°»½Å °¡´É). 2.6. Ä®µ¥¶ó, LPRng »ç¿ëÀÚ LPRng ÇÁ¸°Æà ¸Å´ÏÁö¸ÕÆ® ¼ÒÇÁÆ®¿þ¾î´Â ´Ù¸¥ Á¦¾î ÆÄÀÏÀÇ ÇÚµéÀÇ ¹æ½ÄÀ» »ç¿ëÇÑ´Ù. ¹®Á¦¸¦ ã°í ÇØ°áÇÑ Luca Montecchiani >¿¡°Ô °¨»çÇÑ´Ù. ¿©±â¿¡´Â °»½ÅµÈ /usr/bin/fax ÆÄÀÏÀÌ ÀÖ´Ù. ´ÙÀ½ÀÇ ¶óÀÎÀ» 586, 587¹ø° ÁÙ¿¡ °£´ÜÇÑ µÎ °³ÀÇ cfile=... ¶óÀÎÀ¸·Î ¹Ù²ã¶ó ______________________________________________________________________ # Modified to work also with the LPRng package # Luca Montecchiani (08/11/97 ) if [ !-z "$CONTROL_FILE" ] then cfile=`cat tail -1 lock` cfile=`cat $cfile` else cfile=$CONTROL_FILE fi ______________________________________________________________________ 3. ÃÖ±ÙÀÇ ¹öÀü, ÇÊÀÚ¿Í ¿¬¶ôÇϱâ. ÀÌ ÆÄÀÏÀÇ ÃֽŠ¹öÀüÀº ¿ùµå ¿ÍÀ̵å À¥ÀÇ URLÀ» ÅëÇؼ­ Á¢±ÙÇÒ ¼ö ÀÖ´Ù. www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.sgml www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.html www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.txt < http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.txt> www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.info < http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.info> ´ç½ÅÀº ³ª¿Í ¿¬¶ôÇÒ ¼ö ÀÖ´Ù Erez Strauss erez@newplaces.com www.newplaces.com/linux/ www.newplaces.com/ < http://www.newplaces.com/> Phone: +972 52 739737 Fax: +972 9 954 3034