\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{The Linux Printing Usage HOWTO}
\author{§@ªÌ¡GMark Komarinski $<$markk@auratek.com$>$\\ 
Ä¶ªÌ¡G»¯¥­±æ  $<$tchao@worldnet.att.net$>$}
\date{v1.2.2, 6 February 1998
Â½Ä¶¤é´Á¡G2000¦~1¤ë10¤é}
\abstract{»¡©ú¦p¦ó¨Ï¥Î Linux ¾Þ§@¨t²Î´£¨Ñªº¥´¦L¾÷¨t²Î¡C}


\begin{document}
\maketitle

\section{¾É¨¥}



³o¥÷¤å¥ó»¡©ú¦p¦ó¨Ï¥Î Linux ¾Þ§@¨t²Î´£¨Ñªº¥´¦L¾÷°²²æ¾÷¨t²Î¡A¥¦¤]¹ï±Mªù°Q½× Linux
¥´¦L¨t²Îªº¦w¸Ë©M³]¸mªº Linux Printing Setup HOWTO §@¤F¸É¥R¡A¨ä¤º®e¤£¶È¾A¥Î¤_ Linux
¾Þ§@¨t²Î¡A¤]¦P¼Ë¾A¥Î¤_¦UºØ BSD ¾Þ§@¨t²Î¡C




\subsection{Linux Printing HOWTO ¤å¥óªººtÅÜ}



Mark Komarinski $<$markk@auratek.com$>$ «ü¥X¡G

«D±`·PÁÂ Matt Foster ­«¼g³o¥÷ HOWTO¡C§Ú¾¨¶q«O¯d¥Lªº¤º®e¡A¨Ã§@¥X¥²­nªº¼W§R¼í¹¢¡C

Matt Foster $<$mwf@engr.uark.edu$>$ «ü¥X¡G

³o¥÷ Linux Printing HOWTO §¹¥þ§ï¼g¤FGrant Taylor $<$grant@god.tufts.edu$>$ ©M Brian
McCauley $<$B.A.McCauley@bham.ac.uk$>$ ªº­ì¤å¡C¥»¨Ó§Ú¥´ºâ«O¯d Grant ©M Brian ­ì¨Ó HOWTO
¤¤ªº§÷®Æ¡A¦ý«á¨Ó´X¥G¥þ³¡§ï¼g¨Ã¼W¥[¤F³\¦h·s§÷®Æ¡C§Ú»{¬°³o¥÷ HOWTO ¤¤ªº§÷®Æ¤ñ¸û§¹¾ã¡A
¤]¤ñ¸û®e©ö¾\Åª¡C§Ú§Æ±æ±z¦P·N§Úªº¬Ýªk¡C




\subsection{ª©¥»ºtÅÜ}

v1.2.2
\begin{itemize}
\item ­«·s½s§Ç©M§@¥X¤@¨Ç§ï°Ê¥H«K½s¬° RedHat ¤å¥ó¡C
\end{itemize}

v1.2.1
\begin{itemize}
\item ¼W­q¤º®e©M§@¥X¤@¨Ç§ï°Ê¥H«K¥Î¤_ Linux ¥Xª©ª«¡C
\end{itemize}
 
v1.2
\begin{itemize}
\item µøµ¡¥´¦L¾÷¡C
\item §ïÅÜ¥´¦L¤åÀÉªº³Ì¤jªø«×¡C
\end{itemize}

v1.11
\begin{itemize}
\item ·sºÞ²z­û¡C
\item ¼W¥[ lpc ªº¸ê®Æ¡C
\item ¼W¥[¤@¨Ç¬d¿ù¸ê®Æ¡C
\item ¶}©l½s¼g¥´¦L¹Ï¹³ªº¤åÀÉ¡C
\end{itemize}


v1.1
\begin{itemize}
\item ­×¥¿¤@¨Ç¥Î»y¡C
\item ½s¼g PostScript ¥´¦L³¡¤À¡C
\item ³]ªk¶i¤@¨B»¡©ú¤@¨Ç¹ê¨Ò¡C
\item ¸Ô­z¤@¨Ç Linux ¥´¦L¤u¨ã¡C
\end{itemize}


v1.0
\begin{itemize}
\item Printing Usage HOWTO ­º¦¸¤½¶}µo¦æ
\end{itemize}





\subsection{ª©Åv©M°Ó¼Ð}

³o¥÷¤å¥ó¤¤´£¨ìªº¦³¨Ç¦W¦r¬O¬Y¨Ç¤Hªºª©Åv©M¡]©Î¡^°Ó¼Ð¦WºÙ¡C³o¨Ç¦W¦r¦b³o¥÷ HOWTO
¤¤¥H¥þ¦W©ÎÁYºÙ¥X²{¡C

{\itshape (c) 1995 Matt Foster (mwf@engr.uark.edu)\/}\\ 
{\itshape (c) 1996-1997 Mark F. Komarinski (markk@auratek.com)\/}

¥ô¦ó¯A¤Î Linux HOWTO ªºÂ½Ä¶©M§@­z§¡»Ý¸ü¦C³o¥÷ª©Åv»¡©ú¡C

´«¨¥¤§¡A¦p¦b¦¹ºØ§@­z¤¤­­¨î¥L¤H¤Þ¥Î»P HOWTO ¦³Ãöªº¤º®e´N¤£±o¤Þ¥Î³o¥÷ HOWTO¡C¦b¬Y¨Ç±¡ªp¤U¡A
¥i¥H¦³¨Ò¥~±¡ªp¡A¦ý»Ý»P¤U§} Linux HOWTO ¨ó½Õ­ûÁp¨t¡C



Â²¨¥¤§¡A§Y¨Ï³o¥÷¤å¥ó¾¨¶q¥|³B¬y³q¡A¦ýHOWTO ¤å¥óªºª©ÅvÁÙ±o«O¯d¡A¦P®É§Æ±æª¾¹D³o¥÷ HOWTO ¤å¥óªº
¬y³q±¡ªp¡C



¥ô¦ó°ÝÃD§¡½Ð»P Linux HOWTO ¨ó½Õ­û Tim Bynum Áp¨t¡C¥Lªº¦a§}¬O $<$linux-howto@sunsite.unc.edu$>$¡C¤£§«±q¥Lªº¦a§}¬d¸ß¹q¸Ü¸¹½X©M¨ä¥LÁp¨t¸ê®Æ¡C






\subsection{¤U¸ü Linux Printing HOWTO}



¦p±ý¥´¦L³o¥÷ HOWTO ¤å¥ó¡A¤£§«¤U¸ü³o¥÷ HOWTO ªº PostScript ª©¥»¡A¨ä½s±Æ®æ¦¡§ó¾A©ó¾\Åª¡C³o¥÷¤å¥óªº
PostScript ª©¥»¥i±q³\¦h Linux ºô¯¸¨ú±o¡]¨Ò¦p sunsite ºô¯¸ \nameurl{ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/}{}¡^¡C




\subsection{¤ÏõX·N¨£}

Åwªï¹ï¥»¤å´£¥X«ØÄ³©M§åµû¡A¨Ó«H½Ð±H
$<$markk@auratek.com$>$¡C




\subsection{­PÁÂ}

«D±`·PÁÂ¹ï¥»¤åªìª©´£¥X³\¦hÄ_¶Q·N¨£ªºªB¤Í --- ¦³¨Ç«ØÄ³¤w¸g¦C¤J¥»¤å¡C



§Ú¤]­n·PÁÂ³Ìªì§ï¼g¥»¤åªº Matt Foster ¥ý¥Í¡C




\section{¦b Linux ¨t²Î¤º¥´¦L¤åÀÉ}

¥»¸`»¡©ú¦b Linux Àô¹Ò¤¤¦p¦ó¥´¦L¤å¥ó¡BÀË¬d¦C¦L¶¤¦C¡B±q¦C¦L¶¤¦C§R°£¥´¦L¥ô°È¡B
¥´¦L«e¤åÀÉ±Æª©©M³]¸m¥´¦LÀô¹Òµ¥¡C




\subsection{Linux ¥´¦L¨t²ÎªººtÅÜ}



Linux ¥´¦L¨t²Î - {\itshape lp\/} ¨t²Î - ¬O±N¥[§QºÖ¥§¨È¤j¾Ç®Õ¤è¬° UNIX ¾Þ§@¨t²Îªº BSD ª©½s¼gªº·½¥N½X§ï½s¦Ó¦¨¡C




\subsection{§Q¥Î {\itshape lpr\/} ¥´¦L¤åÀÉ}



¨ì¥Ø«e¬°¤î¡A¦b Linux ¨t²Î¤¤¥´¦L¤åÀÉªº³ÌÂ²³æ¤èªk´N¬O±N¤åÀÉª½±µ°e¨ì¥´¦L³]³Æ¥´¦L¡C¨Ï¥Î {\itshape cat\/}
«ü¥O´N¬O¤èªk¤§¤@¡C§@¬° root¡Aµo°e¤U¦C«ü¥O´N¥i¥´¦L¤åÀÉ¡G

\begin{tscreen}
\begin{verbatim}
# cat thesis.txt > /dev/lp
\end{verbatim}
\end{tscreen}


¦b³o­Ó¨Ò¤l¤¤¡A{\ttfamily /dev/lp} ¬O¹ê»Ú¥´¦L³]³Æªº²Å¸¹³s±µ - ¤£½×¥´¦L¾÷¬OÂI°}¦C¦L¾÷¡B¿E¥ú¥´¦L¾÷¡B
±Æª©¥´¦L¾÷©Î¹Ïªí¥´¦L¾÷§¡¥i¨Ï¥Î³o­Ó«ü¥O¡C¡]Ãö©ó²Å¸¹³s±µªº¶i¤@¨B»¡©ú¨£ {\itshape ln\/}(1)¡^



¥Ñ¤_¦w¥þ¤Wªº¦Ò¶q¡A¥u¦³ {\ttfamily root} ©MÄÝ©ó¥´¦LºÊ±±µ{¦¡ªº¦P¤@¸s²Õªº¨Ï¥ÎªÌ¤~¥i®Ñ¼g¨ì¥´¦L¾÷¡A
¨Ï¥´¦L¾÷¶i¦æ¥´¦L¡C³o´N¬O¥²»Ý¨Ï¥Î {\itshape lpr\/}¡B{\itshape lprm\/} ©M {\itshape lpq\/} µ¥«ü¥O¤~¯à¨Ï¥Î¥´¦L¾÷ªº²z¥Ñ¡C

¦]¦¹¡A¨Ï¥ÎªÌ¥²»Ý¨Ï¥Î {\itshape lpr\/} ¦C¦L¤åÀÉ¡C{\itshape lpr\/} ¬°¥´¦L¶i¦æ©Ò¦³ªì©l³]©w¡A
µM«á±N¥ô°È¥æµ¹¥´¦LºÊ±±µ{§Ç - {\itshape lpd\/}¡C³o­Ó¥´¦LºÊ±±µ{§ÇÀH§Y§iª¾¥´¦L¾÷¦p¦ó¥´¦L¤åÀÉ¡C

¦b {\itshape lpr\/} °õ¦æ¹Lµ{¤¤¡A¥¦­º¥ý±N¦³«Ý¥´¦Lªº¤åÀÉ§Û¨ì¤@­Ó¥Ø¿ý¡]°²²æ¾÷¥Ø¿ý¡^¡A
µM«áÅý¸Ó¤åÀÉ¯d¦b¸Ó¥Ø¿ý¤¤µ¥«Ý {\itshape lpd\/} ¶i¦æ¥´¦L¡C¤@¥¹ {\itshape lpd\/} ±oª¾¦³¤åÀÉµ¥«Ý¥´¦L¡A
¥¦´N¦Û¦æ¥Í¦¨¤@­Ó³Æ¥÷¡]½sµ{­ûºÙ¬°¬£¥Í¡]forking¡^¡^¡C³o­Ó¬£¥Íªº {\itshape lpd\/} ºÊ±±µ{§Ç´N·|¥´¦L¦³«Ý¥´¦Lªº¤åÀÉ¡A
¦P®É­ì {\itshape lpd\/} ¤´Ä~Äòµ¥«Ý«á­±¥i¯àµo¥Xªº¥´¦L«ü¥O¡C³q¹L³oºØ¤è¦¡¡ALinux ¨t²Î¥i¦P®É³B²z¦C¶¤¥´¦L¥ô°È¡C



¨Ï¥Î {\itshape lpr\/}(1) «ü¥Oªº»yªk¦p¤U¡G

\begin{tscreen}
\begin{verbatim}
$ lpr [ options ] [ filename ... ]
#
# (Ä¶µù¡G$ lpr [ ¿ï¶µ ] [ ¤åÀÉ¦W ... ])
#
\end{verbatim}
\end{tscreen}


¦pªG {\ttfamily filename ¡]Ä¶µù¡G¤åÀÉ¦W¡^}¨S¦³¼Ð¥Ü¡A{\itshape lpr\/} »{¬°±N¥Ñ¼Ð·Ç¿é¤J¤f¡]³q±`¬°Áä½L©Î¥t¤@µ{¦¡ªº¿é¥X¡^´£¨Ñ¿é¤J¡C³q¹L³oºØ¤èªk¡A
¨Ï¥ÎªÌ¥i±N¤@­Óµ{¦¡ªº¿é¥X¾É¤J¥´¦L°²²æ¾÷µ{§Ç¡C¨Ò¦p¡A

\begin{tscreen}
\begin{verbatim}
$ cat thesis.txt | lpr
\end{verbatim}
\end{tscreen}


©Î

\begin{tscreen}
\begin{verbatim}
$ pr -l60 thesis.txt | lpr
\end{verbatim}
\end{tscreen}


§¡§â¹B¦æªºµ²ªG¾É¤J¥´¦L¾÷¦L¥X¡C

{\itshape lpr\/} «ü¥OÁÙ±µ¨ü¦UºØ¥´¦L¿ï¶µ°Ñ¼Æ¡A¨Ï¨Ï¥ÎªÌ¯à±±¨î¥´¦L¤è¦¡¡C³Ì±`¥Îªº¿ï¶µ°Ñ¼Æ¦³¡G
-{\bfseries P}printer «ü©ú¥Î¦óºØ¥´¦L¾÷¡B-{\bfseries h} ¤£¦L¬ðµo¿ù­¶¡B-{\bfseries s} «Ø¥ß²Å¸¹³s±µ¡A
¨Ã¥B¤£±N¤åÀÉ§Û¨ì°²²æ¾÷¥Ø¿ý¡]«K¤_³B²zªø¤åÀÉ¡^©M -{\bfseries \#}num ¼Ð©ú¥´¦L¥÷¼Æ¡C
¨ãÅé¨Ï¥Î {\itshape lpr\/} ªº¨Ò¤l¦p¤U¡G

\begin{tscreen}
\begin{verbatim}
$ lpr -#2 -sP dj thesis.txt
\end{verbatim}
\end{tscreen}


³o­Ó«ü¥O·|¦b°²²æ¾÷¥Ø¿ý¤º¬°ºÙ¬° {\itshape dj\/} ªº¥´¦L¾÷«Ø¥ß¤@­Ó³s±µ {\ttfamily thesis.txt} ¤åÀÉªº²Å¸¹³s±µ¡AµM«á¥Ñ {\itshape lpd\/} ¹ï¨ä¶i¦æ¥´¦L¡C¦L§¹¤§«á¡A¥¦ÁÙ·|¦A¥´¦L¤@¦¸ {\ttfamily thesis.txt} ¡]Ä¶µù¡G¦@¦L¨â¥÷¡^¡C

Ãö©ó {\itshape lpr\/} ¨Ï¥Îªº©Ò¦³¿ï¶µ°Ñ¼Æ¡A¨£ {\itshape lpr\/}(1)¡C




\subsection{§Q¥Î {\itshape lpq\/} ¹î¬Ý¥´¦L¶¤¦C}



¨Ï¥Î {\itshape lpq\/} «ü¥O¥i¹î¬Ý·í«eªº¥´¦L¶¤¦C¡C¦pª½±µ¨Ï¥Î«ü¥O¡A¤£¥[¿ï¶µ°Ñ¼Æ¡A
¥i¹î¬ÝÀq»{¥´¦L¾÷ªº¥´¦L¶¤¦C±¡ªp¡C



{\itshape lpq\/} ªºµ²ªG¦³³\¦h¥Î³~¡C

\begin{tscreen}
\begin{verbatim}
$ lpq
lp is ready and printing ¡]Ä¶µù¡G¥´¦L¾÷·Ç³Æ¥´¦L¡A¤U­±¦C¥X¥´¦L«H®§¡^
Rank   Owner      Job  Files                            Total Size
active mwf        31   thesis.txt                       682048 bytes
\end{verbatim}
\end{tscreen}





\subsection{§Q¥Î {\itshape lprm\/} ¨ú®ø¥´¦L¥ô°È}



¹ï¥ô¦ó¤@­Ó¥´¦L¨t²Î¦Ó¨¥¡A³£»Ý­n¦³¤@­Ó¨ú®ø¥´¦L¥ô°Èªº¤u¨ã³n¥ó¡C¦b Linux ¨t²Î¤¤¡A¥i¥Î {\itshape lprm\/}¡C

\begin{tscreen}
\begin{verbatim}
$ lprm -
\end{verbatim}
\end{tscreen}


¤W­z«ü¥O¨ú®ø¨Ï¥ÎªÌµo¥Xªº©Ò¦³¥´¦L«ü¥O¡C¦pªG¥u­n¨ú®ø¤@­Ó¥´¦L¥ô°È¡A¥i¥Î {\itshape lpq\/}
¬d©ú¥´¦L¥ô°È½s¸¹¡AµM«á±N¸Ó½s¸¹§@¬°°Ñ¼Æ¥Î¤_ {\itshape lprm\/} «ü¥O¡C¨Ò¦p¡G

\begin{tscreen}
\begin{verbatim}
$ lprm 31
\end{verbatim}
\end{tscreen}


¨ú®øÀq»{¥´¦L¾÷²Ä 31 ¸¹¥´¦L¥ô°È ({\ttfamily thesis.txt})¡C




\subsection{§Q¥Î {\itshape lpc\/} ±±¨î lpd µ{§Ç}



{\itshape lpc\/}(8) µ{¦¡¥Î¨Ó±±¨î lpd ´£¨Ñ¥´¦Lªº¥´¦L¾÷¡C³q¹L lpc µ{¦¡¥i±±¨î¥´¦L¾÷ªº¥´¦L¥\¯à¡B
¥´¦L¥ô°È¦C¶¤¡B­«·s¦w±Æ¦C¶¤¦¸§Ç©M´£¨Ñ¥´¦L¾÷©M¦C¶¤ª¬ªp¡C lpc ¦h¼Æ¥Î¤_³]¸m¨t²Î®É¤@¾÷°t¸m¦h¥´¦L¾÷ªº±¡ªp¡C

\begin{tscreen}
\begin{verbatim}
$ lpc
\end{verbatim}
\end{tscreen}


¤W­z«ü¥O±Ò°Ê lpc µ{¦¡¡C¦b¤£³]¸m¥ô¦ó°Ñ¼Æªº±¡ªp¤U¡A³o¨Ï¥Î¤á¶i¤J¤¬°Ê¼Ò¦¡¡A¦¹«á¥i¶}©l¿é¤J«ü¥O¡C
¨Ï¥Î lpc ªº¥t¤@­Ó¤è¦¡¬O±q«ü¥O¦æ¿é¤J°Ñ¼Æ¡C

\begin{tscreen}
\begin{verbatim}
$ lpc status all
\end{verbatim}
\end{tscreen}


©Ò¦³¥i¥Îªº«ü¥O§¡¦b {\itshape lpd\/} ªº¨Ï¥Î»¡©ú¡]man page¡^¤º¥i¥H¬d¨ì¡C¦¹³B¦C¥X¤@¨Ç¥D­n«ü¥O¡C«ü¥O¤¤§@¬°
{\itshape ¿ï¶µ\/} ¦C¥Xªº³¡¤À¥i¥H¬O¥´¦L¾÷¦W¡]lp¡Bprint µ¥¡^©ÎÃöÁä¦r {\ttfamily all}¡A¦¹³Bªí¥Ü©Ò¦³¥´¦L¾÷¡C

\begin{itemize}
\item  disable {\itshape ¿ï¶µ\/} -  ¤£Åý¥´¦L¾÷¦A±µ¨ü·sªº¥´¦L¥ô°È
\item  down {\itshape ¿ï¶µ\/} - °±¤î¥´¦L¾÷ªº¤@¤Á¥´¦L
\item  enable {\itshape ¿ï¶µ\/} - ¤¹³\¥´¦L¥ô°È¶i¤J¥´¦L¦C¶¤
\item  quit (©Î exit) - °±¤î lpc ¹B¦æ
\item  restart {\itshape ¿ï¶µ\/} - ­«·s¶}©l¥´¦L¾÷ªº lpd
\item  status {\itshape ¿ï¶µ\/} - ¦L¥X¥´¦L¾÷ªº¾÷ªp
\item  up {\itshape ¿ï¶µ\/} - ­«·s°_©l¨Ã¶}©l·sªº lpd
\end{itemize}





\subsection{RedHat ªº¥´¦L¤u¨ã¡]printtool¡^}

RedHat ªº printtool ¬O¤@­Ó«D±`¦n¥Îªº¤u¨ã¡C¥¦´X¥GµL©Ò¤£¯à¡C¤U¤å»¡©ú¦p¦ó³q¹L RedHat 4.0 ¦b¦}Áp°ð±µ³s
HP LJ 4L ªº¤èªk¡]¦¹ªk¤]¥i¥Î¤_¨ä¥L RedHat ª©¥»¡^¡C

\begin{itemize}
\item ¥H root ¨­¥÷µn¿ý¡A¨Ã±Ò°Ê printtool (¦pªG§@¬° su ¡AÁÙ°O±o
SETENV DISPLAY :0.0 ©M xhost + ¶Ü?)
\item «ö "Add"¡AµM«á¦b¥»¦a¥´¦L¾÷¶µ«ö "OK"
\item ¶ñ¤J¥´¦L¾÷¦WºÙ (¦p /dev/lp1)
\item ¶ñ¤J°Ñ¼Æ - ¿ï¾Ü¥´¦L¾÷ºØÃþ¡B¤À¿ë²v©M¯È±i¤j¤p (ljet4¡B300x300 ©M «H¯È¤Ø¤o)
\item «ö "OK" ¤@ª½¨ì©³¡A­«·s±Ò°Ê lpd¡C
\end{itemize}


§Q¥Î³oºØ¤èªk¥i¬°¤@¥x¥´¦L¾÷³]©w¦hºØ¥´¦L¤è¦¡¡A¨Ò¦p¬°¦UºØ¥´¦L³]©w¤£¦Pªº¯È±i¤Ø¤o¡B¤À¿ë²vµ¥¡C




\section{¥´¦L¤åÀÉ}

¥»¸`»¡©ú¦b Linux ³]©w¤¤³]©w¥´¦Lªº¤åÀÉÃþ§O¡C




\subsection{¥´¦L¹Ï¹³ÀÉ}



¥Î¥´¦L¾÷¥´¦L¹Ï¹³ÀÉ³q±`¨ú¨M¤_¹Ï¹³Âà´«ªºÃþ§O©M¥Î¦óºØ¥´¦L¾÷¥´¦L¡CÂI°}¥´¦L¾÷¤@¯ë¤£¾A¦X¥´¦L¹Ï¹³¡A
¦]¬°ÂI°}¥´¦L¾÷µLªk¾A·í³B²z¹Ï®×¡C¦b³oºØ±¡ªp¤U¡A¦pªG¥´¦L¾÷¬O¬OÃþ¦üEpson ©ÎIBM ProPrinter
ªº¥´¦L¾÷¡A«h¥i±N¹Ï¹³Âà´«¦¨ PostScript ®æ¦¡¡AµM«á§Q¥Î Ghostscript ¡]¨£¤U¸`¡^¥´¦L¹Ï¹³¡C

¦pªG±µ³sªº¥´¦L¾÷¬O¿E¥ú¥´¦L¾÷¡A¥´¦L¹Ï¹³´N¤ñ¸ûÂ²³æ¡A¦]¬°¦h¼Æ¿E¥ú¥´¦L¾÷³£¤_ PCL ­Ý®e¡C
¦pªG¤£­Ý®e¡A¤]¥i§Q¥Î {\itshape NetPBM\/} µ¥³n¥ó±N¹Ï¹³Âà´«¦¨ PCL ®æ¦¡¡C
³Ì«á¤@ºØ¿ìªk´N¬O¨Ï¥Î Ghostscript ¡]¨£¤U¸`¡^¡C

¥´¦L¹Ï¹³ªº³Ì¦n¿ìªk¬O¦w¸Ë NetPBM ©M Ghostscript µ¥³n¥ó¡AµM«á¦w¸Ë magic filter ¦Û°Ê³B²z¹Ï¹³ÀÉ¡C




\subsection{¥´¦L PostScript ÀÉ}



¦b¦³ PostScript ÃÑ§O³n¥óªº¥´¦L¾÷¤W¥´¦L PostScript ÀÉ¬O¥óÂ²³æ¤£¹Lªº¨Æ¡F
¥u»Ý¨Ï¥Î {\itshape lpr\/} «ü¥O¡A¨ä¥L¥´¦L¤u§@³£·|¥Ñ¥´¦L¾÷¦Û°Ê³B²z¡C¦pªG¥´¦L¾÷¤£¨ã³Æ³B²z PostScript
ªº¯à¤O¡A¨º´N±o¥t·Q¿ìªk¡C©¯¦n¦³³n¥ó¥i¤F¸Ñ PostScript ªº¥´¦L»Ý¨D¡A¨Ï¦h¼Æ¥´¦L¾÷³£¯à¨Ï¥Î¡C
¦b³o¤è­±¡A³Ì±`¥Îªº³n¥ó¥i¯à´N¬O Ghostscript¡C

Ghostscript ªº¥ô°È´N¬O±N PostScript ÀÉ¤¤ªº©Ò¦³±Æª©«ü¥OÂà´«¦¨¥´¦L¾÷¯à°÷°õ¦æªº«ü¥O¡C
§Q¥Î Ghostscript ¥´¦L PostScript ÀÉ¡A¥i¯à»Ý­n§Q¥Î¤U¦C«ü¥O¡G
\begin{tscreen}
\begin{verbatim}
$ gs -dSAFER -dNOPAUSE -sDEVICE=deskjet -sOutputFile=\|lpr thesis.ps
\end{verbatim}
\end{tscreen}


ª`·N¤W¨Ò¤¤¨Æ¹ê¤W§Q¥Î¾É¤J¡] pipe ¡^ªº¤è¦¡±N Ghostscript ªºÂà´«µ²ªG§Q¥Î  -{\bfseries sOutputFile} 
¿ï¶µ¾É¤Jµ¹ {\itshape lpr\/} ¥´¦L¡C

§Q¥Î Ghostview ¤u¨ã¥i¦b¥´¦L¤§«e¬d¬Ý X µøµ¡¨t²Î¤¤§Q¥Î Ghostscript ¥´¦L PostScript ÀÉªº±¡ªp¡C
Ghostview ©MGhostscript ¥i±qºô§} \nameurl{ftp://prep.ai.mit.edu/pub/gnu/}{} ¤U¸ü¡C




\subsection{¥´¦L PDF ÀÉ}



Adobe ¤½¥q¬° Linux ¨t²Î½s¨î¤F Acrobat ¾\Åª¾¹¡C³o­Ó¾\Åª¾¹¥i±q Adobe ¤½¥q¥D­¶ \nameurl{http://www.adobe.com}{} ¤U¸ü¡C¦P®É¤]¥i¨Ï¥Î³o­Ó¾\Åª¾¹ªº«e¤@ª©¥» xpdf¡C
³o¨â­Ó¥´¦L³n¥ó§¡¥i¥Î¤_ postscript ¥´¦L¾÷¡C




\subsection{¥´¦L TeX ÀÉ}



¥´¦L TeX ÀÉªº³ÌÂ²«K¤èªk¬O±N¨äÂà´«¦¨ PostScript ®æ¦¡¡AµM«á¥Î Ghostscript ¥´¦L¡C
­n§Q¥Î³oºØ¤èªk¥´¦L¡A­º¥ý±o±N¤åÀÉÂà´«¦¨¤@ºØºÙ¬° DVI ¡]device-independent ªºÁYºÙ¡^ªº®æ¦¡¡C
³o¥i§Q¥Î {\itshape tex\/}(1) «ü¥O§¹¦¨¡CµM«á§Q¥Î {\itshape dvips\/} «ü¥O±N DVI ÀÉÂà´«¦¨ PostScript ÀÉ¡C
«ü¥Oªº¨Ï¥Î¤è¦¡¦p¤U¡G

\begin{tscreen}
\begin{verbatim}
$ tex thesis.tex
$ dvips thesis.dvi
\end{verbatim}
\end{tscreen}


µM«á´N¥i§Q¥Î«e­±´£¨ìªº«ü¥O¥´¦L³Ì«á¥Í¦¨ªº PostScript ÀÉ¡C




\subsection{¥´¦L {\ttfamily troff} ®æ¦¡ªº¤åÀÉ}



\begin{tscreen}
\begin{verbatim}
$ groff -Tascii thesis.tr | lpr
\end{verbatim}
\end{tscreen}


©Î¥i¥Î¤U¦C¤è¦¡¡G

\begin{tscreen}
\begin{verbatim}
$ groff thesis.tr > thesis.ps
\end{verbatim}
\end{tscreen}


µM«á§Q¥Î¤W­z«ü¥O¥´¦L¥Í¦¨ªº PostScript ÀÉ¡C




\subsection{¥´¦L {\ttfamily man} »¡©ú­¶}



\begin{tscreen}
\begin{verbatim}
$ man man | col -b | lpr
\end{verbatim}
\end{tscreen}


man »¡©ú­¶³£¨Ï¥Î {\ttfamily troff} ªº®æ¦¡¡A¦]¦¹¦b¥´¦L®É±o­º¥ý§R°£²ÊÅé¡B©³½uµ¥®æ¦¡¡C
¡§col¡¨³n¥ó¥i¥H§¹¦¨³o¶µ¤u§@¡A¥Ñ¤_ pipe ¥Í¦¨ªºµ²ªG¡A¦]¦¹¤£¥i¥Î {\ttfamily more} «ü¥O¡C




\section{Âø¶µ}

¦¹³B°Q½×¦b¥L³B¨S¦³½×¤Îªº°ÝÃD¡C




\subsection{¥´¦L«e±Æª©}



¥Ñ¤_¦h¼Æ¯Â¤å¥»®æ¦¡ªº¤åÀÉ¦b¥´¦L®É³£¨S¦³±Æª©®æ¦¡¡A¦]¦¹³Ì¦n¦b¥´¦L«e¥ý¦æ±Æª©¡A
¨ä¤¤¥]¬A¨C­¶¥[ªþ¼ÐÃD©M­¶½X¡B³]©w­¶Ãä¶Z¡BÂù­¿¦æ¶Z¡BÁY¶i©M¦hÄæ±Æª©µ¥¡C
§¹¦¨³o¶µ¤u§@ªº¤@¯ë¤èªk¬O¨Ï¥Î {\itshape pr\/} ³n¥ó¡C

\begin{tscreen}
\begin{verbatim}
$ pr +4 -d -h"Ph.D. Thesis, 2nd Draft" -l60 thesis.txt | lpr
\end{verbatim}
\end{tscreen}


¦b¤W¨Ò¤¤¡A{\itshape pr\/} ¹ï¹w³Æ¥´¦Lªº {\ttfamily thesis.txt} ¶i¦æ¤U¦C¤u§@¡G
¤T­¶ªÅ¥Õ­¶(+4)¡B¨C­¶¥´¦L 60 ¦æ(-l60)¡BÂù­¿¦æ¶Z(-d)¨Ã¦b¨C­¶³»ºÝ¥[¦L(-h) ¡§Ph.D. Thesis, 2nd
Draft¡¨¡]Ä¶µù¡G³Õ¤h½×¤å¡A²Ä 2 ½Z¡^¡C{\itshape lpr\/} ±N¥´¦L {\itshape pr\/} ¥Í¦¨ªº¤å¥»¡C
{\itshape pr\/} ªº¥Îªk¥i°Ñ¾\Áp¾÷»¡©ú¡C




\subsection{¥´¦L¾÷ªºÀô¹Ò°Ñ¼Æ}



©Ò¦³ Linux ¥´¦L¨t²Îªº«ü¥O§¡±µ¨ü -{\bfseries P} ¿ï¶µ¡C³q¹L³o­Ó¿ï¶µ¡A¥i½T©w¥Î­þ¤@­Ó¥´¦L¾÷¥´¦L¡A
§_«h´N¥Î¨t²ÎÀq»{ªº¥´¦L¾÷¥´¦L¡C

¬°¤FÁ×§K¨C¦¸³]©w¥´¦L¾÷¡A¥i¨Æ¥ý³]©w¥´¦L¾÷°Ñ¼Æ¡C¨CºØ¨t²Î¨Ï¥Îªº¤èªk¤£¦P¡A¥H {\itshape bash\/}
¬°¨Ò¡A¥i¥Î¤U¦C«ü¥O¡G

\begin{tscreen}
\begin{verbatim}
$ PRINTER="printer_name¡]Ä¶µù¡G¥´¦L¾÷¦WºÙ¡^"; export PRINTER
\end{verbatim}
\end{tscreen}


¦b {\itshape csh\/} ¤¤¥i¥Î¡G

\begin{tscreen}
\begin{verbatim}
% setenv PRINTER "printer_name¡]Ä¶µù¡G¥´¦L¾÷¦WºÙ¡^"
\end{verbatim}
\end{tscreen}


³oºØ«ü¥O¥i¦C¤Jµn¿ý«ü¥O¡]{\itshape bash\/} ¨Ï¥Î.profile¡F{\itshape csh\/} ¨Ï¥Î.cshrc ¡^
©Î§@¬°³æ¿W«ü¥O¨Ï¥Î¡C¡]Ãö©óÀô¹Ò°Ñ¼Æªº¶i¤@¨B¸ê®Æ¨£ {\itshape bash\/}(1) ©M {\itshape csh\/}(1)¡^






\section{±`¨£°ÝÃD}



Q1.  ¥´¦L®É¦p¦ó®ø°£¡§¥x¶¥¡¨²{¶H¡H

A1.  ¦³¨Ç¥´¦L¾÷±o¨C¦æµ¹µ²§ô²Å¡A§_«h´N·|¥X²{¥´¦Lªº¥x¶¥²{¶H¡C
¥´¦L¾÷¹w´Áªºµ²§ô²Å¬O¦^¨®/·s¦æ²Å¡]DOS ¨t²Î¡^¡A¦Ó UNIX ¨t²Î¦bµ²§ô¤@¦æ®É¥u¥[¤@­Ó·s¦æ²Å¡C
¸Ñ¨M³o­Ó°ÝÃDªº³ÌÂ²«K¿ìªk¬OÀË¬d¬O§_¥i¥Î¬YºØ¶}Ãö±±¨î¥´¦L¾÷¡A¨Ï¨ä¯à¦b³o¨âºØ¥´¦L¤§¶¡Âà´«¡A
¦³®É¥i¥Î¤@­Ó DIP ¶}Ãö¡A©Î¥i¦b¥´¦L«e¥ýµo°e¤@­Ó´«½X«H¸¹¡C¦p­n±Ä¥Î²Ä¤GºØ¿ìªk¡A
±o¥ý³]¥ß¤@­Ó¹LÂo¾¹¡]¨£ Q2¡^¡C

³Ì§Öªº¸Ñ¨M¿ìªk¬O¦b«ü¥O¦æ¨Ï¥Î¹LÂo¾¹¡C¨Ò¦p¡G

\begin{tscreen}
\begin{verbatim}
$ cat thesis.txt | todos | lpr
\end{verbatim}
\end{tscreen}






Q2.  ¤°»ò¬O¹LÂo¾¹¡H

A2.  ¹LÂo¾¹¬O¤@®M³n¥ó¡A¥¦¥i±q¼Ð·Ç¿é¤J¡]{\itshape stdin\/}¡^Åª¤J¸ê®Æ¡AµM«á¹ïÅª¤Jªº¸ê®Æ¶i¦æ°Ê§@¡A
¦A¥H¼Ð·Ç¿é¥X¡]{\itshape stdout\/}¡^¼g¥X¡C¹LÂo¾¹ªº¥Î³BË¼¦h¡A¥]¬A¥i¥Î¤_¤å¥»³B²z¡C



Q3.  ¤°»ò¬OÅ]³N¹LÂo¾¹¡]{\itshape magic\/} filter¡^¡H

A3.  Å]³N¹LÂo¾¹¬O¤@ºØ®Ú¾Ú¤åÀÉªººØÃþ±Ä¨ú¦æ°Êªº¹LÂo¾¹¡C¨Ò¦p¡A¦pªG¤åÀÉ¬O¨S¦³±Æª©®æ¦¡ªº¤å¥»¤åÀÉ®É¡A
«h§Q¥Î¤@¯ë¥´¦L¤è¦¡¥´¦L¡C¦pªG¤åÀÉ¬O PostScript ¤åÀÉ©Î¨ä¥L®æ¦¡¤åÀÉ¡A«h¥Î¨ä¥L¤è¦¡¥´¦L
¡] ghostscript ¡^¡C±`¥ÎªºÅ]³N¹LÂo¾¹¦³ magicfilter
©M APSfilter¡C¨Ï¥Î³oÃþ¹LÂo¾¹ªº¤@¶µ­nÂI¬O¦b¦w¸Ë¹LÂo¾¹¤§«e¥²»Ý¥ý¦w¸ËÀ³¥Î³n¥ó¡C

»Ý­nª`·N³o¶µ­nÂIªº²z¥Ñ¬O¦b¦w¸Ë magicfilter ®É¡A³o­ÓÅ]³N¹LÂo¾¹·|¬d¸ß¨t²Î¤¤¸Ë¦³¦óºØ¥´¦Lµ{§Ç
¡]¨Ò¦p ghostscript¡A¦pªG§ä¨ì ghostscript¡A«h magicfilter ´Nª¾¹D¥¦¯à³B²z PostScript
®æ¦¡ªº¤åÀÉ¡^¡AµM«á®Ú¾Ú§ä¨ìªº¥´¦Lµ{§Ç§@¥X¬ÛÀ³ªº³]©w¡C¦pªG¨t²Î­n³B²z©Ò¦³¥´¦L¤åÀÉ¡A
¥i¯à¦Ü¤Ö±o¦w¸Ë¤U¦Cµ{§Ç¡G

\begin{itemize}
\item GhostScript
\item TeX
\item NetPBM
\item jpeg utilities ¡]Ä¶µù¡Gjpeg ¤u¨ã³n¥ó¡^
\item gzip
\end{itemize}




Q4.  ¦ó¿× Windows ¥´¦L¨t²Î¡]WPS¡^¡HLinux ¯à¥Î³o­Ó¥´¦L¨t²Î¶Ü¡H

A4.  ¤]³\¡C¥u±µ¨ü WPS «ü¥Oªº¥´¦L¾÷µLªk¥Î¤_ Linux ¨t²Î¡C±µ¨ü WPS «ü¥O©M¨ä¥L¥´¦L«ü¥Oªº¥´¦L¾÷
¡]¦p Canon BJC 610 ¥´¦L¾÷¡^´N¥i¨Ï¥Î¡A¥u­n±N¨ä³]¸m¦¨ WPS ®æ¦¡¥H¥~ªº®æ¦¡§Y¥i¡C¨ä¥L¥´¦L¾÷¡A
¨Ò¦p¦³¨Ç HP DeskJet 820Cxi/Cse ¥´¦L¾÷´N*µLªk*¥Î¤_ Linux¡C¤£¹L¡A¾¨ºÞ¦p¦¹¡A Linux ¥i§@¬°
Win95 ¾÷¾¹ªº¥´¦L¦øªA¾¹¡]¨£ Samba¡^¡A¦]¬° Win95 ¦³³o¨Ç¥´¦L¾÷ªºÅX°Êµ{§Ç¡C



Q5.  ³o­Ó¨t²Î«ç»ò³o»òÄê¡H¥u¯à¥´¦L 6 ­¶¡A¶W¹L 6 ­¶´NÅã¥Ü¡§file too large ¡]¤åÀÉ¤Óªø¡^¡¨¡C

A5.  ¦b /etc/printcap ÀÉ¤¤¦³¤@­Ó°Ñ¼Æ»P¥´¦Lªº¤åÀÉªø«×¦³Ãö¡CÀq»{­È¬O 1000 ½L°Ï¡]¬ù 500 k¡^¡C
¹ï PostScript ³oÃþ¤åÀÉ¦Ó¨¥¡A³o¤j¬ù¬O 7-8 ­¶¥ª¥kªºªø«×¡C¦]¦¹°È¥²¦b¥´¦L¾÷ªº³]©w¤¤¥[¤J¤U¦C¤º®e¡G

\begin{tscreen}
\begin{verbatim}
mx=0
\end{verbatim}
\end{tscreen}


ªþ¥[³o­Ó«ü¥Oªº¥D­n­ì¦]¬O¤£¨Ï¥Î°²²æ¾÷¡C¥t¤@­Ó§¹¦¨³o¶µ¤u§@ªº¤èªk¬O¥Î lpr
¦b°²²æ¾÷¥Ø¿ý¤º¹ï¥´¦Lªº¤åÀÉ¥Í¦¨³n³s±µ¡C°È¥²°O±o¨C¦¸§¡»Ý¦b lpr «ü¥O¤¤¨Ï¥Î {\ttfamily -s} ¿ï¶µ¡C






\section{±Æ°£¬G»Ù}



¥»¸`»¡©ú¦b¥´¦L®É³Ì¥i¯à¥X¿ùªº°ÝÃD¡C



¦pªG¥´¦L¾÷¤£¥´¦L¡G
\begin{itemize}
\item ¥´¦L¨ä¥L¤åÀÉ¶Ü¡H (À³¥Î³n¥óªº°ÝÃD¡H)
\item lpd ¥¿¦b¹B¦æ¶Ü¡H (§Q¥Î lpc ¶i¦æÀË¬d) (¥´¦L±±¨îµ{§Ç¦³°ÝÃD¶Ü¡H)
\item root ¯àª½±µµo°e«ü¥Oµ¹¥´¦L¾÷¶Ü¡H (¥´¦LªA°È¦³°ÝÃD¶Ü¡H)
\item ¯à±q DOS ¥´¦L¶Ü¡H (Áp½u/¥´¦L¾÷¦³°ÝÃD¶Ü¡H)
\end{itemize}

³o¨Ç°ÝÃD¦³§U¤_§ä¥X¥´¦L¬G»Ùªº­ì¦]¡C

¦p¦³¨ä¥L³o¤è­±ªº«ØÄ³½Ð±H $<$markk@auratek.com$>$¡C




\section{°Ñ¦Ò§÷®Æ}



¥»¸`¸ü¦C Linux ¥´¦L¨t²Îªº°Ñ¦Ò§÷®Æ¡C§Ú¤wºÉ¤OÃ¹¦C»P³o¥÷ HOWTO ¦³Ãöªº°Ñ¦Ò§÷®Æ¡C
¦pµoÄ±¤´¦³­«¤j¿òº|¡A½Ð»P§ÚÀH®ÉÁpµ¸¡C

¦b USENET ¤W´£°Ý®É¡A¦Ò¼{¤U¦C°ÝÃD¡G

\begin{itemize}
\item ¥´¦L¾÷¬O§_±µ¨ü¥´¦L¥ô°È¡H (§Q¥Î {\itshape lpc\/}(8) ¬d®Ö)
\item ±zªº°ÝÃD¬O§_¤w¦b³o¥÷ HOWTO ©Î Grant Taylor ½s¼gªº Printing HOWTO ¤¤´£¨Ñ¤F¸Ñ¨M¿ìªk¡H
\end{itemize}


¦pªG¤W­z°ÝÃD¤w¦³µª®×¡A¨º´N³Ì¦n¤£­n¦bºô¤W´£°Ý¡C¦pªG¤´­n´£°Ý¡AÀ³¸Ó¦C¤J»P°ÝÃD¦³Ãöªº¸ê®Æ¡C
¦pªG´£¥X¡§§Úªº lpr ¦³°ÝÃD¡A½ÐÀ°¦£¡¨³oÃþ°ÝÃD¡A¥i¯à¨S¤H·|²z·|¡C³Ì¦nÁÙ­n¦C¤J¤º®Öª©¥»¡B
¤£¥´¦Lªº±¡ªp¬O¦p¦óµo¥Íªº©MºÉ¥i¯à´£¨Ñ¨t²ÎÅã¥Üªº¨ãÅé¿ù»~«H®§¡C

\begin{description}
\item[Áp¾÷¨Ï¥Î»¡©ú] \mbox{}

\begin{itemize}
\item {\itshape cat\/}(1)  ³s±µ©M¥´¦L¤åÀÉ
\item {\itshape dvips\/}(1)  TeX DVI ¤åÀÉÂà´«¦¨ PostScript ®æ¦¡
\item {\itshape ghostview\/}(1)  §Q¥Î Ghostscript ¬d¬Ý PostScript ¤å¥ó
\item {\itshape groff\/}(1)  groff ¤å¥ó®æ¦¡¨t²Îªº«eºÝ³B²z³n¥ó
\item {\itshape gs\/}(1)  Ghostscript Â½Ä¶¾¹/¾\Åª¾¹
\item {\itshape lpc\/}(8)  ¦C¦L¥´¦L¾÷ªº±±¨îµ{¦¡
\item {\itshape lpd\/}(8)  ¦C¦L¥´¦L¾÷ªº°²²æ¾÷ºÊ±±µ{§Ç
\item {\itshape lpq\/}(1)  °²²æ¾÷¦C¶¤ÀËµøµ{§Ç
\item {\itshape lpr\/}(1)  ²æ¾÷¥´¦Lµ{§Ç
\item {\itshape lprm\/}(1)  ±q¦C¦L¥´¦L¾÷ªº°²²æ¾÷¦C¶¤§R°£¥´¦L¥ô°È
\item {\itshape pr\/}(1)  Âà´«¤å¥»¤å¥ó¥H«K¥´¦L
\item {\itshape tex\/}(1)  ¤å¥»±Æª©©M»sª©
\end{itemize}




\item[USENET ·s»D²Õ] \mbox{}

\begin{itemize}
\item {\ttfamily comp.os.linux.*}  ¦U¦¡¦U¼Ë¦³Ãö Linux ¨t²Îªº¸ê®Æ
\item {\ttfamily comp.unix.*}  »P UNIX ¨t²Î¦³Ãöªº°Q½×
\end{itemize}


\end{description}


\end{document}
