Subject: Re: Some Help Debugging lpd with MacOS 9 printing.
To: Henry B. Hotz <hotz@jpl.nasa.gov>
From: Roger Fischer <rogerf1@mac.com>
List: port-mac68k
Date: 10/26/2001 18:30:27
Looks like you got it all working, but here's what I did.

I've got my Epson Stylus Color 800 connected to my Unix box.
Since I've got Netatalk running, I setup papd on my unix box.
papd shares my unix printer on the network as an appletalk printer.

On MacOS It shows up in the Chooser when I click the Laserwriter icon.

The /etc/atalk/papd.conf file states the name of the printer to share on the
network, and then pipes it to my the unix printer.  I think I got the ppd file
from adobe's web site.  I can't remember right now.
- roger

--
#/etc/atalk/papd.conf
stc800_360:\
         :pr=|/usr/bin/lpr -Pstc800_360:\
         :op=admin:\
         :pd=/etc/atalk/EpsonStylusColor800.ppd:



At 9:55 AM -0700 10/26/01, Henry B. Hotz wrote:
>OK, let me try to clarify.
>
>At 9:11 PM -0500 10/25/01, Bob Nestor wrote:
>>On 10/25/01 7:58 PM, Henry B. Hotz (hotz@jpl.nasa.gov) wrote:
>>
>>>I create a desktop printer under OS9 with the desktop printer
>>>utility;  tell it that it's an lpr printer with queue RAW at the
>>>right IP address.  I've done this with HP JetDirect interfaces and it
>>>works.  I've done this with Solaris 2.5 and it doesn't because it
>>>doesn't know it's a Postscript file instead of a text file, but it's
>>>OK otherwise.
>>>
>>>In this case the Mac opens the connection, sends 6 bytes of data and
>>>the NetBSD server closes the connection.  No print job log, no
>>>nothing.
>>
>>I'm confused about what you're trying to do, probably because I have
>>something working.
>>
>>My printer has an ethernet interface and I've given it a static IP
>>address.  My NetBSD system has /etc/printcap set up to handle both text
>>and postscript files and lpr spools files to the printer successfully.
>>
>>Under OS8x, OS9x and OSX I've used the Printer Desktop Utility to create
>>a Desktop printer which accesses the printer via it's static IP 
>>address. All versions of MacOS can successfully print to the 
>>printer.  I've done
>>the same thing with Windows-95/98 and it also works.
>
>In my case I have a printer connected directly to a NetBSD machine. 
>I didn't want to pay the extra $200 for a network interface. 
>(That's what the NetBSD PC cost a couple of years ago.)  Since MacOS 
>9 is supposed to support the lpr protocol and NetBSD likewise it 
>seemed natural to try to make them talk that way.  Why install an 
>extra package (that was pretty recalcitrant under Solaris the last 
>time I used it)?
>
>What I discovered when I tried the lpr approach was that lpd hangs 
>up the connection before anything happens.  How do I dump the 
>pitiful little data that is exchanged -- or otherwise debug what 
>happens? This failure happens so quickly that it must not be very 
>complicated.
>
>In fact maybe I should compile lpd with debugging on and run it from 
>gdb.  I'm going to need to look at the lpr protocol sometime, I 
>suspect.
>--
>The opinions expressed in this message are mine,
>not those of Caltech, JPL, NASA, or the US Government.
>Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu