Lpd

InetD

Lpd

LPD (Line Printer Daemon) lets other workstations send print files directly to your PC printer, or to a network print queue on your PC. No print options are directly configurable under InetD, but if you want to allow users to print host files to your PC printer, you must define your default printer. See your Windows documentation for information about setting up the default printer.

Depending upon the remote host you want to print from, you may need to define an entry for the printer in the /ETC/PRINTCAP file on the remote host, or create a printer queue with the appropriate host administration tools.

To configure the LPD program to use an existing printer, you must configure the remote host to send print jobs to a queue. The PRINTCAP file on the remote host links the local queue name (to which the local PC sends print requests) to the remote queue name (where the files are actually printed).

For example, a user sends a print job to the queue hpjohn. The printer is actually called hplaser and it is connected to a remote machine named john. The remote host might have a PRINTCAP entry that links these two queue names, like this:

HPJOHN|printer:\
:in:ttl:rp=dos-hplaser:ih=JOHN

On the remote system the queue names for the PC are defined in the form xxx-printer-name or xxx-printer-name, where xxx can be DOS, DOSFF, UNIX, UNIXFF, or TEXT.

DOS

If xxx is DOS, the file is printed without modification.

UNIX

If xxx is UNIX, linefeeds are converted to carriage returns and linefeeds.

Ends in FF

If xxx ends in FF, a form feed is appended to the job if one is not already present.

TEXT

If xxx is TEXT, the output is rendered. This is usually used for printing text files directly to PostScript printers.

Note: 
  Some systems have a limit on the number of characters in the remote queue name. Thus, if UNIXFF-printer-name is too long, use shortened prefixes (D, DF, U, UF, and T). Also, some systems do not allow a dash character in the remote queue name. For these systems, use an underscore character instead.