Setting Up

Setting up Print66 on a Macintosh server

Print66 looks for a folder called "Spool Folder" in your system folder and a text file called LPD.config in this "Spool Folder" folder. A sample LPD.config file is included in this package. The sample contains very detailed information about setting up for your installation, but in fact a very few lines are really useful and need to be edited.

For a quick setting :

Known issue : with my Epson Stylus Photo 750 and my G4 Cube under MacOS 9.0.4, after a cold start, it seems that you have to print something using Epson's driver before Print66 and other applications addressing directly the USB port achieve to send data. It seems to be a hardware issue, as there is no problem after a warm reboot. If you encounter something similar, please let me know.

What's in the LogFile

The log file keeps a record of everything printed through the spooler as well as all errors. This file can be cleared by using the "Clear Log File" entry under the "File" menu.

If you are experiencing problems you may want to turn debugging on by adding a DEBUG command to the config file. This causes extra debugging information to be sent to the log file.

The log file may be cleared using the "Clear Log File" entry in the file menu. When this is done the contents are first mailed to the ADMIN specified in the config file.

What if I Send a non-PostScript file to a PostScript printer

The program checks the first 2 characters in the file looking for %! which it would assume to be in all postscript file. If these two characters are not there, Print66 will reject the file and mail the owner.

What to do on an Unix box to set it up as a print client

//Based on information's provided by Casper Boon//

The Unix machine needs to be told about the printer. This is done by adding an entry to the printcap file. The following shows such an entry :

pslaser|PostScript LaserWriter:\

To print to this printer you use the command :
lpr -Ppslaser

The "rm" entry tells lpr which machine the printer is connected to, in our case where Print66 is running.

The "rp" entry tells lpr which of the printers connected to this rm to print on. This name will be passed on to Print66 which will map the name to a printer as specified in the config file.

The "sd" entry tells the pathname of a spool directory. The "lf" entry tells the log file name.

If your LPD.config file on the Macintosh has an entry :
PRINTER pslaser PAP "" POSTSCRIPT # default
the print command above would print to your default Appletalk Laserwriter printer.

What to do on an IBM AS/400 system to set it up as a print client

The syntax of a print request in the AS/400 is :
LPR RMTSYS(name_of_mac_in_DNS | *INTNETADR) PRTQ(name_of_mac_queue) FILE(name_of_as400_printfile) JOB(job_number/user_name/job_name | *) SPLNBR(number | *ONLY | *LAST) MFRTYPMDL(printer_model)[ INTNETADR(ip_adress) ]

You can specify the Mac host by providing either a name which can be resolved by the AS/400 or an IP numerical address (INTNETADR option).

If you do not specify the job which generated the spool file, the AS/400 assumes it is the current job.
For instance, I routinely used the command :
LPR RMTSYS(BJRMAC) /* Name of my macintosh in our domain */ PRTQ(RAW) FILE(QSYSPRT) /* or any other print file */ SPLNBR(*LAST) MFRTYPMDL(*HPII)

If the name of the Macintosh host (here BJRMAC) is defined correctly in your network DNS or in the AS/400's TCP/IP host table, and if there is an entry like the following inside the Config.LPD file on that Macintosh :
PRINTER "RAW" SERIAL "Printer port" 57600 10 N 8
then the print request above should print correctly to a PCL printer (like HP Laserjet) connected to the Printer Port of the Macintosh.

Nota : on these examples, the name RAW is arbitrary, but was chosen because Hewlett-Packard network printers use the same.

If you are to print regularly, you can create on the AS/400 an outqueue object (OUTQ). This can be achieved through a command like this :
CRTOUTQ OUTQ(QGPL/BJRMACLPD) /* name of the OUTQ */ RMTSYS(BJRMAC) /*name of my macintosh in our domain */ RMTPRTQ(RAW) /* name defined on my mac's LPD.config */ AUTOSTRWTR(1) CNNTYPE(*IP) DESTTYPE(*OTHER) MFRTYPMDL(*WSCSTA4) /* A4 paper format */ WSCST(QWPHPLSR4) /* IBM's driver for the HP Laser 4 */ /* for other printers, look for objects which type is *WSCST */

After that, all you will have to do in order to print is to send your spool files to the created outqueue.

What to do on another Macintosh to set it up as a print client

Nota : Remember that Print66 is a print server. Print formatting is to be achieved by the client.

You can use Apple's LaserWriter 8.5.1 or Later as a LPR postscript client. The Apple package includes a utility named "Desktop Printer Utility" (the name may vary in international versions of MacOS ; for instance, in French MacOS, it is "Utilitaire Service d�impression"). You could then connect an old postscript printer to a Mac, run Print66 on this machine to add LPR/LPD ability and avoid the use of AppleTalk for the rest of the network.

On the Macintoshes who will request print jobs :

Nota : Info based on Apple's TIL article 24409

What to do on a Windoze system to set it up as a print client

Windows NT/2000/XP and Windows 98 support LPR printing. It is not always included in the OS install : you may have to explicitly install or start a service named Microsoft TCP/IP printing.

For Windows 95, you will have to use a third party software, for instance Axis Print Monitor for Windows

I have checked that these solutions work, but you will have to read the documentation, because my doctor warned me not to spend a long time dealing with stuff related to a certain monopoly because it tends to make me horribly angry :-)

Next : FAQ

 Accueil |  Humour | Macintosh | Bidouilles | Sélection | Éditeur 
Dernière mise à jour : 7/2/2004 21:05:23 © 2003 Barijaona Ramaholimihaso