\documentclass[letterpaper]{article}
\nonstopmode
\akai
\usepackage{linuxdoc-sgml}
\usepackage{qwertz}
\usepackage{url}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{null}
\def\addbibtoc{
\addcontentsline{toc}{section}{\numberline{\mbox{}}\relax\bibname}
}%end-preamble
\setcounter{page}{1}
\title{Linux ¼òµ¥µÄ´«ÕæÓ¡±í»úËÅ·þÆ÷ mini-HOWTO (faxsrv-mini-HOWTO)}
\author{×÷Õß: \nameurl{mailto:Erez Strauss <erez@newplaces.com>}{Erez Strauss $<$erez@newplaces.com$>$}
ÒëÕß: Mile Yeh {\ttfamily mile@mail.timenet.net}}
\date{v1.0, 8Ê®Ò»ÔÂ 1997}
\abstract{{\bfseries ²»±£Ö¤.}ÓÐÊ²÷áÒâ¼û¶¼»¶Ó­Ìá³öÕâ·ÝÎÄ¼þÏêÏ¸ÃèÊöÊ¹ÓÃ×î¼òµ¥µÄ·½·¨Ö®Ò»ÔÚÄãµÄ LinuxÏµÍ³ÉÏÉè¶¨´«ÕæËÅ·þÆ÷.´«ÕæÊÇÌá¹©¸øËùÓÐµÄÓÃ»§ÔÚ±¾ÉíÖ÷»úºÍÍøÂ·Ê¹ÓÃÕß.}


\begin{document}
\maketitle
\tableofcontents

\section{½éÉÜ}

Ê¹Ó¡±í»ú/´«Õæ»úÔÚ linux »úÆ÷ÉÏÔË×÷ÄãÐèÒªÓÐ
Ò»Ð©ÈíÌåºÍ´«ÕæÊý¾Ý»ú

ÁÐÓ¡µÄÈíÌå½«»áÊ¹ÓÃ´«ÕæÈíÌåµ±×öÁÐÓ¡¹ýÂË.
efax ½«¿ÉÒÔ´ÓÁÐÓ¡×÷ÒµºÅÂëÖÐÕÒµ½´«ÕæºÅÂëÇÒËÍ³ö´«Õæ.
efax ÈíÌå ÓÉ Ed Casas $<$edc@cce.com$>$ËùÐ´³ÉµÄ.

ÆäâÅµÄÎÄ¼þÊÇ Q\& A.




\section{ÎÊÌâ \& ´ð°¸}


\subsection{Ê²÷áÊÇÒ»Ì¨´«ÕæÓ¡±í»úËÅ·þÆ÷ ?}

Ò»¸ö´«ÕæÓ¡±í»úËÅ·þÆ÷ÊÇÓÉºÜÉÙµÄ³ÌÊ½ËùÉèÖÃµÄ:
efax,ºÍÁÐÓ¡ËÅ·þÆ÷,´ÓµçÄÔÉÏÓÃÕâÑùµÄ·½·¨ËÍ´«Õæ
ÈçÍ¬ÁÐÓ¡µ½Ò»Ì¨Ó¡±í»úÉÏÒ»Ñù¼òµ¥.




\subsection{ËüÒªÈçºÎÉè¶¨ ?}

°²×° efax µ±×÷´«ÕæÁÐÓ¡ËÅ·þÆ÷°üº­ºÜÉÙµÄÎÊÌâ
µ±ÎÒ×ö¹ýÊý´ÎÖ®áá,ÎÒ¾ö¶¨ÊÕ¼¯ÖªÊ¶
ÔÚÐ¡µÄ mini-HOWTOÖ®ÖÐ,ÓÐÈÎºÎÒâ¼û»¶Ó­¼Ä {\ttfamily $<$erez@newplaces.com$>$}.
ÎÒÔÚÀïÃèÊöËûÃÇºÍ½â¾ö·½·¨,ÒÔ¼°ÆäËûËùÓÐ¼òµ¥µÄ²½Öè:




\subsubsection{efax ÈíÌå}

²éÃ÷ÄãÓÐ efax ÈíÌå.

ÔÚ RPM »ù´¡µÄÏµÍ³ÏÂÊ¹ÓÃÃüÁî 'rpm -qv efax'.

Äã¿ÉÒÔÈ¡µÃ efax À´Ô´ÊÇ tar.gz ¸ñÊ½´Ó sunsite:
ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a.tar.gz
»òÕß¶þ½øÎ»ÔªµµµÄ rpm Ì×¼þ:
ftp://ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/efax-0.8a-3.i386.rpm


\subsubsection{printcap À¸Î».}

efax ÎÄ¼þÊÇÒÅÊ§ÏÂÁÐÕâ¸ö :ÔÚ printcap µÄÀ¸Î».

½â¾ö:Ôö¼ÓÏÂÁÐ¸÷Ïî {\ttfamily /etc/printcap}À¸Î»:

\begin{tscreen}
\begin{verbatim}
fax:\
        :lp=/dev/null:\
        :sd=/var/spool/fax:\
        :if=/usr/bin/faxlpr:
\end{verbatim}
\end{tscreen}





\subsubsection{´«ÕæÖ¸Áî}

Ê¹ÓÃÓ²Á´½Ó¶ø²»ÊÇ·ûºÅÁ´½Óµ½´«ÕæÖ¸Áî.

Ö´ÐÐÃüÁî:
\begin{tscreen}
\begin{verbatim}
ln /usr/bin/fax /usr/bin/faxlpr
\end{verbatim}
\end{tscreen}





\subsubsection{/usr/bin/fax µµ°¸.}

±à¼­ /usr/bin/fax ³ÉÄãËùÒªµÄ²ÎÊý:

¶Ôì¶ÄãµÄÊý¾Ý»úÑ¡ÔñÕýÈ·µÄ´«ÕæÖÖÀà:
\begin{tscreen}
\begin{verbatim}
CLASS=2.0
\end{verbatim}
\end{tscreen}

ÉèÖÃ FROM="your international phone number" À¸Î»
\begin{tscreen}
\begin{verbatim}
NAME="Your Name"
\end{verbatim}
\end{tscreen}

¼ÓÉÏÏÂÁÐ´ËÐÐÕë¶Ô¹ú¼ÊµÄµç»°ºÅÂë±¾µØµÄ×ª»»
ÀýÈçÔÚÒÔÉ«ÁÐÄãÒªÊ¹ÓÃ:
\begin{tscreen}
\begin{verbatim}
TELCVT='sed -e s/+972/0/ -e s/+/00/'  # israel (ÒÔÉ«ÁÐ)
\end{verbatim}
\end{tscreen}


ÎÄ¼þÖÐÓÐ¸öÎÊÌâÔÚ 586 ÐÐ,¸Ä±ä³É
{\ttfamily cfile=...} ÒÔÏÂÁ½ÐÐ:

\begin{tscreen}
\begin{verbatim}
cfile=`/usr/bin/tail -1 lock`
cfile=`cat $cfile`
\end{verbatim}
\end{tscreen}


ÔÚ 586,587 ÐÐÖÐÓÐ¸ö '-'·ûºÅÐÐÊýÊÇ:

\begin{tscreen}
\begin{verbatim}
0) echo "$l" | mail -s "fax to $num succeeded" $user@$host ;;
*) echo "$l" | mail -s "fax to $num failed   " $user@$host ;;
\end{verbatim}
\end{tscreen}





\subsubsection{/var/spool/fax Ä¿Â¼.}

½¨Á¢Ä¿Â¼ /var/spool/fax
\begin{tscreen}
\begin{verbatim}
mkdir /var/spool/fax
chmod 777 /var/spool/fax
\end{verbatim}
\end{tscreen}





\subsubsection{Ëø¶¨ÎÄ¼þ.}

Ëø¶¨ÎÄ¼þ ({\ttfamily /var/spool/fax/lock})ÊÇÓÉ
²»ÕýÈ·µÄÈ¨ÏÞËù½¨Á¢,Ê¹ÓÃÏÂÁÐ¸÷ÏîÃüÁî°ÑËüÉè¶¨ÕýÈ·:

\begin{tscreen}
\begin{verbatim}
touch /var/spool/fax/lock ; chmod 644 /var/spool/fax/lock
\end{verbatim}
\end{tscreen}





\subsubsection{/dev/modem ÌØ±ðµÄµµ°¸.}

efax ³ÌÊ½ÊÇÔ¤ÆÚÓÐÒ»¸öÕæµÄÉè±¸µµ°¸ÔÚ {\ttfamily /dev/modem}
ºÍËü½«ÎÞ·¨Óë·ûºÅÁ´½ÓÒ»ÆðÔË×÷,ËùÒÔÒÔºÍ {\ttfamily /dev/cua?} ÏàÍ¬µÄÖ÷ÒªºÍ¸½ÊôºÅÂë½¨Á¢Ò»¸öÉè±¸µµ°¸
ËüÁ¬½Óµ½Êý¾Ý»ú.µµ°¸±ØÐèÒªÓÐ rw-rw-rw- Ä£Ê½Ê¹ÈÎºÎÒ»¸öÊ¹ÓÃÕß¶¼ÄÜ¹»Ê¹ÓÃ´«ÕæÈíÌå.

\begin{tscreen}
\begin{verbatim}
ls -lL /dev/modem 
rm /dev/modem
mknod /dev/modem c Mj Mi
chomd 666 /dev/modem
\end{verbatim}
\end{tscreen}


MjÊÇ 5,ºÍ MiÊÇ 64¶Ôì¶ cua0, 65¶Ôì¶ cua1µÈµÈ.
ÀýÈç (¶Ôì¶ cua1):

\begin{tscreen}
\begin{verbatim}
mknod /dev/modem c 5 65
\end{verbatim}
\end{tscreen}





\subsubsection{{\ttfamily /var/lock}Ä¿Â¼.}

¸Ä±ä {\ttfamily /var/lock}Ä¿Â¼µÄÊôÐÔ

\begin{tscreen}
\begin{verbatim}
chmod 1777 /var/lock
\end{verbatim}
\end{tscreen}







\subsection{ÎÒÒªÈçºÎÊ¹ÓÃÕâËÅ·þÆ÷ ?}

Äã½«Ê¹ÓÃ´«ÕæÓ¡±í»úÓÃ -P Ñ¡Ïî
ºÍ -J Ñ¡Ïî¸úÖø´«ÕæºÅÂë.

Ê¹ÓÃÏÂÁÐ lpr ÃüÁîÆäÖÐÖ®Ò»:



\begin{tscreen}
\begin{verbatim}
 lpr -Pfax -J <Fax-Number> [file-names]
 any command | lpr -Pfax -J <Fax-Number>
\end{verbatim}
\end{tscreen}





\subsection{ÎÒÓ¦ÔÚºÎ´¦Ö¸¶¨Ä¿±êµÄ´«ÕæºÅÂë? ?}

ÔÚ -J Ñ¡ÏîÖ®áá.


\subsection{ÎÒÈçºÎ²ÅÄÜ´ÓÍøÂ·ÉÏµÄ Unixes µÄ»úÆ÷Ê¹ÓÃÕâ¹¦ÄÜ ?}

¼ÓÈëÏÂÁÐ¸÷ÐÐ {\ttfamily /etc/printcap} µ½µµ°¸ºÍ¿Í»§¶ËµÄ
Linux ÏµÍ³,½¨Á¢ spool Ä¿Â¼,µÈµÈ ...

\begin{tscreen}
\begin{verbatim}
fax:\
        :sd=/var/spool/fax:\
        :mx#0:\
        :sh:\
        :rm=host.domain:\
        :rp=fax:
\end{verbatim}
\end{tscreen}


ÔÚ´«ÕæËÅ·þÆ÷»úÆ÷ÖÐ¼ÓÉÏ¿Í»§¶Ë»úÆ÷µÄÃû³Æ {\ttfamily /etc/hosts.lpd} 



ÈçÍ¬ÏÈÇ°Ò»ÑùÊ¹ÓÃËü.



×¢Òâ:

efax ¼Óµ½´«ÕæÒ³ÃæµÄ·âÃæ×Ö´®,ÊÇÃ»ÓÐÐ§¹û
¿¿ÓÃ»§Ãû×ÖÒÔÖÂ·¢ËÍ´«Õæ. (ÄÜ¹»±»¸üÐÂµÄ).


\subsection{Caldera, LPRng Ê¹ÓÃÕß}

 LPRng ÁÐÓ¡¹ÜÀíÈíÌåÊÇÕýÔÚÓÃÒ»¸ö²»Í¬µÄ·½·¨¿ØÖÆµµ°¸.

ÐÒ¿÷ Luca Montecchiani $<$m.luca@usa.net$>$,ÕÒµ½ÎÊÌâºÍ½â¾ö·½·¨.
ÕâÀïÓÐÒ»¸ö¸üÐÂ {\ttfamily /usr/bin/fax}ÎÄ¼þ.ÏÂÁÐ¸÷ÐÐÌæ»»¼òµ¥µÄÁ½ÐÐ {\bfseries cfile=...}ÐÐÊýÔÚ¡­ÐÐÊý 586,587

\begin{tscreen}
\begin{verbatim}
# Modified to work also with the LPRng package(ÐÞ¸Ä LPRng Ì×¼þ)
# Luca Montecchiani (08/11/97 m.luca@usa.net)
if [ !-z "$CONTROL_FILE" ]
    then
        cfile=`cat tail -1 lock`
        cfile=`cat $cfile`
    else
        cfile=$CONTROL_FILE
fi                                       
\end{verbatim}
\end{tscreen}







\section{×î½üµÄ°æ±¾,ÁªÂç×÷Õß.}

ÎÄ¼þµÄ×î½üµÄ°æ±¾ÄÜ¹»
Í¨¹ýÍø¼ÊÍøÂ·´æÈ¡ÒÔÏÂµÄÍøÖ·

\begin{tscreen}
\begin{verbatim}
http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.sgml
http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.html
http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.txt
http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.info
\end{verbatim}
\end{tscreen}




Äã¿ÉÒÔÁªÂçÎÒ
\begin{tscreen}
\begin{verbatim}
Erez Strauss
erez@newplaces.com
http://www.newplaces.com/linux/
http://www.newplaces.com/
µç»°: +972 52 739737
´«Õæ:  +972 9 954 3034
\end{verbatim}
\end{tscreen}




\end{document}
