\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 Â²³æªº¶Ç¯u¦Lªí¾÷¦øªA¾¹ 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¤Q¤@¤ë 1997}
\abstract{{\bfseries ¤£«OÃÒ.}¦³¤°»ò·N¨£³£Åwªï´£¥X³o¥÷¤å¥ó¸Ô²Ó´y­z¨Ï¥Î³ÌÂ²³æªº¤èªk¤§¤@¦b§Aªº Linux¨t²Î¤W³]©w¶Ç¯u¦øªA¾¹.¶Ç¯u¬O´£¨Ñµ¹©Ò¦³ªº¥Î¤á¦b¥»¨­¥D¾÷©Mºô¸ô¨Ï¥ÎªÌ.}


\begin{document}
\maketitle
\tableofcontents

\section{¤¶²Ð}

¨Ï¦Lªí¾÷/¶Ç¯u¾÷¦b linux ¾÷¾¹¤W¹B§@§A»Ý­n¦³
¤@¨Ç³nÅé©M¶Ç¯u¼Æ¾Ú¾÷

¦C¦Lªº³nÅé±N·|¨Ï¥Î¶Ç¯u³nÅé·í°µ¦C¦L¹LÂo.
efax ±N¥i¥H±q¦C¦L§@·~¸¹½X¤¤§ä¨ì¶Ç¯u¸¹½X¥B°e¥X¶Ç¯u.
efax ³nÅé ¥Ñ Ed Casas $<$edc@cce.com$>$©Ò¼g¦¨ªº.

¨ä¾lªº¤å¥ó¬O Q\& A.




\section{°ÝÃD \& µª®×}


\subsection{¤°»ò¬O¤@¥x¶Ç¯u¦Lªí¾÷¦øªA¾¹ ?}

¤@­Ó¶Ç¯u¦Lªí¾÷¦øªA¾¹¬O¥Ñ«Ü¤Öªºµ{¦¡©Ò³]¸mªº:
efax,©M¦C¦L¦øªA¾¹,±q¹q¸£¤W¥Î³o¼Ëªº¤èªk°e¶Ç¯u
¦p¦P¦C¦L¨ì¤@¥x¦Lªí¾÷¤W¤@¼ËÂ²³æ.




\subsection{¥¦­n¦p¦ó³]©w ?}

¦w¸Ë efax ·í§@¶Ç¯u¦C¦L¦øªA¾¹¥]²[«Ü¤Öªº°ÝÃD
·í§Ú°µ¹L¼Æ¦¸¤§«á,§Ú¨M©w¦¬¶°ª¾ÃÑ
¦b¤pªº mini-HOWTO¤§¤¤,¦³¥ô¦ó·N¨£Åwªï±H {\ttfamily $<$erez@newplaces.com$>$}.
§Ú¦b¸Ì´y­z¥L­Ì©M¸Ñ¨M¤èªk,¥H¤Î¨ä¥L©Ò¦³Â²³æªº¨BÆJ:




\subsubsection{efax ³nÅé}

¬d©ú§A¦³ efax ³nÅé.

¦b RPM °òÂ¦ªº¨t²Î¤U¨Ï¥Î©R¥O 'rpm -qv efax'.

§A¥i¥H¨ú±o efax ¨Ó·½¬O tar.gz ®æ¦¡±q sunsite:
ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a.tar.gz
©ÎªÌ¤G¶i¦ì¤¸ÀÉªº rpm ®M¥ó:
ftp://ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/efax-0.8a-3.i386.rpm


\subsubsection{printcap Äæ¦ì.}

efax ¤å¥ó¬O¿ò¥¢¤U¦C³o­Ó :¦b printcap ªºÄæ¦ì.

¸Ñ¨M:¼W¥[¤U¦C¦U¶µ {\ttfamily /etc/printcap}Äæ¦ì:

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





\subsubsection{¶Ç¯u«ü¥O}

¨Ï¥ÎµwÃì±µ¦Ó¤£¬O²Å¸¹Ãì±µ¨ì¶Ç¯u«ü¥O.

°õ¦æ©R¥O:
\begin{tscreen}
\begin{verbatim}
ln /usr/bin/fax /usr/bin/faxlpr
\end{verbatim}
\end{tscreen}





\subsubsection{/usr/bin/fax ÀÉ®×.}

½s¿è /usr/bin/fax ¦¨§A©Ò­nªº°Ñ¼Æ:

¹ï©ó§Aªº¼Æ¾Ú¾÷¿ï¾Ü¥¿½Tªº¶Ç¯uºØÃþ:
\begin{tscreen}
\begin{verbatim}
CLASS=2.0
\end{verbatim}
\end{tscreen}

³]¸m FROM="your international phone number" Äæ¦ì
\begin{tscreen}
\begin{verbatim}
NAME="Your Name"
\end{verbatim}
\end{tscreen}

¥[¤W¤U¦C¦¹¦æ°w¹ï°ê»Úªº¹q¸Ü¸¹½X¥»¦aªºÂà´«
¨Ò¦p¦b¥H¦â¦C§A­n¨Ï¥Î:
\begin{tscreen}
\begin{verbatim}
TELCVT='sed -e s/+972/0/ -e s/+/00/'  # israel (¥H¦â¦C)
\end{verbatim}
\end{tscreen}


¤å¥ó¤¤¦³­Ó°ÝÃD¦b 586 ¦æ,§ïÅÜ¦¨
{\ttfamily cfile=...} ¥H¤U¨â¦æ:

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


¦b 586,587 ¦æ¤¤¦³­Ó '-'²Å¸¹¦æ¼Æ¬O:

\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{Âê©w¤å¥ó.}

Âê©w¤å¥ó ({\ttfamily /var/spool/fax/lock})¬O¥Ñ
¤£¥¿½TªºÅv­­©Ò«Ø¥ß,¨Ï¥Î¤U¦C¦U¶µ©R¥O§â¥¦³]©w¥¿½T:

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





\subsubsection{/dev/modem ¯S§OªºÀÉ®×.}

efax µ{¦¡¬O¹w´Á¦³¤@­Ó¯uªº³]³ÆÀÉ®×¦b {\ttfamily /dev/modem}
©M¥¦±NµLªk»P²Å¸¹Ãì±µ¤@°_¹B§@,©Ò¥H¥H©M {\ttfamily /dev/cua?} ¬Û¦Pªº¥D­n©MªþÄÝ¸¹½X«Ø¥ß¤@­Ó³]³ÆÀÉ®×
¥¦³s±µ¨ì¼Æ¾Ú¾÷.ÀÉ®×¥²»Ý­n¦³ rw-rw-rw- ¼Ò¦¡¨Ï¥ô¦ó¤@­Ó¨Ï¥ÎªÌ³£¯à°÷¨Ï¥Î¶Ç¯u³nÅé.

\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¬O 5,©M Mi¬O 64¹ï©ó cua0, 65¹ï©ó cua1µ¥µ¥.
¨Ò¦p (¹ï©ó 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{§Ú­n¦p¦ó¨Ï¥Î³o¦øªA¾¹ ?}

§A±N¨Ï¥Î¶Ç¯u¦Lªí¾÷¥Î -P ¿ï¶µ
©M -J ¿ï¶µ¸òµÛ¶Ç¯u¸¹½X.

¨Ï¥Î¤U¦C lpr ©R¥O¨ä¤¤¤§¤@:



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





\subsection{§ÚÀ³¦b¦ó³B«ü©w¥Ø¼Ðªº¶Ç¯u¸¹½X? ?}

¦b -J ¿ï¶µ¤§«á.


\subsection{§Ú¦p¦ó¤~¯à±qºô¸ô¤Wªº Unixes ªº¾÷¾¹¨Ï¥Î³o¥\¯à ?}

¥[¤J¤U¦C¦U¦æ {\ttfamily /etc/printcap} ¨ìÀÉ®×©M«È¤áºÝªº
Linux ¨t²Î,«Ø¥ß spool ¥Ø¿ý,µ¥µ¥ ...

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


¦b¶Ç¯u¦øªA¾¹¾÷¾¹¤¤¥[¤W«È¤áºÝ¾÷¾¹ªº¦WºÙ {\ttfamily /etc/hosts.lpd} 



¦p¦P¥ý«e¤@¼Ë¨Ï¥Î¥¦.



ª`·N:

efax ¥[¨ì¶Ç¯u­¶­±ªº«Ê­±¦r¦ê,¬O¨S¦³®ÄªG
¾a¥Î¤á¦W¦r¥H­Pµo°e¶Ç¯u. (¯à°÷³Q§ó·sªº).


\subsection{Caldera, LPRng ¨Ï¥ÎªÌ}

 LPRng ¦C¦LºÞ²z³nÅé¬O¥¿¦b¥Î¤@­Ó¤£¦Pªº¤èªk±±¨îÀÉ®×.

©¯Á« Luca Montecchiani $<$m.luca@usa.net$>$,§ä¨ì°ÝÃD©M¸Ñ¨M¤èªk.
³o¸Ì¦³¤@­Ó§ó·s {\ttfamily /usr/bin/fax}¤å¥ó.¤U¦C¦U¦æ´À´«Â²³æªº¨â¦æ {\bfseries cfile=...}¦æ¼Æ¦b¡K¦æ¼Æ 586,587

\begin{tscreen}
\begin{verbatim}
# Modified to work also with the LPRng package(­×§ï LPRng ®M¥ó)
# 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{³Ìªñªºª©¥»,Ápµ¸§@ªÌ.}

¤å¥óªº³Ìªñªºª©¥»¯à°÷
³q¹Lºô»Úºô¸ô¦s¨ú¥H¤Uªººô§}

\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}




§A¥i¥HÁpµ¸§Ú
\begin{tscreen}
\begin{verbatim}
Erez Strauss
erez@newplaces.com
http://www.newplaces.com/linux/
http://www.newplaces.com/
¹q¸Ü: +972 52 739737
¶Ç¯u:  +972 9 954 3034
\end{verbatim}
\end{tscreen}




\end{document}
