Subject: Re: /usr/share/doc?? and Printing to a network printer
To: Frederick Bruckman <fb@enteract.com>
From: cruller <cruller@kc.rr.com>
List: port-mac68k
Date: 04/29/2000 16:28:47
----- Original Message -----
From: "Frederick Bruckman" <fb@enteract.com>
To: "cruller" <cruller@kc.rr.com>
Cc: <port-mac68k@netbsd.org>
Sent: Saturday, April 29, 2000 2:52 PM
Subject: Re: /usr/share/doc?? and Printing to a network printer


> On Mon, 24 Apr 2000, cruller wrote:
>
> > Here is my printcap:
> >
> > lwpro810|lp|PostScript|ps800|AppleLwPro810:\
> > :lp=:\
> > :sp=/var/spool/lwpro810:\
> > :lf=/var/spool/lwpro810/logfile:\
> > :rp=PASSTHRU:\
> > :rm=192.168.101.200:\
> > :sh:\
> > :mx#0:\
> > :if=/usr/libexec/lpd/lpf:
> >
> > The thing spools but when I do: #lpq it says "Warning no daemon present"
> >
> > ldp=yes is in my /etc/rc.conf
> > My host ip address is in /etc/hosts.lpd
> > I've got my printers ethernet mac address  and "lwpro810" in /etc/ethers
> >
> > "#lpc restart all"  tells me no daemon is running under lwpro810.
> >
> > See any thing wrong?
>
> Does /var/spool/lwpro810 exist? When you start "lpd" from the command
> line, does it emit any errors?

yes and no respectively

Someone emailed me about having to have lp= variable equal to something like
/dev/ttys0 or /dev/lp0 ( sorry, that e-mail is at work and I forgot who to
give credit to).  The latter doesn't work since there is no printer parallel
port on a quadra and no lp0 dev in the mac68k port.  I took another route
and made a node in my spool directory.

#mknod /var/spool/lwpro810/null c 2 2

and then set my lp=/var/spool/lwpro810/null

and along the same lines:

I was looking thru my "Running Linux" O'Riely book which had an astericed
item about lp=: .  I'll quote from the book.

"A special case arises where the printer to be addressed is a true network
printer ( that is has its own IP address).  In that instance, the lp
variable assigns the name of a dummy file that is used for setting a
temporary lock on the file when the network printer is in use."

So now it works with a2ps but lp doesn't work.  Probably because I dont have
any thing in my printcap that points to the line printer que in the printer
rp=TEXT

I also didn't have my host name set the same in rc.conf and /etc/hosts which
caused other problems.

Oh and in refence to the first part of my question I figured it out when
reading the a2ps man pages.  All I have to do to read /usr/share/doc files
is to do:

#info lpd or #info a2ps  and you got yourself human readable documents.

Thanks,

Gerald