Linuxdoc Sgml/Fax-Server
<!doctype linuxdoc system>
<article>
<title>
Linux simple fax printer server mini-HOWTO (faxsrv-mini-HOWTO)
<author> Erez Strauss <<url url="mailto:erez@newplaces.com" name="erez@newplaces.com" >>
<date> v1.0, 8 November 1997
<trans> ¿ªÀÚ : ÀÌÈ£¿¬ <<url url="mailto:guru2k@kldp.org" name="guru2k@kldp.org" >>
<abstract>
º¸ÁõÀº ÇÏÁö ¾Ê´Â´Ù. ÀǰßÀº ¾ðÁ¦³ª ȯ¿µÀÌ´Ù. ÀÌ ¹®¼´Â ´ç½ÅÀÇ ¸®´ª½º ½Ã
½ºÅÛ¿¡¼ ÆÑ½º ¼¹ö¸¦ ¼³Ä¡ÇÏ´Â Á¦ÀÏ °£´ÜÇÑ ¹æ¹ýÀÇ ÇϳªÀÇ »ó¼¼ÇÑ ¼³¸íÀ»
¼¼úÇÑ´Ù. ±× ÆÑ½º´Â ·ÎÄà ȣ½ºÆ®ÀÇ »ç¿ëÀÚ¿Í ³×Æ®¿÷ »ç¿ëÀÚµéÀÌ ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù.
</abstract>
<toc>
<sect> ¼Ò°³<p>
¸®´ª½º ÄÄÇ»ÅÍÀÇ ÇÁ¸°ÅÍ/ÆÑ½º¿¡¼ ÀÛ¾÷À» ÇÏ·Á¸é ´ç½ÅÀº ¸î¸î ¼ÒÇÁÆ®¿þ¾î¿Í
ÆÑ½º ¸ðµ©À» °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù.
ÇÁ¸°ÆÃ ¼ÒÇÁÆ®¿þ¾î´Â ÇÁ¸°ÅÍ ÇÊÅÍ·Î ÆÑ½º ¼ÒÇÁÆ®¿þ¾î¸¦ »ç¿ëÇÒ °ÍÀÌ´Ù.
efax´Â ÇÁ¸°Æ® ÀÛ¾÷ ¹øÈ£·Î ºÎÅÍ ÆÑ½º ³Ñ¹ö¸¦ ãÀ» °ÍÀ̵µ ÆÑ½º·Î º¸³¾ °ÍÀÌ´Ù.
efax ¼ÒÇÁÆ®¿þ¾î´Â Ed Casas <<url url="mailto:edc@cce.com" name="edc@cce.com" >> ¿¡ ÀÇÇØ ¾²¿©Áø ¼ÒÇÁÆ®¿þ¾îÀÌ´Ù.
¹®¼ÀÇ ³ª¸ÓÁö ºÎºÐÀº Q&A·Î ¸¸µé¾ú´Ù.
</p>
<sect> Áú¹® & ´äº¯
<sect1> ÆÑ½º ÇÁ¸°ÅÍ ¼¹ö¶õ ?<p>
ÆÑ½º ÇÁ¸°ÅÍ ¼¹ö´Â ¸î¸î ÇÁ·Î±×·¥ÀÇ ¼³Ä¡°¡ ÀÖ´Ù: efax, ±×¸®°í °¡´ÉÇÑ ÇÑ
°£´ÜÇÏ°Ô ÇÁ¸°ÅÍ·Î ÇÁ¸°Æ®¾Æ¿ôÀ» º¸³»´Â ÄÄÇ»ÅÍ·Î ºÎÅÍ ÆÑ½º¸¦ º¸³»´Â ÇÁ¸°ÅÍ
¼¹ö.
</p>
<sect1> ±×°ÍÀº ¼³Ä¡ÇÏ´Â ¹æ¹ýÀº ?<p>
¸î¸î ¹®Á¦°¡ ¾ø¾îÁø ÆÑ½º ÇÁ¸°ÅÍ ¼¹öÀÎ efaxÀÇ ¼³Á¤À» ³ª´Â ¸î¹ø Çß°í, ³ª´Â ÀÛÀº
¹Ì´Ï ÇÏ¿ìÅõ¿¡¼ ÀÌ ÁöÇý¸¦ ¸ðÀº °ÍÀÌ ºÐ¸íÇϰí, ºñÆòÀº <<url url="mailto:erez@newplaces.com" name="erez@newplaces.com" >> À¸·Î
º¸³»¶ó. ³ª´Â ±×°Í°ú ÇØ°á, ±×¸®°í ªÀº ½ºÅÜÀÇ Áö½ÄÀÇ ÀüºÎ¸¦ ¿©±â¿¡ ±â¼úÇß´Ù:
</p>
<sect2> efax ¼ÒÇÁÆ®¿þ¾î<p>
´ç½ÅÀº efax ÆÐŰÁö¸¦ °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù.
RPM ±â¹ÝÀÇ ½Ã½ºÅÛ¿¡¼´Â ÀÌ ¸í·ÉÀ» »ç¿ëÇØ¶ó 'rpm -qv efax'.
´ç½ÅÀº .tar.gz·Î µÈefax ¼Ò½º¸¦ sunsite·Î ºÎÅÍ ¾òÀ»¼ö ÀÖ´Ù:
<url url="ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a.tar.gz or" name="sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a.tar.gz or" >
¹ÙÀ̳ʸ® rpm ÆÐŰÁö:
<url url="ftp://ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/efax-0.8a-3.i386.rpm" name="ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/efax-0.8a-3.i386.rpm" >
</p>
<sect2> The printcap entry.<p>
efax ¹®¼¿¡´Â ¾ø¾îÁø°Ô ÀÖ´Ù : printcap entryÀÇ ³¡¿¡.
ÇØ°á: ´ÙÀ½ÀÇ ¿£Æ®¸®¸¦ /etc/printcap¿¡ Ãß°¡Ç϶ó:
<verb>
fax:\
:lp=/dev/null:\
:sd=/var/spool/fax:\
:if=/usr/bin/faxlpr:
</verb>
</p>
<sect2> ÆÑ½º ¸í·É<p>
ÇÏµå ¸µÅ©¸¦ ¾²°í ½Éº¼¸¯ ¸µÅ©¸¦ ÆÑ½º ¸í·ÉÀ» ¾²±â À§ÇØ ¾²Áö¸¶¶ó.
¸í·ÉÀ» ½ÇÇàÇØ¶ó:
ln /usr/bin/fax /usr/bin/faxlpr
</p>
<sect2> /usr/bin/fax ÆÄÀÏ.<p>
´ç½ÅÀÇ ¼±Åÿ¡ µû¶ó /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 ;;
</p>
<sect2> /var/spool/fax µð·ºÅ丮.<p>
<verb>
/var/spool/fax µð·ºÅ丮¸¦ ¸¸µé¾î¶ó
mkdir /var/spool/fax
chmod 777 /var/spool/fax
</verb>
</p>
<sect2> lock ÆÄÀÏ.<p>
lock ÆÄÀÏ(/var/spool/fax/lock)Àº Ʋ¸° ÆÛ¹Ì¼ÇÀ¸·Î ¸¸µé¾î Á³°í, ¿Ã¹Ù¸£°Ô
¼³Á¤ÇÏ·Á¸é ¾Æ·¡ÀÇ ¸í·ÉÀ» ½á¶ó:
touch /var/spool/fax/lock ; chmod 644 /var/spool/fax/lock
</p>
<sect2> /dev/modem Ưº°ÇÑ ÆÄÀÏ.<p>
efax ÇÁ·Î±×·¥Àº /dev/modem¿¡ ÀÖ´Â ÁøÂ¥ ÀåÄ¡ ÆÄÀÏÀ» Á¦¿ÜÇÑ´Ù. ±×¸®°í
½Éº¼¸¯ ¸µÅ©¿Í´Â ÀÛ¾÷À» ÇÏÁö ¾ÊÀ»°ÍÀÌ´Ù. ±×·¡¼ /dev/cua?ó·³ ¸ðµ©°ú
¿¬°áµÈ ÆÄÀϰú °°Àº ¸ÞÀÌÀú ¹øÈ£¿Í ¹Ì·¯ ¹øÈ£¸¦ °¡Áø ÀåÄ¡ ÆÄÀÏÀ» ¸¸µé¾î¶ó.
±× ÆÄÀÏÀº ¾î¶²»ç¿ëÀÚµç ÆÑ½º ¼ÒÇÁÆ®¿þ¾î¸¦ ÀÌ¿ëÇÒ¼ö ÀÖ°Ô rw-rw-rw- ¸ðµå
ÀÇ ÆÛ¹Ì¼ÇÀ» °¡Á®¾ß ÇÑ´Ù.
<verb>
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
</verb>
</p>
<sect2> /var/lock µð·ºÅ丮<p>.
/var/lockÀÇ µð·ºÅ丮 ¸ðµå¸¦ ¹Ù²ã¶ó
chmod 1777 /var/lock
</p>
<sect1>±× ¼¹ö¸¦ ¾î¶»°Ô ³»°¡ ¾²´Â°¡ ?<p>
´ç½ÅÀº ÆÑ½º ¹øÈ£¿Í ÇÔ²² -P ¿É¼Ç°ú -J ¿É¼ÇÀ» ½á¾ßµÈ´Ù.
¾Æ·¡ÀÇ lpr ¸í·ÉµéÁß Çϳª¸¦ ½á¶ó:
lpr -Pfax -J <Fax-Number> [file-names]
any command | lpr -Pfax -J <Fax-Number>
</p>
<sect1> ¾îµð¿¡ ÆÑ½º ¹øÈ£¸¦ Àû¾î¾ß Çϳª ?<p>
-J ¿É¼Ç ´ÙÀ½¿¡.
</p>
<sect1> ³×Æ®¿öÅ©ÀÇ ´Ù¸¥ À¯´Ð½º·Î ºÎÅ;°Ô ¾²´Â°¡ ?<p>
´ÙÀ½ÀÇ ¿£Æ®¸®¸¦ /etc/printcap ÆÄÀÏ¿¡ Ãß°¡Çϰí Ŭ¶óÀÌ¾ðÆ® ¸®´ª½º ½Ã½ºÅÛÀº,
½ºÇ® µð·ºÅ丮¸¦ ¸¸µé°í, µîµî ...
<verb>
fax:\
:sd=/var/spool/fax:\
:mx#0:\
:sh:\
:rm=host.domain:\
:rp=fax:
</verb>
Ŭ¶óÀÌ¾ðÆ® È£½ºÆ®ÀÇ À̸§À» ÆÑ½º ¼¹ö ÄÄÇ»ÅÍÀÇ /etc/hosts.lpd¿¡ Ãß°¡Ç϶ó.
ÇϱâÀü¿¡ »ç¿ëÇØ¶ó.
³ëÆ®:
ÆÑ½º·Î º¸³»´Â »ç¿ëÀÚ À̸§¿¡ ÀÇÇØ ½Ç½ÃµÇ´Â ÆÑ½º ÆäÀÌÁö°¡ efax¿¡ Ãß°¡ µÈ´Ù.
(°»½Å °¡´É).
</p>
<sect1>Ä®µ¥¶ó, LPRng »ç¿ëÀÚ<p>
LPRng ÇÁ¸°ÆÃ ¸Å´ÏÁö¸ÕÆ® ¼ÒÇÁÆ®¿þ¾î´Â ´Ù¸¥ Á¦¾î ÆÄÀÏÀÇ ÇÚµéÀÇ ¹æ½ÄÀ»
»ç¿ëÇÑ´Ù.
¹®Á¦¸¦ ã°í ÇØ°áÇÑ Luca Montecchiani <<url url="mailto:m.luca@usa.net" name="m.luca@usa.net">>¿¡°Ô °¨»çÇÑ´Ù.
¿©±â¿¡´Â °»½ÅµÈ /usr/bin/fax ÆÄÀÏÀÌ ÀÖ´Ù. ´ÙÀ½ÀÇ ¶óÀÎÀ» 586, 587¹øÂ° ÁÙ¿¡
°£´ÜÇÑ µÎ °³ÀÇ cfile=... ¶óÀÎÀ¸·Î ¹Ù²ã¶ó
<code>
# Modified to work also with the LPRng package
# Luca Montecchiani (08/11/97 <url url="mailto:m.luca@usa.net" name="m.luca@usa.net"> )
if [ !-z "$CONTROL_FILE" ]
then
cfile=`cat tail -1 lock`
cfile=`cat $cfile`
else
cfile=$CONTROL_FILE
fi
</code>
</p>
<sect> ÃÖ±ÙÀÇ ¹öÀü, ÇÊÀÚ¿Í ¿¬¶ôÇϱâ.
<p>
ÀÌ ÆÄÀÏÀÇ ÃֽйöÀüÀº ¿ùµå ¿ÍÀ̵å À¥ÀÇ URLÀ» ÅëÇØ¼ Á¢±ÙÇÒ ¼ö ÀÖ´Ù.
<url url="http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.sgml" name="www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.sgml" >
<url url="http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.html" name="www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.html" >
<url url=" http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.txt" name="www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.txt" >
<url url=" http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.info" name="www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.info" >
´ç½ÅÀº ³ª¿Í ¿¬¶ôÇÒ ¼ö ÀÖ´Ù
Erez Strauss
<url url="mailto:erez@newplaces.com" name="erez@newplaces.com" >
<url url="http://www.newplaces.com/linux/" name="www.newplaces.com/linux/" >
<url url=" http://www.newplaces.com/" name="www.newplaces.com/" >
Phone: +972 52 739737
Fax: +972 9 954 3034
</p>
</article>
|
It's later than you think. |











