Subject: Re: LaserWriter and lpr [solved]
To: None <ppat@micron.net>
From: Shigeki Uno <shigeki@mediawars.ne.jp>
List: port-mac68k
Date: 03/22/2001 03:49:31
Pat Plummer <ppat@micron.net> writes:

> Shigeki:
> 
> Can I please see your printcap file? I have an HP DeskWriter 540 that I'd 
> like to get working with netbsd, but have so far been unsuccessful. Any words 
> of wisdom?
> 
> Pat 
> 
> On Monday 19 March 2001 09:54, Shigeki Uno wrote:
> > Philip Brodd <pbrodd@blue.weeg.uiowa.edu> writes:
> > > So now I have the printer working and serving a few other machines on my
> > > home network.  The only problem now is that it is s-l-o-w.  It takes
> > > several minutes to even begin printing a short Word document.
> > >
> > > Is the IIcx I have running the queue probably the bottleneck here?  It
> > > has 32MB RAM and is running 1.5;  would more RAM or maybe a 1.4 kernel
> > > speed things up significantly, or do I need to bite the bullet and
> > > actually spend money for a faster machine? :^)
> >
> > i have HEWLETT PACKARD DeskWriter 310 and it works well with my netbsd
> > box. mine is LC520 with 36mb memory and 1.5R(-current) running.
> >
> > when i type command _lpr filename_, printer starts to print right away.
> >
> > # i don't know DeskWriter 310 (this was very cheap one when i bought it.)
> >   had been sold in The US.
> 
> -- 
> Embrace the penguin...
> Powered by Yellow Dog Linux
> --
> Pat Plummer.MD
> ppat@micron.net
> ppat@mac.com

though i said "it works well with ...", it works well when i print plain
text. just plain text. and i'm still trying to print ghostscript file.

here's what i did:
(1) change 9600 to 57600 with booter on MacOS.

(2) add the following line to /etc/rc.local

  stty -f /dev/tty01 raw 57600 crtscts opost onlcr

(3) /etc/printcap

lp0|lp|HP DeskWriter 310\
        :lp=/dev/tty01:sd=/var/spool/lpd:lf=/var/log/lpd-errs:\
        :sh:mx#0:\
        :sh:pl#66:pw#80:if:/usr/libexec/lpr/lpf:
 

(4) /usr/libexec/lpr/lpf prevent line from being like stair-stepping.

    line1
         line2
              line3                


(5) /usr/pkgsrc/print/magicfilter seems to support lots of filters.
    i'm never familira with it.

# you can learn more from the following site.
http://www.mclink.it/personal/MG2508/nbsdeng/netbsd.html

the above site is helpful site for NetBSD users and chapter6 <Printing>
is suitable for you. 

hope this helps.
-- 
Shigeki Uno <mailto:shigeki@mediawars.ne.jp>