$B

   Linux Printing Usage HOWTO
  by Mark Komarinski <[email protected]>
  v1.11, 2 February 1996

$BF|K\8lLu!':4F#N<0l!J([email protected])

  1.  $B=x(B

$BK\J8=q$O!$(BLinuxOS$B$,Ds6!$7$F$$$k%i%$%s%W%j%s%?!<%9%W!<%k%7%9%F%`$N;H$$J}$r5-(B
$B=R$7$?$b$N$G$9!%$3$N(BHOWTO$B$O(B Linux$B0u:~%7%9%F%`$N%$%s%9%H!<%k!&%;%C%H%"%C%W$r(B
$B2r@b$7$?J8=q$G$"$k(B' Linux Printing Setup HOWTO' $B$rJd40$9$k$b$N$G$9!%$3$N(B
HOWTO $B$G>R2p$7$F$$$kFbMF!&;a$NI.$K$h$k86HG$rA4LLE*$K2~Dj$7(B
$B$?$b$N$G$9!%(BGrant $B!$(BBrian$B;a$N(B HOWTO$B$r=PMh$k$@$1F'=1$9$k$h$&?43]$1$^$7$?$,!$(B
$BI=8=K!!&J8=q$N2A(B
$B$KF10U$7$F$/$@$5$l$P9,$$$G$9!%(B

  1.2.  $BMzNr(B

  v1.11

    $BJ8=q4IM}pJs$rDI2C(B

    $B!V:$$C$?$H$-$K$O!W$K/2~A1(B

    PostScript $B0u:~$N9`$rDI2C(B

    $BNc$r2r$j$d$9$/$9$k;n$_(B

    Linux$B4pK\0u:~%f!<%F%#%j%F%#$N2r@b$r99?7(B

  v1.0

    Printing Usage HOWTO$B$N8x3+$r3+;O(B

  1.3.  $BCx:n8"$*$h$S>&I8(B


   Linux Printing Usage HOWTO v1.11 (c) 1996 Mark Komarinski.

  Unless otherwise stated, Linux HOWTO documents are copyrighted by
  their respective authors. Linux HOWTO documents may be reproduced and
  distributed in whole or in part, in any medium physical or electronic,
  as long as this copyright notice is retained on all copies. Commercial
  redistribution is allowed and encouraged; however,  author would
  like to be notified of any such distributions.

  All translations, derivative works, or aggregate works incorporating
  any Linux HOWTO documents must be covered under this copyright notice.

  That is, you may not produce a derivative work from a HOWTO and impose
  additional restrictions on its distribution. Exceptions to these rules
  may be granted under certain conditions; please contact  Linux
  HOWTO coordinator at  address given below.

  In short, we wish to promote dissemination of this information through
  as many channels as possible. However, we do wish to retain copyright
  on  HOWTO documents, and would like to be notified of any plans to
  redistribute  HOWTOs.

  If you have questions, please contact Greg Hankins,  Linux HOWTO
  coordinator, at <[email protected]>. You may finger this address
  for phone number and additional contact information.

$BK\(BHOWTO $B$K5-:\$5$l$F$$$kL>>N$NCf$K$O!$FCDj$N8D?M!&4k6H$NCx:nJ*!&>&I8$,4^$^$l(B
$B$F$$$^$9!%K\(BHOWTO$B$O!$$3$l$i$NCx:nJ*!&>&I8L>$r40A4$J7A$"$k$$$O>JN,7A$G5-:\$7(B
$B$F$$$^$9!%(B

$BFC5-$N$J$$$+$.$j!$(BLinux HOWTO $BJ8=q$OEv3:J8=qCx:n&6HE*G[I[$b5vMF!&>)Ne$7$F$$$^$9!%$7$+$7$J$,$i!$>&6HE*G[I[$r9T$&:](B
$B$K$OCx$&$b$N$H$7$^$9!%(B

$B=>$C$F!$(BHOWTO $B$+$iGI@8$7$?Cx:nJ*$KBP$7!$$3$3$G<($7$?0J>e$NG[I[@)Ls$r$D$1$k$3(B
$B$H$O5v$5$l$^$;$s!%0lDj$N>r7o2<$G$O!$$3$N5,B'$KBP$9$kNc30$rG'$a$k>l9g$b$"$j$^(B
$B$9!%$=$N:]$K$O!$2<5-$N(BLinux HOWTO $B%3!<%G%#%M!<%?!<$K$4AjCL$/$@$5$$!%(B

$B498@$9$l$P!$(BLinux HOWTO $B$NFbMF$r=PMh$k$@$1B?:L$Jl9g$K$O!$@'Hs$40l(B
$BJs2<$5$$$^$9$h$&$*4j$$$$$?$7$^$9!%(B

$B$4pJs$K$D$$$F(B
$B$b$3$N%"%I%l%9$^$G$4Ld$$9g$o$;$/$@$5$$!%(B

  1.4.  Linux Printing HOWTO$B$N%@%&%s%m!<%I(B

$BK\(BHOWTO $B$N%W%j%s%H%"%&%H$,I,MW$JJ}$O!$(BPostscript$BHG$r%@%&%s%m!<%I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%W%j%s%?!u67$Nl9g(B
$B$G$9!%(B

       $ lpc

$B$3$l$G(Blpc $B$,5/F0$7$^$9!%=i4|@_Dj$G$O!$(Blpc $B$OBPOC%b!<%I$G5/F0$7$^$9!%%f!<%6!<(B
$B$O$3$3$G%3%^%s%I$rF~NO$9$k$3$H$,$G$-$^$9!%$^$?!$%3%^%s%I%i%$%s0z?t$N7A$G(Blpc
$B$N%*%W%7%g%s$r;XDj$9$k$H$$$&J}K!$b$"$j$^$9!%(B

       $ lpc status all

$B;HMQ2DG=$J%3%^%s%I$N0lMw$O(Blpd$B$N%^%K%e%"%k%Z!<%8$K$"$j$^$9!%$7$+$7CN$C$F$*$/(B
$BI,MW$,$"$k$N$O!$>/?t$N(B(lp,print$BEy!K!$$"$k$$$O(B all $B!JA4%W%j%s%?!<$rBP>]$H$7$?>l9g!K(B
$B$rBeF~$7$^$9!%(B

    disable option -  $B0J9_!$?7$7$$%W%j%s%?%8%g%V$,F~$k$3$H$r6X;_(B

    down option - $B%W%j%s%?!<>e$NA40u:~$rDd;_(B

    enable option - $B0u:~%-%e!<$K?7$7$$%8%g%V$,F~$k$3$H$r5v2D(B

    quit (or exit) -  lpc$B$r=*N;(B

    restart option - $BEv3:%W%j%s%?!u67$rI=<((B

    up option - $B$9$Y$F$r2DG=$K$7!$(Blpd $B$r5/F0(B

  3.  $BMM!9$JLdBj(B

$B$3$N%;%/%7%g%s$G$O!$(BLinux$B$G0u:~$r$9$k:]$KCN$C$F$*$$$?$[$&$,$$$$MM!9$JLdBj$r(B
$B2r@b$7$^$9!%(B

  3.1.  $B0u:~A0$N@07A(B

ASCII$B%U%!%$%k$OBgDq0u:~MQ$K@07A$5$l$F$O$$$J$$$N$G!$e$NNc$N>l9g!$(B pr $B$O(Bthesis.txt$B$H$$$&%U%!%$%k$reC<$KIU$12C$($^$9(B(-h)$B!%(BLpr $B$O$=$N(B
$B8e(B pr $B$N=PNO$r%-%e!<$7$^$9!%(Bpr $B$N>\$7$$;H$$J}$K$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OPAUSE -sDEVICE=deskjet -sOutputFile=|lpr thesis.ps


$BCm!'>e$NNc$G$O!$(BGhostscript $B$N=PNO$r(B -sOutputFile $B$H$$$&%*%W%7%g%s$r;H$C$F(B
lpr $B$K%Q%$%W$7$F$$$^$9!%(B

Ghostview $B$O(B Ghostscript $B$N(BX Window System $BMQ%$%s%?!<%U%'!<%9$G$9!%$3$l$r;H(B
$B$($P!$%]%9%H%9%/%j%W%H%U%!%$%k0u:~$9$kA0$K(B .$B%W%l%S%e!<$9$k$3$H$,$G$-$^$9!%(B


  3.5.  TeX $B%U%!%$%k%U%!%$%k$N0u:~(B

TeX$B%U%!%$%k$r0u:~$9$k:G$b4JC1$JJ}K!$N0l$D$O!$$3$l$r(BPostscript$B7A<0$KJQ49$7$F(B
$B$+$i!$(BGhostscript$B$rMQ$$$F0u:~$9$k$3$H$G$9!%$3$NJ}K!$rMQ$$$k$?$a$K$O!$$^$:(BTeX
$B%U%!%$%k$r(BDVI$B%U%!%$%k(B(DeVice Independent$B5,3J!K$KJQ49$9$kI,MW$,$"$j$^$9!%$3$l(B
$B$O!$(Btex(1)$B%3%^%s%I$N;E;v$G$9!%$D$$$G!$$3$N(BDVI$B%U%!%$%k$r(BPostScript$B%U%!%$%k$K(B
$BJQ49$9$k$3$H$K$J$j$^$9!%$3$N:n6H$K$O!$(Bdvips $B$rMQ$$$^$9!%e=R(B
$B$N:n6H$,e$K@bL@$7$?$h$&$K!$(BPostScript$B%U%!%$%k$,=PMh>e(B
$B$,$C$F$$$^$9!%(B

  3.6.  troff $B$G@07A$7$?%U%!%$%k$N0u:~(B

       $ groff -Tascii thesis.tr | lpr

$B$"$k$$$O!$$*9%$_$K1~$8$Fl9g$K$O!$>e$G<($7$?J}K!$G(BPostScript$B%U%!%$%k$r0u:~$7$F$/$@$5$$!%(B

  4.  $B$h$/$"$kl9g$K$O!$%U%#(B
$B%k%?!<$r:n$kI,MW$,$"$j$^$9!%!J(BQ2 $B5Z$S(B Foster95b$B$r;2>H$7$F$/$@$5$$!K(B

$Be(B
$BI8=`=PNO(B(stdout)$B$K=PNO$9$k5!G=$r;}$D%W%m%0%i%`$G$9!%%U%#%k%?!<$O%F%-%9%H=hM}(B
$B$r4^$`B?:L$JL\E*$K;H$o$l$F$$$^$9!%(B

  Q3.  $B%^%8%C%/(B $B%U%#%k%?!<$H$O$J$s$G$9$+(B?

  A3.  $B%^%8%C%/(B $B%U%#%k%?!<$H$O(B $B%U%!%$%k%?%$%W$K1~$8$?:n6H$rl9g$K$ODL>o$NJ}K!$G0u:~$7!$(BPostscript $B%U%!%$%k$=$N(B
$BB>$N%U%)!<%^%C%H$N>l9g$K$O!$JL$NJ}K!!J(Bghostscript)$B$G0u:~$9$k$H$$$C$?=hM}$r9T(B
$B$&5!G=$r;}$C$F$$$^$9!%%^%8%C%/%U%#%k%?!<$NBeI=3J$O(B magicfilter $B$H(B APSfilter
$B$G$7$g$&!%(B

$B$3$Nl9g$K$O!$0J2<$N=tE@$r%A%'%C%/$7$F$/$@$5$$!%(B

    $BB>$N0u:~%8%g%V$O5!G=$7$F$$$^$9$+!)(B (application)

    lpd $B$OAv$C$F$$$^$9$+!)(B (lpc $B$G%A%'%C%/$G$-$^$9(B) (print controller)

    $B%k!<%H$O%W%j%s%?!<$KD>@\2?$+$rAwCW$G$-$^$9$+!)(B (print services)

    DOS$B$+$i$J$i0u:~$G$-$^$9$+!)(B (cable/printer problem?)

     $B>e=R$NR2p$7$^$9!%=PMh$k$@$1=EE@$r(B
$B$7$\$j$3$s$@%l%U%!%l%s%9$rDs6!$9$k$h$&$KEX$a$F$*$j$^$9$,!$$b$77gMn$7$F$$$k=E(B
$BMWJ88%$,$"$k$h$&$G$7$?$i!$@'HsCxJ}$H$b!V(BYES$B!W$N>l9g$K$b!$p$r(B
$B@53N$K5-=R$7$F$/$@$5$$!%!V(Blpr$B$,;H$($^$;$s!%=u$1$F$/$@$5$$!W$H$$$C$?$h$&$JpJs$bpJs$NJu8K(B

       comp.unix.*  UNIX OS$B4XO"$NOCBj(B

$B