Subject: /etc/princap file for HP-6mp
To: None <sean@pentex.org, netbsd-users@netbsd.org>
From: mel kravitz <melk@switchpwr.com>
List: netbsd-users
Date: 12/30/1999 11:44:24
>
>
> My files which work here and in freebsd use a filter 'lpfilter' program
> called from printcap
> mkdir -p /usr/local/libexec
> emacs lpfilter , and make it executabe by printcap- chmod 755 lpfilter
> mel
>
>   ------------------------------------------------------------------------
> #       @(#)printcap    5.3 (Berkeley) 6/30/90
> # $Id: printcap,v 1.5.2.1 1998/02/07 19:17:32 ache Exp $
>
> #
> # This enables a simple local "raw" printer, hooked up to the first
> # parallel port.  No kind of filtering is done, so everything you
> # pass to the "lpr" command will be printed unmodified.
> #
> # Remember, for further print queues you're going to add, you have to
> # chose different spool directories (the "sd" capability below),
> # otherwise you will greatly confuse lpd.
> #
> # For some advanced printing, have a look at the "apsfilter" package.
> # It plugs into the lpd system, allowing you to print a variety of
> # different file types by converting everything to PostScript(tm)
> # format.  If you don't have a PostScript(tm) printer, don't panic,
> # but do also install the "ghostscript" package.
> #
> # Do also refer to section 7 (Printing) of the handbook.  A local copy
> # can be found under /usr/share/doc/handbook/handbook.{html,latin1}.
> #
> # Banner pages are now suppressed by default.  Remove the :sh:
> # capability to turn them back on.
> #
> lp|lj|ps|local line Laserjet 6MP printer:\
>         :sh:\
>         :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\
>         :if=/usr/local/libexec/lpfilter:
>
>
> # Sample remote printer.  The physical printer is on machine "lphost".
> # NB: you cannot perform any kind of local filtering directly.  If
> # you need local filters (e.g. LF -> CR-LF conversion for HP printers),
> # create a filter script that recursively calls lpd with another -P
> # argument after filtering.
> #
> #remote|sample remote printer:\
> #       :sh:\
> #       :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:
> #
> # Simple Russian printer with hardware CP866 character set, output filter
> # used for KOI8-R -> CP866 conversion
> #
> #lp|Russian local line printer:\
> #       :sh:of=/usr/libexec/lpr/ru/koi2alt:\
> #       :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
>
>   ------------------------------------------------------------------------
> #!/bin/sh
> printf "\033&k2G" && cat && printf "\f" && exit 0
> exit 2