/usr/share/doc/xprt-xprintorg/README /usr/share/doc/xprt-xprintorg/README.Debian
There are three tasks to start the X Print Service: 1) configuring the X Print Server, 2) starting the X Print Service, 3) configuring the user session so that clients can find the running X Print Service.
The tasks are described in detail below.
The X Print Server (Xprt) can read a number of configuration files which control its behavior and support for printers. Each vendor platform has a default location for this information. Xprt can also read the environment variable XPCONFIGDIR to locate alternate configuration directories. Common settings include:
Xprt has many built-in defaults, and lacking any configuration files, will immediately try to support all printers visible via lpstat(1).
In order of importance for configuration by a system administrator, the configuration files for a "C" locale are as follows.
${XPCONFIGDIR}/C/print/Xprinters
`Xprinters' is the top most configuration file. It tells Xprt which specific printer names (e.g. mylaser) should be supported, and whether lpstat(1) or other commands should be used to automatically supplement the list of printers.
${XPCONFIGDIR}/C/print/attributes/printer
The `printer' file maps printer names to model configurations (see `model-config' below). For example, "mylaser" could be mapped to a "HPDJ1600C", and all other arbitrary printers could be mapped to a default, such as "HPLJ4SI". When depending on lpstat(1) in the Xprinters file, setting up defaults in `printer' becomes all the more important.
${XPCONFIGDIR}/C/print/attributes/document
The `document' file specifies the initial document values for any print jobs. For example, which paper tray to use, what default resolution, etc.
${XPCONFIGDIR}/C/print/attributes/job
The `job' file specifies the initial job values for any print jobs. For example, "notification-profile" can be set so that when a print job is successfully sent to a printer, e-mail is sent to the user.
$ fileh f-clean < /usr/share/Xprint/xserver/C/print/Xprinters Printer xp_pdf_spooldir_tmp_Xprintjobs Printer xp_ps_spooldir_tmp_Xprintjobs
$ fileh f-clean < /usr/share/Xprint/xserver/C/print/attributes/printer *xp-model-identifier: PSdefault xp_ps_spooldir_tmp_Xprintjobs.xp-model-identifier: PSspooldir xp_pdf_spooldir_tmp_Xprintjobs.xp-model-identifier: PS2PDFspooldir-GS
$ fileh f-clean < /usr/share/Xprint/xserver/C/print/attributes/document *content-orientation: portrait *copy-count: 1 *default-medium: iso-a4 *default-printer-resolution: 300 PSspooldir.default-printer-resolution: 300 PS2PDFspooldir-GS.default-printer-resolution: 600 HPLJ4050-PS.default-printer-resolution: 600
$ fileh f-clean < /usr/share/Xprint/xserver/C/print/attributes/job *notification-profile: {}