Subject: Re: [netatalk-admins] unknown printer
From: Jan Barte (yann@plato.uni-paderborn.de)
Date: Fri Oct 02 1998 - 03:34:51 EDT
Patrick> I have a strange problem which is probably caused by a simple
Patrick> mistake: I would like to set up printing from Linux to an
Patrick> Apple Laserwriter via "lpr". I have created an entry in
Patrick> /etc/printcap but Linux tells me: "lpr: apple: unknown
Patrick> printer".
Patrick> The weird thing is that I am able to print manually via: cat
Patrick> testfile | /usr/local/atalk/etc/filters/ofpap
Patrick> So it looks like the netatalk part is working but not the
Patrick> integration into Linux.
Patrick> The printcap entry looks like this: apple:\
Patrick> :sd=/usr/spool/apple:\ :lp=/dev/null:\
Patrick> :of=/usr/local/atalk/etc/filters/ofpap:\ :sh:sf:
Patrick> Of course, /usr/spool/apple exists and ofpap and psf are
Patrick> where they are supposed to be. When I try "lpr -Papple
Patrick> testfile", I get the message "lpr: apple: unknown printer".
Patrick> What did I wrong?
You should use the if (InputFilter) for the communication with
the printer. Read the manuals of your print spooler software.
The of (OutputFilter) is for banner printing or accounting, not for
sending the print file to the printer.
Maybe the lines following the printer name (apple) have to be inserted by
a TAB. Read the spooler documentation!
Ciao Jan
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:33:23 EST