printconfig - Used to add, delete, or modify printer configurations
/usr/sbin/printconfig [-ui gui [x resources] | menu]
-ui Specifies the user interface to be invoked. The choices are:
gui Specifies graphical user interface.
menu Specifies menu interface.
The x resources are standard X11 resource options. For more information,
see the X(1X) reference page.
Use the Printer Configuration application, printconfig, to add, delete, or
modify printer configurations for this workstation's local and remote
printers. For each printer that you configure, you can choose the standard
printer configuration or customize the configuration.
You must have root privileges to run this application.
The printconfig command has two user interface options:
+ Graphical user interface (GUI)
+ Menu interface (Menu)
Running the Graphical User Interface Option:
To start printconfig from the graphical user interface, do the following:
1. Click on the Application Manager icon on the CDE front panel.
2. Double click on the System_Admin application group icon.
3. Double click on the Configuration application group icon.
4. Double click on the Print icon.
To start printconfig from the xterm, enter the following command from the
Note that the validation checking in the GUI interface is more strict than
that used by the menu interface. If the GUI interface rejects an attribute
value you believe to be acceptable, try the menu interface.
Running the Menu Interface Option:
To start the printconfig menu interface, enter the following command from
printconfig -ui menu
This option invokes lprsetup. For more information, see the lprsetup(8)
Running Online Help:
You can view the Printer Configuration online help volume without running
the application. To open the Printer Configuration help volume from the
command line, enter the following command:
/usr/dt/bin/dthelpview -helpVolume \
You can also view online help for this application by choosing Help from
the menu bar in the GUI version. The Help pulldown menu is displayed, pro-
viding the following options:
Overview: Displays the Overview section of the help volume, which describes
the purpose of the application, how to run the application, and how to exit
Tasks: Displays the Tasks section of the help volume, which describes how
to use the application to perform various tasks.
Reference: Displays the Reference section of the help volume, which
describes all dialog boxes and dialog box components in the application.
On Item: Activates the On Item help functionality by displaying a question
mark as the cursor. When the cursor is positioned on any component in the
application and you click on the component, a Help Viewer window is opened
and the help for the selected component is displayed in the window.
Using Help: Displays the standard CDE instructions on how to use the Help
About: Displays version, copyright, and trademark information for the
The following restrictions apply when using older versions of printcap
files, at Version 3.2 or earlier:
Aliases that conflict with system-assigned names
In Verion 4.0 /etc/printcap files, the system assigns printers names
lp[0-9]*, [0-9]*, and for the default printer, lp . For example, the
default printer may have a name field such as
lp0|0|lp|default|declaser3500:... and another printer may be
lp7|7|some_alias|another alias:... As a result, the system will have
difficulty with printers that have less than two names or that use
these reserved names as aliases.
Altered attribute validation
Some of the attribute value checking is different. For example, some
fields that were not required now are, and some attributes values that
were legal no longer are.
The printconfig utility requires that all comments be associated with a
printer. As a result, comments appearing after the last printer will be
To avoid these problems, invoke printconfig with the menu interface as fol-
# printconfig -ui menu
This command invokes the lprsetup command line utility, which is fully
compatible with earlier printcap files.
The following example shows how to start the printconfig menu interface
from the command line:
printconfig -ui menu
Contains the current printer configurations printconfig modifies the
contents of this file
Contains the known printer types and their default attribute values for
creating new printer configurations
Specifies the environment variables that define the PRINTCONFIG confi-
guration on your system
Commands: lpr(1), latcp(8), lpd(8), rc.config(8)