Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Print to NeXT and other UNIX printers in 10.1 UNIX
[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:


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
  • Currently 1.00 / 5
  You rated: 1 / 5 (1 vote cast)

Print to NeXT and other UNIX printers in 10.1 | 3 comments | Create New Account
Click here to return to the 'Print to NeXT and other UNIX printers in 10.1' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I would try this...
Authored by: Anonymous on Nov 07, '01 10:51:54AM

But does anyone know where a good hex editor is :)

Well I will find one and try this since I am having problems printing to a lpd printer. It looks like the job gets to the printer but the size is 0 bytes. :( Now this is printing from an app. If I print from the comand line it works.

Oh yet one more thing to debug in X.

[ Reply to This | # ]
I would try this...
Authored by: Anonymous on Nov 07, '01 11:47:50AM
Just an update...

I have down loaded HexEdit 1.7.4, check . And I have made the changes, one note I needed to copy the file to my home directory, via the shell, since finder / open file would not traverse below LPRIOM.plugin.

At first I didn't think that the changes would fix my 0 byte size problem, since my test was showing a size of 0 bytes in my lpd queue, however the file did print!

Now the question is how do I keep my 31 or so X.1 machines up todate? copying by hand does not sound all that fun. :) I think it is time to find that version of cfengine for X. -Scott

[ Reply to This | # ]

What about linux?
Authored by: rubenmv on Jan 26, '02 08:28:05PM

Does printing to a linux box works the same way?

[ Reply to This | # ]