Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!noc.netcom.net!netcom.com!csus.edu!news.ucdavis.edu!wongjd From: wongjd@cs.ucdavis.edu (Joseph D. Wong) Newsgroups: comp.unix.bsd.bsdi.misc Subject: BSDI2.0 printcap??? Date: 30 Jun 1995 23:09:33 GMT Organization: University of California, Davis Lines: 122 Message-ID: <3t207d$jsl@mark.ucdavis.edu> NNTP-Posting-Host: ortega.cs.ucdavis.edu X-Newsreader: TIN [version 1.2 PL2] HELP: I have BSDI2.0 set up and it keeps printing garbage header pages. It prints postscript files fine and ASCII fine after the first burst page. Does anyone know how to fix this problem? You could save us a lot of paper (and trees) because right now there is no way to suppress the header. Has anyone gotten BSDI2.0 to work with an HP LaserJet4MP printer? Can you please send me a copy of your printcap or printer configuration? Included below is a copy of printcap file in /etc/printcap. Thanks in advance for any help you can provide. ________ ______ ______ /*/ /*/ /*/ /*/ <o> <o> __ /*/ /*/ /*/ /*/== o /*/_/*/ /*/_/*/ /*/___ \___/ jdwong@ca.sandia.gov ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # BSDI $Id: printcap,v 2.1 1995/02/03 05:54:23 polk Exp $ # # from @(#)printcap 8.1 (Berkeley) 6/9/93 # # Capability Highlights [for a complete description see printcap(5)] # # Name Type Default Description # af str NULL accounting file # br num none baud rate # hw bool false hardwired serial port # lf str /dev/console error logging file name # lp str /dev/lp device name to open for output # ms str NULL mode string # sd str /var/spool/lpd spool directory # sh bool false suppress burst header page # # Be sure to adjust these /etc/printcap entries to reflect your hardware # configuration. Common things that need adjusting are: ``lp'' (defines # what device your printer is attached to), ``br'' (defines what baud rate # to use, only for serial printers), ``hw'' (tells lpr that it's a hardwired # printer), and ``ms'' (the stty(1)-style mode string for adjusting the stty # settings of serial devices; e.g., to use hardware flow control add # ``cts_oflow,rts_iflow'' to the mode string). # # See stty(1) and com(4) for more information on these flags. # # Sample dumb line printer on the parallel port (no baud rate) # To print plain text: lpr # To print man pages: man 5 printcap | lpr # #lp|local line printer:\ # :lp=/dev/lp0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:\ # :if=/usr/libexec/lpr/lpf: # # HP LaserJet II on the parallel port (no baud rate) # To print plain text: lpr # To print DVI files: lpr -d # To print PostScript: lpr -v # Examples: # man 5 printcap | lpr # groff -Tdvi -mdvi ... | lpr -d # lpr -v file.ps # lj|HP LaserJet II:\ :sh=true:lp=/dev/lp0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:\ :if=/usr/libexec/lpr/txt2jep-filter:sb=true:\ :df=/usr/libexec/lpr/dvi2jep-filter:\ :vf=/usr/libexec/lpr/ps2jep-filter: # # # PostScript printer on tty01 at 9600 baud # To print plain text: lpr # To print PostScript: lpr # To print DVI files: lpr -d # Examples: # man 5 printcap | lpr # groff -Tps -mps ... | lpr # lpr -d file.dvi # # :ms=raw,opost,onlcr,ixon,igncr,cstopb,-echok:\ #ps|PostScript|PostScript parallel printer:\ # :lp=/dev/lp0:sd=/var/spool/lpd:sb=true:\ # :lf=/var/log/lpd-errs:af=/dev/null:\ # :if=/usr/contrib/lib/lprps/psif:\ # :of=/usr/contrib/lib/lprps/psof:\ # :df=/usr/libexec/lpr/dvi2ps-filter: # The /usr/contrib/lib/lprps/psif-* filters, used by lprps, # reverse the pages. If you do not want the pages reversed # then edit those scripts and remove the call to `psrev'. # If your printer stacks face up then add :hl: to print the # banner page at the end of the job. # For conversions from PostScript to other devices use ghostscript # (for help type: /usr/contrib/bin/gs -h). This example converts a # PostScript file to a ppmraw image: # # { echo showpage; echo quit; } | # gs -sDEVICE=ppmraw -r90x90 -sOutputFile=output.ppm input.ps # # Ghostscript currently supports the following output devices: # x11 bj10e deskjet dfaxhigh dfaxlow djet500 djet500c epson # eps9high epsonc laserjet la50 la75 lbp8 ln03 lj250 ljet2p ljet3 # ljetplus necp6 paintjet pjetxl r4081 tek4696 bit gifmono gif8 # pcxmono pcx16 pcx256 pbm pbmraw pgm pgmraw ppm ppmraw # # See /usr/libexec/lpr/ps2jep-filter for an example. # # Remote printer ``lp'' on ``lphost'' # #rp|remote printer:\ # :lp=:rm=lphost:rp=lp:sd=/var/spool/lpd:lf=/var/log/lpd-errs: