| United States-English |
|
|
|
![]() |
Technical Print Service System Administrator's Guide: > Chapter 4 Chapter 4: Configuring
an X Print Server X Print Server Configuration Files |
|
SAM creates or modifies these configuration files:
During configuration, an X*screens file is created in the /etc/X11 directory. The newly created file replaces * with the X print server's display number, which was specified in SAM. The X*screens file contains this entry:
which specifies that the X server is to be configured as an X print server. If no server option is specified in the X*screens file, the server will default to video mode. The X*devices file defines the input devices opened by the X server during initialization. When an X print server is configured using SAM, typical input devices such as a keyboard and pointer are turned off. For example, this entry excludes the keyboard and pointer for an X print server.
The X*printers file contains a list of printers that are managed by a specific X print server. The Technical Print Service provides a template Xprinters file in /usr/lib/X11/C/print. When you configure an X print server using SAM, this template is copied to /etc/X11. The template file is renamed to reflect the X print server display number. The X print server reads the X*printers file during initial startup to determine which printers it will manage. The X print server's default behavior is to use lpstat to generate a printer list. If you want, you can also explicitly identify a list of printers (see "To Specify A Printer Explicitly"). Keywords and ValuesThe X*printers file consists of several keywords followed by a value. Keywords are case sensitive. Comments are preceded by the # (pound sign) character. The X*printers file uses the following keywords. Specifies whether to use lpstat to generate the printer list managed by the X print server. This is the X print server's default behavior. However, you can also explicitly identify a list of printers. If an Augment_Printer_List entry is absent in the X*printers file, the X print server will invoke the lpstat command. Valid values for Augment_Printer_List are: Title not available (X*printers file )
You can also substitute a different command or modify the default lpstat command. To do so, place the command line string you want to execute following the Augment_Printer_List keyword. For example, this entry:
is similar to the default command string used by the X print server. It takes the output from lpstat -a, deletes all but the first field delimited by a space, and pipes the output to the sort command. Other keywords used in the X*printers file include: Title not available (X*printers file )
To Specify a Printer ExplicitlyThe X print server's default behavior is to use lpstat to generate a printer list. If you want, you can also explicitly identify a list of printers by editing the X*printers file. To do so, you must have root or superuser permission. To add a printer, complete these steps:
ExampleThis entry:
identifies three printers to be managed by the X print server.
Refer to Chapters 5 and 6 for instructions to configure a printer for use with the Technical Print Service. The Technical Print Service uses the XPRINTSERVERS environment variable to identify a list of X print servers to be started at boot time. The file, /etc/rc.config.d/tps, specifies the values for the XPRINTSERVERS environment variable. Each value consists of two items — an X print server display number and a locale name. Each pair uses this syntax:
If multiple pairs are specified, each pair is separated with a blank space. When the system is booted, the system rc script, /sbin/init.d/tps.rc, reads these values. It starts an X print server with the display number and associated locale for each pair specified in the XPRINTSERVERS variable. For example, suppose you configure an X print server in a C locale. The system hostname is aurora and the X print server display number is 20. After configuration, this entry appears in the /etc/rc.config.d/tps file on aurora.
Applications integrated for use with the Technical Print Service must be able to identify available X print servers. The XpServerList resource is used to maintain a list of local and remote X print servers available for a given locale. The file, /etc/dt/config/LANG/sys.resources, contains this information. The XpServerList resource uses this syntax:
where hostname is the name of the local or remote system running an X print server and displaynumber is the X print server display number. Each entry is separated by one or more blank spaces. ExampleThis entry in the sys.resources file on workstation1:
identifies that the X print server on workstation1 (local system) uses display number 12 and that there are two additional remote X print servers available on workstation2 and workstation3.
Specifying the X Print Server InteractivelyIf an application uses the DtPrint Print Setup Dialog box, a user can interactively specify an X print server and printer. This information is entered in the Description field of the Print Setup Dialog. Specify the name using this syntax:
For example, this entry:
instructs the application to use the X print server, printhub:2, and to send the print job to the printer named colorlj7 on that server. This assumes that colorlj7 has already been configured for use with the Technical Print Service. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||