System Administration Guide: Printing

ProcedureHow to Adjust the Printer Port Characteristics

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Adjust the printer port characteristics.

    # lpadmin -p printer-name -o "stty=options"

    Specifies the name of the printer for which you are adjusting the port characteristics.

    -o “stty=options”

    Sets the port characteristic (stty option) specified by options. You can change more than one stty option setting with this command. Enclose each option in single quotation marks, and use a space to separate the options. For a complete list of options, see thestty(1) man page. Table 7–1 shows the default stty settings used by the LP print service.

  3. Verify that the printer port characteristics have been changed.

    # lpstat -p printer-name -l

Example 7–1 Adjusting the Printer Port Characteristics

This example shows how to set the port characteristics for the printer luna. The parenb option enables parity checking/generation. The parodd option sets odd parity generation. The cs7 option sets the character size to 7 bits.

# lpadmin -p luna -o "stty='parenb parodd cs7'"

Example 7–2 Setting the Terminal Baud Rate

This example shows how to set the terminal baud rate to 19200 for the printer venus.

# lpadmin -p venus -o "stty=19200"