[comp.protocols.appletalk] How do I change the type on an AppleTalked LaserWriter?

jmsellens@watdragon.waterloo.edu (John M. Sellens) (06/29/90)

I want to change the type on an AppleTalked LaserWriter to something
other than "LaserWriter", to help keep users from using other people's
printers (yes, yes, I know it's a hack, and can be worked around quite
readily - we're looking mostly to avoid mistakes, rather than
deliberate abuse).

We've got some Postscript code that changes it while the printer is powered
on, but can't find a way to store it in the non-volatile RAM so that
the printer will power on with the correct type.

Any ideas?

Much obliged,

John Sellens
U of Waterloo
jmsellens@dragon.waterloo.edu

demarsee@gamera.cns.syr.edu (Darryl E. Marsee) (07/02/90)

In article <1990Jun28.231149.28186@watdragon.waterloo.edu> 
jmsellens@watdragon.waterloo.edu (John M. Sellens) writes:

> I want to change the type on an AppleTalked LaserWriter to something
> other than "LaserWriter", to help keep users from using other people's
> printers (yes, yes, I know it's a hack, and can be worked around quite
> readily - we're looking mostly to avoid mistakes, rather than
> deliberate abuse).
> 
> We've got some Postscript code that changes it while the printer is 
> on, but can't find a way to store it in the non-volatile RAM so that
> the printer will power on with the correct type.
> 
> Any ideas?

Yep.  We've changed the type on our Laserwriter a year and a half ago, and 
we have had no unwanted printing since.  I've modified the Laserwriter 
driver to lookup the different type, and given it to those allowed to 
print on our printer, and it works just fine.

The code to change the Laserwriter's type is the following (download using 
SendPS from a Mac, or tlw from a Sun, or whatever your favorite PostScript 
downloader is):

serverdict begin 0 exitserver % assuming your printer password is 0
statusdict begin
(PrinterName:PrinterType@*) setprintername % default PrinterType = LaserWriter

The modifications that need to be done to the Laserwriter 5.2 driver to 
see the new printer type are the following (change the string "LaserWriter"
to whatever your new type is):

Required:  STR -4095, STR -4096, PAPA -8192, insc 0
Optional:  STR -4082, STR -4086, STR -4091, STR -4094, STR -8160
           PREC 109, LWRR 0, and all the DITL's containing "LaserWriter"

Note:  The Optional changes just make alerts and dialog boxes have the 
       correct type of printer in their messages; if you don't mind it
       still being called a LaserWriter in those boxes, then the optionals
       don't need to be changed.

Finally, change the name of the modified LaserWriter driver itself to be
the same as the type of the printer.

Hope this helps.

Darryl E. Marsee
Syracuse University
<demarsee@gamera.cns.syr.edu>

bmug@garnet.berkeley.edu (BMUG) (07/03/90)

In article <3778@rodan.acs.syr.edu> demarsee@gamera.cns.syr.edu (Darryl E. Marsee) writes:
>
>(info on changing LaserWriter type to provide security)
>
>The modifications that need to be done to the Laserwriter 5.2 driver to 
>see the new printer type are the following (change the string "LaserWriter"
>to whatever your new type is):
>
>Required:  STR -4095, STR -4096, PAPA -8192, insc 0
>Optional:  STR -4082, STR -4086, STR -4091, STR -4094, STR -8160
>           PREC 109, LWRR 0, and all the DITL's containing "LaserWriter"
>

Any idea if different modifications to version 6.x of the LaserWriter
driver are required?

I'd sorta like to know before I munge around with even a backup if it's
going to be used on our network :-).

John Heckendorn
                                                             /\
BMUG                      ARPA: bmug@garnet.berkeley.EDU    A__A
1442A Walnut St., #62     BITNET: bmug@ucbgarne             |()|
Berkeley, CA  94709       Phone: (415) 549-2684             |  |

demarsee@gamera.cns.syr.edu (Darryl E. Marsee) (07/06/90)

In article <1990Jul3.144225.26341@agate.berkeley.edu> 
bmug@garnet.berkeley.edu (BMUG) writes:

> Any idea if different modifications to version 6.x of the LaserWriter
> driver are required?

Nope.  I haven't tried LaserWriter 6.X yet.  However, once our
color PostScript printer gets here...

Darryl E. Marsee
Syracuse University
<demarsee@gamera.cns.syr.edu>