Print to NeXT and other UNIX printers in 10.1

Nov 06, '01 11:36:42PM

Contributed by: Anonymous

[Editor's note: This one is way beyond my ability to test, as the only UNIX box in my house is OS X! Nonetheless, if it helps someone out there, that's why we're here. Use at your own risk, of course!]

OS X 10.1 now uses the 'o' command option in control files of a print job. The version of lpd in NeXTSTEP and other UNIX systems probably doesn't understand this 'new' option. I found a simple solution for that problem. You can batch the LPRIOMHelper. The file is located here:

/System/Library/Printers/IOMs/LPRIOM.plugin/Contents/MacOS/LPRIOMHelper

Use a hex editor to replace 0x6F with 0x6C ('o' -> 'l') at position 0x1A03 (6659 Dez). You need root permissions to do that. And check for the right file attributes after editing the file:

-rwsr-xr-x  1 root  wheel  18984 Oct 21 20:31 LPRIOMHelper
The UNIX commands to set the owner and file attributes for LPRIOMHelper are:
chown root.wheel LPRIOMHelper
chmod a+x LPRIOMHelper
chmod u+s LPRIOMHelper

Comments (3)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20011106233642858