xref: /freebsd/usr.sbin/lpr/lpd/printcap (revision 8a7b61203704d362cfbc66c00619f51b24106b55)
180994f81SBrad Davis
280994f81SBrad Davis#
380994f81SBrad Davis# This enables a simple local "raw" printer, hooked up to the first
480994f81SBrad Davis# parallel port.  No kind of filtering is done, so everything you pass
580994f81SBrad Davis# to the "lpr" command will be printed unmodified.
680994f81SBrad Davis#
780994f81SBrad Davis# Remember, for further print queues you're going to add, you have
880994f81SBrad Davis# to choose different spool directories (the "sd" capability below),
980994f81SBrad Davis# otherwise you will greatly confuse lpd.
1080994f81SBrad Davis#
1180994f81SBrad Davis# For some advanced printing, have a look at the "apsfilter" package.
1280994f81SBrad Davis# It plugs into the lpd system, allowing you to print a variety of
1380994f81SBrad Davis# different file types by converting everything to PostScript(tm)
1480994f81SBrad Davis# format.  For more information about apsfilter visit
1580994f81SBrad Davis#
1680994f81SBrad Davis#	     http://www.apsfilter.org/
1780994f81SBrad Davis#
1880994f81SBrad Davis# If you don't have a PostScript(tm) printer, don't panic, but do
1980994f81SBrad Davis# also install the latest "ghostscript" package for best printer support.
2080994f81SBrad Davis#
2180994f81SBrad Davis# Do also refer to the "printing" section of the handbook.
2280994f81SBrad Davis#
23*c1a14887SCeri Davies#	https://docs.freebsd.org/en/books/handbook/printing/
2480994f81SBrad Davis#
2580994f81SBrad Davis# A local copy can be found under
2680994f81SBrad Davis#
2780994f81SBrad Davis#	/usr/share/doc/handbook/handbook.{html,latin1}.
2880994f81SBrad Davis#
2980994f81SBrad Davis# Banner pages are now suppressed by default.  Remove the :sh: capability
3080994f81SBrad Davis# to turn them back on.
3180994f81SBrad Davis#
3280994f81SBrad Davis#lp|local line printer:\
3380994f81SBrad Davis#	:sh:\
3480994f81SBrad Davis#	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
3580994f81SBrad Davis#
3680994f81SBrad Davis# Sample remote printer.  The physical printer is on machine "lphost".
3780994f81SBrad Davis# You can perform any kind of local filtering directly.  If you need
3880994f81SBrad Davis# local filters (e.g. LF -> CR-LF conversion for HP printers), create
3980994f81SBrad Davis# a filter script that sends the proper escape sequence to the printer
4080994f81SBrad Davis# and then concatenates stdin to stdout.
4180994f81SBrad Davis#
4280994f81SBrad Davis#remote|sample remote printer:\
4380994f81SBrad Davis#	:sh:\
4480994f81SBrad Davis#	:rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:\
4580994f81SBrad Davis#	:if=/usr/local/libexec/if-script:
4680994f81SBrad Davis#
4780994f81SBrad Davis# Simple Russian printer with hardware CP866 character set, output filter
4880994f81SBrad Davis# used for KOI8-R -> CP866 conversion
4980994f81SBrad Davis#
5080994f81SBrad Davis#lp|Russian local line printer:\
5180994f81SBrad Davis#	:sh:of=/usr/libexec/lpr/ru/koi2alt:\
5280994f81SBrad Davis#	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
53