# # Copyright (c) 1983 Regents of the University of California. # All rights reserved. # # Redistribution and use in source and binary forms are permitted # provided that this notice is preserved and that due credit is given # to the University of California at Berkeley. The name of the University # may not be used to endorse or promote products derived from this # software without specific prior written permission. This software # is provided ``as is'' without express or implied warranty. # # @(#)etc.printcap 5.2 (Berkeley) 5/5/88 # # # To Reload Changes # ------------------ # /etc/rc.d/rc.lpd stop # /etc/rc.d/rc.lpd start # # # Sources # ------- # http://www.iki.fi/~mtr/genscript/ # # # To print postscript files # ------------------------- # lpr /etc/printcap.count.ps # lpr /etc/printcap.tiger.ps # # # # Ghostscript outputting to default printer ( -Plp ) # ------------ # cd /usr/share/ghostscript/7.05/examples/tiger.ps # # gs -dNOPAUSE -sOutputFile=|lpr tiger.ps # gs -dNOPAUSE -sOutputFile=|lpr -Php940c tiger.ps # # gv, gs, ggv # # # nenscript -B -L66 -N -Plpr myprogram.c # # # To print side-by-side # ---------------------- # a2ps -2 /etc/printcap ( with borders ) # a2ps -3 /etc/printcap ( 3 pages per paper with borders ) # a2ps -4 /etc/printcap ( 4 pages per paper with borders ) # enscript -2r /etc/printcap ( no borders ) # # # PostScript <---> PDF # -------------------- # ps2pdf infile.ps outfile.pdf # pdf2ps infile.pdf outfile.ps # # # Permissions # -------------- # chown lp.lp /var/spool/lpd # chmod 700 /var/spool/lpd # # lpc reread # lpc status # # lpstat -p # # checkpc -V -- just show errrors # /var/spool/lpd/lp-log' are 0644, not 0600 # # # Kernel Options # -------------- # CONFIG_PRINTER=m, CONFIG_PARPORT=m, CONFIG_PARPORT_PC=m # # # Modules ( lsmod ) # ------------- # insmod parport # insmod lp # insmod parport_pc # # # 31-Dec-02 amo Clean up file and added magic filter for Epson Stylus800 # 25-Jul-04 amo Added ps2pdf, pdf2ps # # # # #lp:lp=/dev/lp0:sd=/usr/spool/lp0:of=/usr/lib/lpf: lf=/usr/adm/lpd-errs # # Generic printer: # lp:lp=/dev/lp0:sd=/var/spool/lpd:sh # # # # Default Local Epson Color800 printer ( -Plp ) # ------------------------------------ # - 'sbin/printers/stc800' is from magicfilter-2.2.k # lp|Epson800:\ :lp=/dev/lp0:\ :sd=/var/spool/lpd:\ :pw:132:\ :fq:\ :sh:mx#0:\ :if=/usr/local/sbin/printers/stc800:\ :lf=/var/spool/lpd/lp-log: # # # :sd=/var/spool/lpd/%P:\ # # # -- truncates leading characters # :if=/usr/local/sbin/printers/stylus_color_720dpi:\ # :if=/usr/local/sbin/printers/stylus800:\ # # :if=/usr/local/sbin/printers/stylus_color_360dpi:\ - ejects only # :if=/usr/local/bin/magicfilter:\ # :if=/usr/local/bin/dj550c-filter: # # # # Remote Printer Server (LP_ServerIP) directly connected to Epson Color800 # ------------------------------------------------------------------------ # # lp|Epson800:\ # :sd=/var/spool/lpd/lp:\ # :rm=LP_ServerIP: # # # :rm=192.168.1.1: # # # End of file