NOTE: There is a space before each string! The three perl commands search the nf files for the following strings, replace them with nothing, and save the file: launchctl load /System/Library/LaunchDaemons/.launchctl unload /System/Library/LaunchDaemons/.perl -p -i -e ‘s/ Cancel-Job//g ’ /private/etc/cups/nf.perl -p -i -e ‘s/ Enable-Printer//g ’ /private/etc/cups/nf.perl -p -i -e ‘s/ Resume-Printer//g ’ /private/etc/cups/nf.Spaces are extremely important in these commands!.If incorrectly typed, they can destroy the nf file and disable printing completely!.The following perl commands must be typed carefully and double checked each time they are sent.Since users may just ” Print and Run,” leaving a stopped queue or hung job, these settings can be opened up using the following unix commands. Also, only administrators or job owners can cancel print jobs. By default, the settings for the cups daemon process, cupsd, are secured so that only administrators can start, stop, disable or enable print queues. Information on PPD names and where they are stored can be found using the lpinfo command:įor many reasons a print job can get stalled or stop or disable the local CUPS print queue. Library/Printers/PPDs/Contents/Resources. Also, most PPDs under Mac OS X 10.5 are located at this path: NOTE the back slashes to escape the spaces in the names so the unix shells will pass them on correctly. -P /Library/Printers/PPDs/Contents/Resources/HP\ Color\ LaserJet\ 8500.gz.Sets the local print queue so that print jobs are deleted if the printer/printserver cannot be reached. Sets the requirement for username and password. -o auth-info-required=username,password.Sets the universal resource identifier (URI) that configures the print server () and the print queue (printers/bld-001-color1). NOTE: There are two capital E’s in the man page, and the position in the command string separates enabled from encryption. o error-policy=abort-job -P /Library/Printers/PPDs/Contents/Resources/HP\ Color\ LaserJet\ 8500.gzĮxecutes the command lpadmin as administrative user. This option can be done without Terminal.app and command line tools but can be confusing.īecause the WolfCopy print servers are set to require both encryption and CUPS AuthType Basic, the print subsystem in MacOS X 10.5 will actually stop the print job (but not the print queue or printer) and mark that job with the status: Media=Letter sides=one-sided finishings=3 copies=1 job-hold-until=no-hold job-priority=50 number-up=1 auth-info-required=username,password job-sheets=none,none printer-info=bld-001-color1 printer-is-accepting-jobs=1 printer-is-shared=0 printer-location=’Building 001 ‘ printer-make-and-model=’HP Color LaserJet 8500’ printer-state=3 printer-state-change-time=1218130564 printer-state-reasons=none printer-type=6328532ī) Printing once to set the AuthInfoRequired The lpoptions should return some text like the following: Type the password of the administrator when prompted. The CUPS name will be the text after the word “for” and before the first colon(:). NOTE: The CUPS name of each printer on the machine can be discovered by typing lpstat -v and looking at the listing like this:ĭevice for bld_001_color1: ipp:///printers/bld-001-color1 Where is replaced with the text typed into the Name: field when the printer was created, with the dashes (-) replaced with underscores (_).Įxample: sudo lpadmin -p bld_001_color1 -o auth-info-required=username,password
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |