Planning for Printer Setup

This section provides an overview of planning for printing that includes the following:

Setting Printer Definitions

Setting definitions for the printers on your network is an ongoing task that lets you provide a more effective print environment for users. For example, you can assign parameters for all your site's printers to help users find where a printer is located. Or, you can define a class of printers to provide the fastest turnaround for print requests.

The lpadmin command lets you set all of the printer definitions. However, Solaris Print Manager lets you set only some printer definitions when you install or modify a printer. The following table lists the printer definitions and shows whether you can assign the definition with Solaris Print Manager.

Table 2.1. Printer Definitions Set With Solaris Print Manager

Printer Definition

Can Use Solaris Print Manager to Set?

Printer name

Applicable

Printer description

Applicable

Printer port

Applicable, for adding an attached printer

Printer type

Applicable, if the Use PPD files default option is deselected in the Print Manager drop-down menu

File contents

Applicable, if the Use PPD files default option is deselected in the Print Manager drop-down menu

Printer Make

Applicable, if the Use PPD files default option in the Print Manager drop-down menu is selected

Printer Model

Applicable, if the Use PPD files default option in the Print Manager drop-down menu is selected

Printer Driver

Applicable, if the Use PPD files default option in the Print Manager drop-down menu is selected

Fault notification

Applicable, but with less functionality than the lpadmin command

Default printer

Applicable

Destination

Applicable, for adding a network printer

Protocol

Applicable, for adding a network printer

Printing banner pages

Applicable, but with less functionality than the lpadmin command

Limiting user access to a printer

Applicable, but with less functionality than the lpadmin command

Printer class

Not applicable

Fault recovery

Not applicable

Printer Name

When adding a printer to a system, you specify a printer name for the printer. A printer name must adhere to these guidelines:

  • The printer name must be unique among all printers within the bounds of an administrative domain.

  • The printer name can have a maximum of 14 alphanumeric characters, which can include dashes and underscores.

  • The printer name should be easy to remember and might identify the type of printer, its location, or the print server name.

Establish a naming convention that works for your site. For example, if you have different types of printers on the network, including the printer type as part of the printer name can help users choose an appropriate printer. For instance, you could identify PostScript printers with the letters PS. However, if all of the printers at your site are PostScript printers, you would not need to include the initials PS as part of the printer name.

Printer Description

You can assign a description to a printer by using the lpadmin D command or Solaris Print Manager. The printer's description should contain information to help users identify the printer. You might include the room number where the printer is located, the type of printer, the manufacturer, or the name of the person to call if printing problems occur.

Users can view a printer description by using the following command:

$ lpstat -D -p printer-name

Printer Port

When you install a printer or later change its setup, you can specify the device, or the printer port, to which the printer is connected. You can use either Solaris Print Manager or the lpadmin -p printer-name -v device-name command.

Most systems have two serial ports, plus a parallel port or USB ports. Unless you add ports, you cannot directly connect more than two serial printers and a parallel printer, or two USB printers, to one system.

You can select the following printer port types with Solaris Print Manager. These options give you as much flexibility as the lpadmin command.

Printer Port Type

Corresponding Device Name Options

Serial

/dev/term/a

Serial

/dev/term/b

Parallel

/dev/printers/0 —> /dev/ecpp0

USB

/dev/printers/[1–9]

Specify any port name that the print server recognizes

Other

The LP print service initializes the printer port by using the settings from the standard printer interface program. For more information about printer interface programs, see Managing Print Filters. If you have a parallel printer or a serial printer for which the default settings do not work, see Adjusting Printer Port Characteristics for information about customizing the port settings.

Note

If you use multiple ports on an x86 based system, only the first port is enabled by default. The second port, and any subsequent ports, are disabled by default. To use more than one port, you must manually edit the device driver port configuration file for each additional asy (serial) port or ecpp (parallel) port. The path names for the x86 port configuration files are the following:

/kernel/drv/asy.conf

/kernel/drv/ecpp.conf

Printer Make

When you set up a printer with PPD files, the printer make is the name of the manufacturer of the printer. The printer make is found on the printer itself, and on the packaging materials and documentation that is shipped with the printer.

The following are examples of printer makes that are available in this release:

  • Lexmark

  • Epson

  • Canon

  • QMS

  • Xerox

Printer Model

The printer manufacturers produce several types and models of printers. When you set up a printer with PPD files, the printer model defines the printer precisely. The model is usually stamped on the front or top of the printer. This information is also displayed on the packaging materials and documentation that is shipped with the printer.

The following are examples of printer models that are available in this release:

  • Lexmark Optra E312

  • Lexmark Z32

  • Lexmark 1000

Printer Driver

The printer driver is determined when you select the PPD file for the specified printer make and printer model

Printer Type

The printer type is a generic name for a type of printer. Printer type identifies the terminfo database entry that contains various control sequences for the printer. By convention, printer type is usually derived from the manufacturer's model name. For example, the printer type name for the DECwriter printer is decwriter. However, the common printer type PS does not follow this convention. PS is used as the printer type for many models of PostScript printers, such as the Apple LaserWriterI and Apple LaserWriterII printers.

You can specify the printer type by using the lpadmin -T command or Solaris Print Manager.

Printer Names in the terminfo Database

Information about each printer type is stored in the terminfo database (/usr/share/lib/terminfo). This information includes the printer capabilities and initialization control data. The printer you install must correspond to an entry in the terminfo database.

$ pwd
/usr/share/lib/terminfo
$ ls
1  3  5  7  9  B  H  P  a  c  e  g  i  k  m  o  q  s  u  w  y
2  4  6  8  A  G  M  S  b  d  f  h  j  l  n  p  r  t  v  x  z
$ 

Each subdirectory contains compiled database entries for terminals or printers. The entries are organized by the first letter of the printer or terminal type. For example, if you have an Epson printer, look in the /usr/share/lib/terminfo/e directory to find your particular model of Epson printer.

$ cd /usr/share/lib/terminfo/e
$ ls
emots           ep2500+high   ep48            ergo4000      exidy2500
env230          ep2500+low    epson2500       esprit
envision230     ep40          epson2500-80    ethernet
ep2500+basic    ep4000        epson2500-hi    ex3000
ep2500+color    ep4080        epson2500-hi80  exidy
$ 

The entries for Epson printers begin with epson.

If you have an NEC printer, look in the /usr/share/lib/terminfo/n directory for your NEC printer model.

$ cd /usr/share/lib/terminfo/n
$ ls
ncr7900        ncr7900iv      netronics      network        nuc
ncr7900-na     ncr7901        netty          netx           nucterm
ncr7900i       nec            netty-Tabs     newhp
ncr7900i-na    net            netty-vi       newhpkeyboard
$ 

The nec entry in this directory is for the NEC printer.

Selecting a Printer Type

In this Solaris release, you can assign a printer type with Solaris Print Manager if you deselect the Use PPD files default option in the Print Manager drop-down menu in Solaris Print Manager. This printer definition is not available when the Use PPD files option is selected. When you add a printer with PPD files, the printer make, model, and driver printer definitions replace the printer type definition.

For a local PostScript printer, use a printer type of either PostScript (PS) or Reverse PostScript (PSR). If your printer supports PostScript, choose PS or PSR, even if the specific printer type is listed in the terminfo database.

If your PostScript printer prints pages face up, documents appear to be printed backwards. As such, the first page is at the bottom of the stack and the last page is on the top. If you specify the printer's type as PSR, the LP print service reverses the order of the pages before sending the pages to the printer. The last page is printed first, and the pages are stacked in forward order. However, the LP print service can reliably change the page order only for PostScript files that conform to the Adobe® Technical Note #5001, PostScript Language Document Structuring Conventions Specification. This document is available on the Adobe Developer Relations web site.

If a printer can emulate more than one kind of printer, you can assign several printer types by using the lpadmin T command. If you specify more than one printer type, the LP print service uses the printer type that is appropriate for each print request.

You might not find the printer type in the appropriate terminfo directory. The type of printer is not necessarily linked to the manufacturer's name on the printer. For example, for any type of PostScript printer, you can use the PS or PSR entry, found in the /usr/share/lib/terminfo/P directory, instead of an entry specific to the manufacturer or product name.

If you have an unusual type of printer, you might need to try different entries before you can determine whether a particular terminfo entry works for your type of printer. If possible, find an entry in the terminfo database that works for your printer. Trying to use an existing entry is much easier than trying to create an entry. If you must create your own entry, Adding a terminfo Entry for an Unsupported Printer contains some useful tips.

Selecting a File Content Type

In this Solaris release, you can assign the file content type printer definition with Solaris Print Manager if you deselect the Use PPD files default option in the Print Manager drop-down menu in Solaris Print Manager. This printer definition is not available if you use PPD files. The file content type for printers added with PPD files is PostScript. This file content type is automatically set by the tool. You can also specify file content type when adding a new printer or modifying an existing printer by using the lpadmin I command.

Print filters convert the content type of a file to a content type that is acceptable to the destination printer. The file content type tells the LP print service the type of file contents that can be printed directly, without filtering. To print without filtering, the necessary fonts must also be available in the printer. You must set up and use filtering for other types of files.

Most printers can print directly the following types of files:

  • The same type as the printer type. For example, PS for a PostScript printer.

  • The simple type. For example, an ASCII text file.

When submitting a file for printing, the user can indicate the content type of the file by using the lp -T content-type command. If no file content type is supplied when the request is submitted, the LP print service checks the first file in the request to determine the content type. If the file begins with ^D%! or %!, the request is considered to contain PostScript data. Otherwise, the request is assumed to contain simple (ASCII) text. The LP print service uses the file content type to determine which filters to use to convert the file contents into a type the printer can handle.

When you are not specifying PPD files, Solaris Print Manager provides a list of file content types from which you can choose when you install or modify an attached or network printer. The choices are translated to the names that the LP print service uses. The following table describes the file content types that you can choose with Solaris Print Manager.

Table 2.2. Choosing File Content Type With Solaris Print Manager When Not Using PPD Files

File Contents Choice

LP Print Service Name

Description

PostScript

postscript

PostScript files do not require filtering.

ASCII

simple

ASCII files do not require filtering.

Both PostScript and ASCII

simple, postscript

PostScript files and ASCII files do not require filtering.

None

""

All files require filtering, except those files that match the printer's type.

Any

any

No filtering is required. If the printer cannot handle a file content type directly, the file will not be printed.

Choose the file content type that best matches the printer's capabilities. PostScript is the default choice in Solaris Print Manager and is probably correct most of the time. PostScript means that filtering is not needed for PostScript files.

Frequently Used Printers

This section provides the printer type and file content type for the printers most commonly used with Solaris software. Although not shown, many of these printers can also directly print files with simple file content type.

If you have a PostScript printer, use a printer type of PS or PSR and a content type of postscript. PSR reverses the pagination and prints the banner page last.

The following table lists additional non-PostScript printers and shows the printer type to use for configuring each printer. For all these printers, the file content type is simple.

Note

Sun Microsystems does not supply filtering software for the printers listed in the following table, among others. However, you can use unsupported printers if you supply filtering or if the printer can directly print the file content type. If you have questions about any printer for which Sun Microsystems does not supply filters, contact the printer manufacturer.

Table 2.3. Some Non-PostScript Printers for Which Sun Does Not Supply Filters

Printer

Printer Type

Daisy

daisy

Datagraphix

datagraphix

DEC LA100

la100

DEC LN03

ln03

DECwriter

decwriter

Diablo

diablo

diablo-m8

Epson 2500 variations

epson2500

epson2500-80

epson2500-hi

epson2500-hi80

Hewlett-Packard HPCL printer

hplaser

IBM Proprinter

ibmproprinter

If you want to set up a printer that is not in the terminfo database, see How to Add a terminfo Entry for an Unsupported Printer.