155714Skris
255714Skris#
355714Skris# This enables a simple local "raw" printer, hooked up to the first
455714Skris# parallel port.  No kind of filtering is done, so everything you pass
555714Skris# to the "lpr" command will be printed unmodified.
655714Skris#
755714Skris# Remember, for further print queues you're going to add, you have
8296465Sdelphij# to choose different spool directories (the "sd" capability below),
955714Skris# otherwise you will greatly confuse lpd.
1055714Skris#
1155714Skris# For some advanced printing, have a look at the "apsfilter" package.
1255714Skris# It plugs into the lpd system, allowing you to print a variety of
1355714Skris# different file types by converting everything to PostScript(tm)
1455714Skris# format.  For more information about apsfilter visit
15296465Sdelphij#
1655714Skris#	     http://www.apsfilter.org/
1755714Skris#
1855714Skris# If you don't have a PostScript(tm) printer, don't panic, but do
1955714Skris# also install the latest "ghostscript" package for best printer support.
2055714Skris#
2155714Skris# Do also refer to the "printing" section of the handbook.
22296465Sdelphij#
2355714Skris#	https://docs.freebsd.org/en/books/handbook/printing/
2455714Skris#
2555714Skris# A local copy can be found under
2655714Skris#
2755714Skris#	/usr/share/doc/handbook/handbook.{html,latin1}.
2855714Skris#
2955714Skris# Banner pages are now suppressed by default.  Remove the :sh: capability
3055714Skris# to turn them back on.
3155714Skris#
3255714Skris#lp|local line printer:\
3355714Skris#	:sh:\
3455714Skris#	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
3555714Skris#
3655714Skris# Sample remote printer.  The physical printer is on machine "lphost".
37296465Sdelphij# You can perform any kind of local filtering directly.  If you need
3855714Skris# local filters (e.g. LF -> CR-LF conversion for HP printers), create
3955714Skris# a filter script that sends the proper escape sequence to the printer
40296465Sdelphij# and then concatenates stdin to stdout.
4155714Skris#
4255714Skris#remote|sample remote printer:\
4355714Skris#	:sh:\
4455714Skris#	:rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:\
4555714Skris#	:if=/usr/local/libexec/if-script:
4655714Skris#
4755714Skris# Simple Russian printer with hardware CP866 character set, output filter
4855714Skris# used for KOI8-R -> CP866 conversion
4955714Skris#
5055714Skris#lp|Russian local line printer:\
5155714Skris#	:sh:of=/usr/libexec/lpr/ru/koi2alt:\
52296465Sdelphij#	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
5355714Skris