Subject: [netatalk-admins] Printing to an AppleTalk printer

From: SEBESTYEN Zoltan <[email-masked]>
Date: Mon, 30 Mar 1998 14:15:07 +0200 (MET DST)

Hi,

 Thanks for all the pieces of advice you've sent. I managed to set up
netatalk as a MAC fileserver. Now here comes my problem with printing. I
found a HOWTO about printing on AppleTalk and succeed to print from my
UNIX and also the MACs know about the UNIX box's printer spooler, it
appears in the chooser's window. The problem comes when I try to print
from a Mac via this spooler. Papd says it can't find some lock file and 
then stops the job. Hereby I attach the necessary config files(printcap
and papd.conf) and the error logfile.

 Another quesion: Can be a printing job cancelled while being processed?

	Thanks,

				Zoltan Sebestyen 
 
#	@(#)printcap	5.3 (Berkeley) 6/30/90
# $Id: printcap,v 1.5 1996/10/13 16:52:33 joerg Exp $

#
# This enables a simple local "raw" printer, hooked up to the first
# parallel port.  No kind of filtering is done, so everything you
# pass to the "lpr" command will be printed unmodified.
#
# Remember, for further print queues you're going to add, you have to
# chose different spool directories (the "sd" capability below),
# otherwise you will greatly confuse lpd.
#
# For some advanced printing, have a look at the "apsfilter" package.
# It plugs into the lpd system, allowing you to print a variety of
# different file types by converting everything to PostScript(tm)
# format.  If you don't have a PostScript(tm) printer, don't panic,
# but do also install the "ghostscript" package.
#
# Do also refer to section 7 (Printing) of the handbook.  A local copy
# can be found under /usr/share/doc/handbook/handbook.{html,latin1}.
#
lp|local line printer:\
	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
#
# Sample remote printer.  The physical printer is on machine "lphost".
# NB: you cannot perform any kind of local filtering directly.  If
# you need local filters (e.g. LF -> CR-LF conversion for HP printers),
# create a filter script that recursively calls lpd with another -P
# argument after filtering.
#
#remote|sample remote printer:\
#	:rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:
laser|FBSD LaserWriter|LaserWriter 16/600 PS:\
	:sd=/var/spool/output/lpd:\
	:lp=/dev/null:\
	:pl#63:pw#85:\
	:mx#0:\
	:sh:sf:\
	:lf=/var/log/lpd-errs:\
        :if=/usr/local/libexec/psf:\
        :of=/usr/local/libexec/psf:
# Attributes are:
#
#	Name Type Default	Description
#	pd   str  ".ppd"	Pathname to ppd file.
#	pr   str  "lp"		LPD printer name.
#	op   str  "operator"	Operator name, for LPD spooling.
#
# Some examples:
#
#	On many systems (notably not Solaris), no papd.conf is required,
#	since papd shares the same defaults as lpd.
#
#	A simple example:
#
#		terminator:\
#			:pr=lp:op=wes:\
#			:pd=/usr/share/lib/ppd/HPLJ_4M.PPD:
#
#	Note also that papd.conf can list several printers.
#Linotronic:\
#	:op=root:pr=\
#	:pd=/usr/local/etc/lh330__1.ppd
#Laserwriter:\
#	:op=root:pr=lp:\
#	:pd=/usr/share/lib/ppd/aplwgri2.ppd
FBSD LaserWriter:\
	:pr=lp:
Mar 19 06:09:55 myname lpd[100]: restarted
Mar 19 06:24:24 myname lpd[99]: restarted
Mar 19 07:16:53 vizio lpd[99]: restarted
Mar 19 14:17:04 vizio lpd[99]: restarted
Mar 19 15:31:29 vizio lpd[99]: restarted
Mar 19 21:17:06 vizio lpd[99]: restarted
Mar 25 02:27:01 vizio lpd[99]: restarted
Mar 25 02:35:57 proserver lpd[105]: restarted
Mar 25 02:36:17 proserver papd[150]: restart (1.4b2)
Mar 25 02:36:25 proserver papd[150]: can't register proserver:LaserWriter@*
Mar 25 02:59:39 proserver lpd[105]: restarted
Mar 25 03:06:22 proserver papd[216]: restart (1.4b2)
Mar 25 03:06:30 proserver papd[216]: can't register proserver:LaserWriter@*
Mar 25 03:09:03 proserver papd[263]: restart (1.4b2)
Mar 25 03:09:09 proserver papd[263]: register proserver:LaserWriter@*
Mar 25 03:14:47 proserver papd[263]: can't unregister proserver:LaserWriter@* 
Mar 25 03:15:56 proserver papd[309]: restart (1.4b2)
Mar 25 03:16:02 proserver papd[309]: register proserver:LaserWriter@*
Mar 25 03:18:23 proserver lpd[105]: restarted
Mar 25 03:20:07 proserver papd[195]: restart (1.4b2)
Mar 25 03:20:15 proserver papd[195]: can't register proserver:LaserWriter@*
Mar 25 03:24:15 proserver papd[231]: restart (1.4b2)
Mar 25 03:24:23 proserver papd[231]: can't register proserver:LaserWriter@*
Mar 25 03:24:58 proserver papd[251]: restart (1.4b2)
Mar 25 03:25:06 proserver papd[251]: can't register proserver:LaserWriter@*
Mar 25 03:25:55 proserver papd[278]: restart (1.4b2)
Mar 25 03:27:15 proserver papd[317]: restart (1.4b2)
Mar 25 03:27:23 proserver papd[317]: can't register proserver:LaserWriter@*
Mar 25 03:35:55 proserver papd[428]: restart (1.4b2)
Mar 25 03:36:01 proserver papd[428]: register proserver:LaserWriter@*
Mar 25 03:40:04 proserver lpd[105]: restarted
Mar 25 03:40:50 proserver papd[150]: restart (1.4b2)
Mar 25 03:40:56 proserver papd[150]: register proserver:LaserWriter@*
Mar 28 02:15:24 proserver lpd[105]: restarted
Mar 28 02:16:10 proserver papd[154]: restart (1.4b2)
Mar 28 02:16:16 proserver papd[154]: register Laserwriter:LaserWriter@*
Mar 28 02:16:16 proserver papd[154]: No such printer: 	
Mar 28 02:16:16 proserver papd[154]: printcap problem: 	
Mar 28 02:16:22 proserver papd[154]: register Linotronic:LaserWriter@*
Mar 28 02:21:16 proserver papd[154]: can't unregister Laserwriter:LaserWriter@* 
Mar 28 02:30:05 proserver papd[401]: restart (1.4b2)
Mar 28 02:30:11 proserver papd[401]: register Laserwriter:LaserWriter@*
Mar 28 02:30:11 proserver papd[401]: No such printer: 	
Mar 28 02:30:11 proserver papd[401]: printcap problem: 	
Mar 28 02:30:17 proserver papd[401]: register Linotronic:LaserWriter@*
Mar 28 06:15:48 proserver lpd[105]: restarted
Mar 28 06:16:34 proserver papd[150]: restart (1.4b2)
Mar 28 06:16:40 proserver papd[150]: register Laserwriter:LaserWriter@*
Mar 28 06:16:40 proserver papd[150]: No such printer: 	
Mar 28 06:16:40 proserver papd[150]: printcap problem: 	
Mar 28 06:16:46 proserver papd[150]: register Linotronic:LaserWriter@*
Mar 28 06:38:29 proserver papd[150]: unregister Laserwriter:LaserWriter@* 
Mar 28 06:38:29 proserver papd[150]: unregister Linotronic:LaserWriter@* 
Mar 28 06:39:26 proserver papd[493]: restart (1.4b2)
Mar 28 06:39:32 proserver papd[493]: register Laserwriter:LaserWriter@*
Mar 28 06:39:32 proserver papd[493]: No such printer: 	
Mar 28 06:39:32 proserver papd[493]: printcap problem: 	
Mar 28 06:39:38 proserver papd[493]: register Linotronic:LaserWriter@*
Mar 28 06:42:21 proserver lpd[104]: restarted
Mar 28 06:43:07 proserver papd[149]: restart (1.4b2)
Mar 28 06:43:13 proserver papd[149]: register Laserwriter:LaserWriter@*
Mar 28 06:43:13 proserver papd[149]: No such printer: 	
Mar 28 06:43:13 proserver papd[149]: printcap problem: 	
Mar 28 06:43:19 proserver papd[149]: register Linotronic:LaserWriter@*
Mar 28 06:58:05 proserver papd[149]: unregister Laserwriter:LaserWriter@* 
Mar 28 06:58:05 proserver papd[149]: unregister Linotronic:LaserWriter@* 
Mar 28 06:58:58 proserver papd[330]: restart (1.4b2)
Mar 28 06:59:04 proserver papd[330]: register Laserwriter:LaserWriter@*
Mar 28 06:59:04 proserver papd[330]: No such printer: 	
Mar 28 06:59:04 proserver papd[330]: printcap problem: 	
Mar 28 06:59:10 proserver papd[330]: register Linotronic:LaserWriter@*
Mar 28 07:19:54 proserver papd[512]: restart (1.4b2)
Mar 28 07:19:54 proserver papd[512]: can't register Laserwriter:LaserWriter@*
Mar 28 07:27:22 proserver papd[568]: restart (1.4b2)
Mar 28 07:47:24 proserver papd[645]: restart (1.4b2)
Mar 28 07:51:35 proserver papd[718]: restart (1.4b2)
Mar 28 07:55:03 proserver psf[735]: starting for root
Mar 28 07:55:03 proserver psf[735]: PostScript
Mar 28 07:55:03 proserver psf[735]: done
Mar 28 07:56:43 proserver psf[747]: starting for root
Mar 28 07:56:43 proserver psf[747]: PostScript
Mar 28 07:56:43 proserver psf[747]: done
Mar 28 07:58:45 proserver papd[770]: restart (1.4b2)
Mar 28 07:58:51 proserver papd[770]: register FBSD LaserWriter:LaserWriter@*
Mar 28 08:02:50 proserver papd[770]: child 780 for "FBSD LaserWriter" from 133.163
Mar 28 08:02:50 proserver papd[780]: lp_init: lock: No such file or directory
Mar 28 08:02:50 proserver papd[780]: lp_open failed
Mar 28 08:02:53 proserver papd[770]: child 780 done
Mar 28 08:03:05 proserver papd[770]: child 781 for "FBSD LaserWriter" from 133.163
Mar 28 08:03:05 proserver papd[781]: lp_init: lock: No such file or directory
Mar 28 08:03:05 proserver papd[781]: lp_open failed
Mar 28 08:03:07 proserver papd[770]: child 781 done
Mar 28 08:03:45 proserver papd[770]: child 783 for "FBSD LaserWriter" from 133.163
Mar 28 08:03:45 proserver papd[783]: lp_init: lock: No such file or directory
Mar 28 08:03:45 proserver papd[783]: lp_open failed
Mar 28 08:04:01 proserver papd[770]: child 783 done
Mar 28 08:11:50 proserver papd[770]: child 821 for "FBSD LaserWriter" from 133.163
Mar 28 08:11:50 proserver papd[821]: lp_init: lock: No such file or directory
Mar 28 08:11:50 proserver papd[821]: lp_open failed
Mar 28 08:11:56 proserver papd[770]: child 821 done
Mar 28 08:12:51 proserver papd[770]: child 829 for "FBSD LaserWriter" from 133.163
Mar 28 08:12:51 proserver papd[829]: lp_init: lock: No such file or directory
Mar 28 08:12:51 proserver papd[829]: lp_open failed
Mar 28 08:12:57 proserver papd[770]: child 829 done
Mar 28 08:13:23 proserver papd[770]: child 836 for "FBSD LaserWriter" from 133.163
Mar 28 08:13:23 proserver papd[836]: lp_init: lock: No such file or directory
Mar 28 08:13:23 proserver papd[836]: lp_open failed
Mar 28 08:13:42 proserver papd[770]: child 836 done
Mar 28 08:15:10 proserver papd[770]: child 848 for "FBSD LaserWriter" from 133.163
Mar 28 08:15:10 proserver papd[848]: lp_init: lock: No such file or directory
Mar 28 08:15:10 proserver papd[848]: lp_open failed
Mar 28 08:15:16 proserver papd[770]: child 848 done
Mar 28 08:18:24 proserver papd[770]: child 858 for "FBSD LaserWriter" from 133.163
Mar 28 08:18:24 proserver papd[858]: lp_init: lock: No such file or directory
Mar 28 08:18:24 proserver papd[858]: lp_open failed
Mar 28 08:18:30 proserver papd[770]: child 858 done
Mar 28 08:19:24 proserver papd[770]: child 868 for "FBSD LaserWriter" from 133.163
Mar 28 08:19:24 proserver papd[868]: lp_init: lock: No such file or directory
Mar 28 08:19:24 proserver papd[868]: lp_open failed
Mar 28 08:19:30 proserver papd[770]: child 868 done
Mar 28 08:20:01 proserver papd[770]: unregister FBSD LaserWriter:LaserWriter@* 
Mar 28 08:20:50 proserver papd[896]: restart (1.4b2)
Mar 28 08:20:56 proserver papd[896]: register FBSD LaserWriter:LaserWriter@*
Mar 28 08:22:41 proserver papd[896]: child 900 for "FBSD LaserWriter" from 133.163
Mar 28 08:22:41 proserver papd[900]: lp_init: lock: No such file or directory
Mar 28 08:22:41 proserver papd[900]: lp_open failed
Mar 28 08:22:45 proserver papd[896]: child 900 done
Mar 28 08:25:02 proserver papd[896]: child 904 for "FBSD LaserWriter" from 133.163
Mar 28 08:25:02 proserver papd[904]: lp_init: lock: No such file or directory
Mar 28 08:25:02 proserver papd[904]: lp_open failed
Mar 28 08:25:27 proserver papd[896]: child 904 done
Mar 28 08:27:57 proserver papd[896]: child 912 for "FBSD LaserWriter" from 133.163
Mar 28 08:27:57 proserver papd[912]: lp_init: lock: No such file or directory
Mar 28 08:27:57 proserver papd[912]: lp_open failed
Mar 28 08:28:27 proserver papd[896]: child 912 killed with 1
Mar 28 08:29:53 proserver papd[896]: child 915 for "FBSD LaserWriter" from 133.163
Mar 28 08:29:53 proserver papd[915]: Bad ATP request!
Mar 28 08:29:53 proserver papd[915]: lp_init: lock: No such file or directory
Mar 28 08:29:53 proserver papd[915]: lp_open failed
Mar 28 08:29:56 proserver papd[915]: Bad ATP request!
Mar 28 08:30:38 proserver last message repeated 4 times