home *** CD-ROM | disk | FTP | other *** search
- lpDaemon and LPR
- ----------------
-
- lpDaemon is a utility that implements the Berkeley Line Printer Protocols as
- described if rfc1179 on the Macintosh. It normally spools postscript files
- sent from a unix host and sends them to a LaserWriter on the Mac network. It
- may be used to print any files to an AppleTalk printer or a Serial printer.
-
- LPR is an lpDaemon client that submits jobs to a printer queue. Typically a
- text file is to a unix print queue. If the file is of type TEXT the end of
- lines are converted to unix style end of lines before sending, otherwise files
- are sent as is and marked with the 'literal' flag.
-
- lpDaemon and LPR run under system 7 and require MacTCP.
-
- Setting Up lpDaemon
- -------------------
- lpDaemon looks for a folder called "Spool Folder" in your system folder and
- a text file call LPD.config in the "Spool Folder" folder. A sample LPD.config
- file is included in this package. The sample contains information about setting
- up for your installation.
-
-
- What to do on the Unix Box
- --------------------------
- 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:\
- :rp=pslaser:lp=:\
- :rm=server-mac:sd=/usr/spool/maclpd:\
- :lf=/usr/adm/lpd-errs:
-
- to print to this printer you use the command :
-
- lpr -Ppslaser <filename>
-
- The rm entry tells lpd which machine the printer is conected to, in our case
- where lpDaemon is running. The rp entry tells lpd which of the printers
- connected to this rp to print on. This name will be passed on to lpDaemon which
- will map the name to a printer as specified in the config file.
-
- 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 printer.
-
- 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
- ------------------------------------------------------------
- lpDaemon checks the first 2 characters in the file looking for %! which it would
- assume to be in all postscript files. If these two characters are not there
- lpDaemon will reject the file and mail the owner.
-