![]() |
![]() |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chapter 8LP Print Service (Reference)This chapter provides background information on the LP print service. Where to Find Printer Tasks
The LP Print ServiceThe LP print service is a set of software utilities that allows users to print files while users continue to work. Originally, the print service was called the LP spooler. (LP stood for line printer, but its meaning now includes many other types of printers, such as laser printers. Spool is an acronym for system peripheral operation off-line.) The print service consists of the LP print service software, any print filters you might provide, and the hardware, such as the printer, system, and network connections. The Structure of the LP Print ServiceThis section describes the directory structure, files, logs, and commands of the LP print service. LP Print Service DirectoriesThe files of the LP print service are distributed among seven directories, as shown in the following table. Table 8-1 Directories for the LP Print Service
LP Print Service Configuration FilesThe lpsched daemon stores configuration information in the /etc/lp directory, as described in the following table.
Table 8-2 Contents of the /etc/lp Directory
These configuration files serve a similar function to the /etc/printcap file on lpd-based print servers. Note - You can check the contents of the configuration files, but you should not edit these files directly. Instead, use the lpadmin command to make configuration changes. Your changes will be written to the configuration files in the /etc/lp directory. The lpsched daemon administers and updates the configuration files. The /etc/lp/printers directory has a subdirectory for each local printer known to the system. The following example shows the /etc/lp/printers subdirectories of printers sparc1 and luna.
The following table describes the files within each of the printer-specific directories.
The configuration file for the printer luna, /etc/lp/printers/luna/configuration, would typically appear as follows:
The terminfo DatabaseThe /usr/share/lib directory contains the terminfo database directory, which contains definitions for many types of terminals and printers. The LP print service uses information in the terminfo database to initialize a printer, to establish a selected page size, character pitch, line pitch, and character set, as well as to communicate the sequence of codes to a printer. Each printer is identified in the terminfo database with a short name. For a description of the structure of the terminfo database, see Printer Type. If necessary, you can add entries to the terminfo database, but doing so is a tedious and time-consuming process. For more information, see Adding a terminfo Entry for an Unsupported Printer. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||