![]() |
|
|
|
|
Sample lpd.config File ####################################################################################### # Debugging mode may be toggled from the menu, but sometimes we want # to debug the config so debugging may also be toggled here using # the DEBUG command. # # DEBUG # turn it on.... # # The NOACTION flag turns off printing. Files are still spooled, but not deleted which # is useful for debugging, particularly of the control file. Note that lpDaemon does not # translated line-feeds to carriage returns when spooling files, but does recognise the # end of line when printing so when examining the control file most Mac text editors # will show the file as on long line with little boxes where the end of line should be. # # NOACTION # ####################################################################################### # lpDaemon sends e-mail to the owner of files when errors occur, and to an administrator # when the log file is cleared. If your setup does not support BSD sendmail uncomment # the following # NOMAIL # ####################################################################################### # If a printer is postscript lpDaemon attempts to query the printer before and after # printing a file for the number of pages printed. The differences is recorded # in the log file. Uncomment the following to stop that if it causes troubles. # NOACNT # ####################################################################################### # lpDaemon looks in the Laser Writer driver file for the PAP resources as well as the # selected printer. The default is to look for a file called "LaserWriter" in the # System Folder under < sys 7 or in the Extensions folder >= 7. If your laser writer # driver is called something other than LaserWriter uncomment the following and change # the name. # # LASERWRITER "LaserWriter" # the default is LaserWriter # ####################################################################################### # RFC1179 tells us that the format for print control file names is : # cfANNNxxxxx # where NNN is a3 digit job number and xxxxx is the name of the host that is # printing. lpDaemon looks for file with the cfA prefix in it's spool folder when # looking for print jobs. Unfortunately not all systems seem to follow this convention # so it may be over written here. # # CTLFIL cfA # the default is cfA # ####################################################################################### # The ADMIN defines an account that will be mailed when the # log-file is cleared. # # ADMIN casper@mips.cs.murdoch.edu.au # ####################################################################################### # Each PRINTER defines a name by which a printer is known and some # information about the printer. If a name contains spaces the # name string should be quoted with the " # # The syntax is : # PRINTER <name1> PAP|SERIAL <name2> [baud stop parity bits] [POSTSCRIPT] # where : # <name1> is the name by which the printer is addressed from the unix host # this would be the rn entry in the printcap file # PAP|SERIAL defines whether the printer is connected by AppleTalk or # a serial connection # <name2> is the NBP name, or the name of the serial driver # [baud stop parity bits] is only for SERIAL printers. Vaild entries : # baud: # 300, 600, 1200, 1800, 2400, 3600 # 4800, 7200, 9600, 19200, 57600 # stop: # 10: 1 stop bits # 15: 1 & half stop bits # 20: 2 stop bits # parity: # N: no parity # O: odd parity # E: even parity # bits: # 5, 6, 7, 8 # # POSTSCRIPT is used only for postscript printers, when used lpDaemon will # check for %! as the first two bytes in any file sent to this # printer, rejecting any that do not have this, and if ACCOUNTING # is enabled will try to get the number of pages printed. # # printing to the printer from a unix machine would use the the command : # # lpr -P<name1> files... # PRINTER backup PAP "" POSTSCRIPT # default # PRINTER lp PAP "" POSTSCRIPT # default # PRINTER ImageWriter SERIAL ".aout" 9600 10 N 8 # modem port # #PRINTER laser2 PAP "Personal LaserWriter NT" POSTSCRIPT # #PRINTER laser3 PAP "Personal LaserWriter NT:@Zone2" POSTSCRIPT # #PRINTER hp4m SERIAL ".aout" 9600 10 N 8 POSTSCRIPT # # ####################################################################################### # The following defines the hosts that may print to the daemon. It may be a name or an # IP number. If it is a name it must be one that can be resolved by MacTCP's DNR # HOST atsc02.oas.psu.edu HOST 146.186.124.2 HOST atsc03.oas.psu.edu HOST 146.186.124.3 HOST atsc04.oas.psu.edu HOST 146.186.124.4 HOST atsc05.oas.psu.edu HOST 146.186.124.5 HOST atsc06.oas.psu.edu HOST 146.186.124.6 HOST atsc07.oas.psu.edu HOST 146.186.124.7 HOST oas.psu.edu HOST 128.118.109.3 HOST oas2.psu.edu HOST 128.118.107.3 # ####################################################################################### # lpDaemon will attempt to mail the user who printed the file if any errors # occur. Sometimes the mail server is not the same as the source of # the print job so lpDaemon understands some simple mail aliasing. # # The following are used for mail aliases. If the user is not specified # it means "any user". It may only be left out on the destination if it # was also left out of the source. In the first example any user at the # the machine "val" will cause mail to be sent to "vev" at "mips" # #ALIAS @val vev@mips #ALIAS @bravo @alpha #ALIAS @charlie @alpha #ALIAS @delta @alpha #ALIAS @echo @alpha #ALIAS @foxtrot @alpha #ALIAS @golf @alpha #ALIAS @hotel @alpha #ALIAS @india @alpha #ALIAS root@oasis casper@mips #
|
Printer friendly view
|
|
Last revised: Wednesday, July 14, 2004 13:20 |