Diff for /wikisrc/guide/print.mdwn between versions 1.2 and 1.3

version 1.2, 2013/03/21 11:11:21 version 1.3, 2015/06/19 19:18:31
Line 21  which are not covered here. Line 21  which are not covered here.
 ## Enabling the printer daemon  ## Enabling the printer daemon
   
 After installation it is not yet possible to print, because the  After installation it is not yet possible to print, because the
 [lpd(8)](http://netbsd.gw.com/cgi-bin/man-cgi?lpd+8+NetBSD-current) printer  [[!template id=man name="lpd" section="8"]] printer
 spooler daemon is not enabled. To enable `lpd`, one line in the `/etc/rc.conf`  spooler daemon is not enabled. To enable `lpd`, one line in the `/etc/rc.conf`
 file must be changed from:  file must be changed from:
   
Line 52  physical connection between your compute Line 52  physical connection between your compute
 sends out some data directly to the printer device. Assuming you use a printer  sends out some data directly to the printer device. Assuming you use a printer
 connected to the parallel port, this is `/dev/lpt0`; if you use an USB printer  connected to the parallel port, this is `/dev/lpt0`; if you use an USB printer
 try `/dev/ulpt0`. Please check the manpages of these devices  try `/dev/ulpt0`. Please check the manpages of these devices
 ([lpt(4)](http://netbsd.gw.com/cgi-bin/man-cgi?lpt+4+NetBSD-5.0.1+i386),  ([[!template id=man name="lpt" section="4"]],
 [ulpt(4)](http://netbsd.gw.com/cgi-bin/man-cgi?ulpt+4+NetBSD-5.0.1+i386))  [[!template id=man name="ulpt" section="4"]])
 for more information!  for more information!
   
 In our example we have a printer attached to the parallel port, so we run this:  In our example we have a printer attached to the parallel port, so we run this:
Line 91  documents. Line 91  documents.
   
 The printer must have an entry in the `/etc/printcap` file; the entry contains  The printer must have an entry in the `/etc/printcap` file; the entry contains
 the printer id (the name of the printer) and the printer description. The  the printer id (the name of the printer) and the printer description. The
 [lp(1)](http://netbsd.gw.com/cgi-bin/man-cgi?lp+1+NetBSD-current)  [[!template id=man name="lp" section="1"]]
 id is the default used by many programs. Here is an example entry:  id is the default used by many programs. Here is an example entry:
   
 **Example `/etc/printcap`**  **Example `/etc/printcap`**
Line 101  id is the default used by many programs. Line 101  id is the default used by many programs.
             :sh:pl#66:pw#80:if=/usr/local/libexec/lpfilter:              :sh:pl#66:pw#80:if=/usr/local/libexec/lpfilter:
   
 The file format and options are described in detail in the  The file format and options are described in detail in the
 [printcap(5)](http://netbsd.gw.com/cgi-bin/man-cgi?printcap+5+NetBSD-5.0.1+i386)  [[!template id=man name="printcap" section="5"]]
 manpage. Please note that an *input filter* has been specified (with the `if`  manpage. Please note that an *input filter* has been specified (with the `if`
 option) which will take care of eliminating the staircase problem:  option) which will take care of eliminating the staircase problem:
   
Line 149  make sure it's executable: Line 149  make sure it's executable:
   
 This filter is much more complex than the one presented before. It is written to  This filter is much more complex than the one presented before. It is written to
 process the output of  process the output of
 [nroff(1)](http://netbsd.gw.com/cgi-bin/man-cgi?nroff+1+NetBSD-current)  [[!template id=man name="nroff" section="1"]]
 and handles underline and overprinting, expands tab characters and converts `LF`  and handles underline and overprinting, expands tab characters and converts `LF`
 to `CR + LF`. The source to this filter program can be found in  to `CR + LF`. The source to this filter program can be found in
 `/usr/src/usr.sbin/lpr/filters/lpf.c`.  `/usr/src/usr.sbin/lpr/filters/lpf.c`.
   
 After everything is in place now, the  After everything is in place now, the
 [lptest(1)](http://netbsd.gw.com/cgi-bin/man-cgi?lptest+1+NetBSD-current)  [[!template id=man name="lptest" section="1"]]
 command can be run again now, this time using the  command can be run again now, this time using the
 [lpr(1)](http://netbsd.gw.com/cgi-bin/man-cgi?lpr+1+NetBSD-current) command,  [[!template id=man name="lpr" section="1"]] command,
 which will first send the data to the lpd spooler, then runs the filter and  which will first send the data to the lpd spooler, then runs the filter and
 sends the data off to the printer:  sends the data off to the printer:
   
Line 167  The `lpr` program prints text using the  Line 167  The `lpr` program prints text using the 
 `-h` option turns off the printing of a banner page (not really necessary,  `-h` option turns off the printing of a banner page (not really necessary,
 because of the `sh` option in `/etc/printcap`). Users more familiar with the  because of the `sh` option in `/etc/printcap`). Users more familiar with the
 System V printing system can also use the  System V printing system can also use the
 [lp(1)](http://netbsd.gw.com/cgi-bin/man-cgi?lp+1+NetBSD-5.0.1+i386) command  [[!template id=man name="lp" section="1"]] command
 that comes as an alternative to  that comes as an alternative to
 [lpr(1)](http://netbsd.gw.com/cgi-bin/man-cgi?lpr+1+NetBSD-5.0.1+i386).  [[!template id=man name="lpr" section="1"]].
   
 ## Configuring Ghostscript  ## Configuring Ghostscript
   
Line 251  This section lists some useful BSD comma Line 251  This section lists some useful BSD comma
 administration. Besides the already mentioned `lpr` and `lpd` commands, we  administration. Besides the already mentioned `lpr` and `lpd` commands, we
 have:  have:
   
  * [lpq(1)](http://netbsd.gw.com/cgi-bin/man-cgi?lpq+1+NetBSD-current)   * [[!template id=man name="lpq" section="1"]]
    -- examine the printer job queue.     -- examine the printer job queue.
  * [lprm(1)](http://netbsd.gw.com/cgi-bin/man-cgi?lprm+1+NetBSD-current)   * [[!template id=man name="lprm" section="1"]]
    -- delete jobs from the printer's queue.     -- delete jobs from the printer's queue.
  * [lpc(8)](http://netbsd.gw.com/cgi-bin/man-cgi?lpc+8+NetBSD-current)   * [[!template id=man name="lpc" section="8"]]
    -- check the printing system, enable/disable printers and printer     -- check the printing system, enable/disable printers and printer
    features.     features.
   

Removed from v.1.2  
changed lines
  Added in v.1.3


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb