Copyright (C) 1997, 1998 by International Business Machines Corporation

# TCP/IP Configuration Notebook Online Help

### Automatically Starting LPD

To start the line printer server (LPD) automatically when TCP/IP is started, select the Autostart tab, select LPD in the Autostarted Services list box, and check the Autostart Service box under Autostart Options.

If you select the INETD Super Server Daemon as an alternative way to start LPD automatically, any LPD parameters specified on this page will be ignored.

If you choose to start LPD in a foreground session, you can check the Minimized box to minimize the OS/2 window.

When LPD is started, users on remote hosts can print files on your local printer.

If you choose to automatically start LPD in an OS/2 window foreground session, you can also specify the LPD parameters in the Parameters field.

Uncheck the Autostart Service box to disable the automatic starting of LPD when TCP/IP is started. This is the default.

#### LPD Parameters

If you choose to automatically start LPD without using INETD, TCP/IP can also process the following command parameters when specified from the Autostart tab:

-c
  Prevents printing of the control file.

-b banner

  Prints either a specific banner or none at all. banner is the optional file containing the copyright information to be printed. If you specify a banner file, that file is used as the banner. If you do not specify a banner file, a banner is not printed.

  If you specify a banner file with the -b parameter, the following keywords can be used to display specific job information:

  %H%
    Name of the host that originated the print job

  %U%
    Name of the user that originated the print job

  %J%
    Name of the print job

  %C%
    Class of the print job

-s
  Causes LPD to validate client requests based on the port addresses. According to RFC 1179, all line printer requests should come from clients on a port within the range of 721 to 731. However, because some clients do not support this range, the default does not verify that the client is connecting from a valid port within this range.

-f

  Changes the default file format from binary to text. When a client sends a print job to an LPD server, the client can specify that the job is of a particular file format.

  LPD recognizes two file formats:

  - Binary
  - Text

  When LPD receives a binary file, the file is sent as is directly to the specified queue for printing. If the file received is a text file, LPD first converts each line feed (LF) to a carriage return line feed (CRLF) pair. The file is then sent to the specified queue.

  If a client fails to specify a file format, or if a client specifies a format other than binary or text, LPD treats the job as if it were binary. To change the default file format from binary to text, use the -f parameter on the LPD command line.

-cp codepage
  Specifies the code page translation name to be used. Valid values are dependent on your environment. The following list describes the possible values.

  Notes:

  - If the -cp parameter is omitted, a default code page translation is done from the standard Internet code page to the OS/2 code page. The specific default depends on the language being used.

  - The -cp parameter is not case-sensitive. For example, both ISO1 and iso1 are valid choices.

  none
    No code page translation occurs.

  BIG5
    Republic of China Big 5 (8-bit) to code page 950 translation.

  DECMULTI
    DEC Multinational to code page 950 translation.

  EUC
    Japanese Extended Unix Code to code page 932 or 942 translation.

    Korean KSC 5601 Extended Unix Code or code page 949 translation. (No translation is done between these two code pages because they are equivalent.)

    Republic of China Big 5 Extended Unix Code to code page 950 translation. (No translation is done between these two code pages because they are equivalent.)

  GB8
    Simplified Chinese GB Code (8-bit) to code page 1381 translation. (No translation is done between these two code pages because they are equivalent.)

  ISO1
    ISO code page 8859-1 to code page 850 translation.

  ISO2
    ISO code page 8859-2 to code page 852 translation.

  ISO5
    ISO code page 8859-5 to code page 855 translation.

    ISO code page 8859-5 to code page 866 translation.

    ISO code page 8859-5 to code page 915 translation. (No translation is done between these two code pages because they are equivalent.)

  ISO6
    ISO code page 8859-6 to code page 864 translation.

  ISO7
    ISO code page 8859-7 to code page 813 translation. (No translation is done between these two code pages because they are equivalent.)

  ISO8
    ISO code page 8859-8 to code page 862 translation.

  ISO2022
    Japanese ISO code page 2022 to code page 932 or 942 translation.

  JIS
    Japanese ISO code page 2022 to code page 932 or 942 translation.

  KSC
    Korean KS code (KSC 5601) (8-bit) to code page 949 translation.

  WIN1250
    Microsoft Windows code page 1250 to code page 852 translation.

  WIN1251
    Microsoft Windows code page 1251 to code page 855 translation.

    Microsoft Windows code page 1251 to code page 866 translation.

    Microsoft Windows code page 1251 to code page 915 translation.

  WIN1253
    Microsoft Windows code page 1253 to code page 813 translation.

  WIN1256
    Microsoft Windows code page 1256 to code page 864 translation.

  USER
    A user-created translation table is used.

[ Top of Page | Previous Page | Next Page | Table of Contents ]