Path: utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!rodan!gamera.cns.syr.edu!demarsee From: demarsee@gamera.cns.syr.edu (Darryl E. Marsee) Newsgroups: comp.protocols.appletalk Subject: Re: How do I change the type on an AppleTalked LaserWriter? Message-ID: <3778@rodan.acs.syr.edu> Date: 2 Jul 90 16:38:10 GMT References: <1990Jun28.231149.28186@watdragon.waterloo.edu> Sender: netnews@rodan.acs.syr.edu Organization: Syracuse University Lines: 49 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