Re: Print spooling with netatalk


Subject: Re: Print spooling with netatalk
From: Moritz Kaiser (ariser@fs.tum.de)
Date: Thu May 11 2000 - 16:44:56 EDT


On Thu, 11 May 2000, Dave Scheltema wrote:

> Netatalk admins-
> I have come across a MAC laser writer 360 and have been almost
> successfully in the setup. The printer is on the parallel port and its
> known as lp to my linux system. I have tested printing text files and
> such to the printer from the box and it works quite nicely. In trying
> to connected it in with netatalk I receive errors that are mailed to me
> and my print job ultimately fails. Here is my papd.conf
>
> Apple Laser test:\
> :pr=lp:op=root:\
> :pd=/var/ppd/Laser Writer Select 360.PPD:
According to my (sad) experiences with papd.conf:
Use only one line per option!
And, _DON'T_ use filenames with spaces in it. Linux itself will support
these, but not every daemon or program will so.
Also you should use a pipe instead of a printer definition. It means
instead of relying on the capabilities of papd of printing to the correct
printcap entry, you should pipe the output to the generic printing command
of your local printing system. In most cases it will be
"lpr -P<printcap_entry>" Where printcap_entry would be "lp" in your case.

8<---------------------------------------
Apple Laser test:\
       :pr=|lpr -Plp:\
       :op=root:\
       :pd=/var/ppd/Laser_Writer_Select_360.PPD:
8<---------------------------------------
Then you will have to rename the PPD file:

root@host # mv "/var/ppd/Laser Writer Select 360.PPD" /var/ppd/Laser_...

unfortunately, my line was to short, that's why...
If there are till any problems, check whether "papd" is running.

root@host # ps aux | grep papd

If papd is running you should be able to see an output like this:

root 2379 0.0 0.6 996 540 ? S 19:06 0:00 /usr/sbin/papd
root 3605 0.0 0.4 848 336 p0 S 22:21 0:00 grep papd

The first line is important. If there's no papd running, something went
wrong at boot time. you have to check /var/log/syslog and
/var/log/messages for any problems encountered.

I hope this will help you.
BTW, next time tell us about your linux printing system (lpd / lprng / plp
and so on).

>
> I of course have the ppd file in /var/ppd and it is called Laser Writer
> Select 360.PPD so all seems to be fine to me so far.
> When I go to a mac I have to setup the printer known as Apple Laser
> test, the mac detects that I need a PS file and it suggests that I use
> the Laser Writer Select 360.PPD file. I am a little doubtful that this
> is what should happen, since it is using the file on the macs hard
> drive. Isn't the .ppd file suppose to be fed to the mac? Continuing
> along with the events... I make a quick NotePad document that says "test
> test" and I send it to the Apple Laser test printer. The job seems to
> be sent over to the printer, but opun checking lpq no file was added to
> the lpd queue. After a few more seconds I get a mail message that says:
>
> Your printer job (Note Pad)
> was not printed because it was not linked to the original file

My interpreation is: a job was initialized, but there was no file anymore
when lpq tried to spool it to /dev/lp. Problems like this may disappear
when using a pipe.

>
> I am pretty sure that I am doing something wrong with the setup of
> this, but I am not sure where I went astray. What does this mail
> message mean? It seems to say that the job is not being linked, but how
> would I change this? What does it mean by being linked? Its not like a
> ln -s in linux is it? Thanks again for the help!
ln -s has nothing to do with your problem. ln -s produces a symbolic link
to a file or a directory. This is like a second name for a file (but not
really ;).

Greetings,
Moritz

__________________________________________________________
Moritz Kaiser
Studentische Vertretung, Technische Universitaet Muenchen
Europe / Germany



This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:30:42 EST