System Administration Guide: Printing

ProcedureHow to Add Printer Access by Using LP Print Commands

  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. Add access to the printer.

    # lpadmin -p printer -s print-server -D description
  3. Set the printer as the system's default printer destination.

    # lpamin -d printer
  4. Verify that the printer is ready for printing.

    # lpstat -p printer

Example 5–11 Adding Printer Access by Using lp Print Commands

If you want to print to a remote printer, you must add access to the remote printer. This example shows how to configure access to a printer named luna, whose print server is saturn.

# lpadmin -p luna -s saturn (1)
# lpadmin -p luna -D "Room 1954 ps" (2)
# lpadmin -d luna (3)
# lpstat -p luna (4)
  1. Identifies the printer and the print server

  2. Adds a description for the printer

  3. Sets the printer as the system's default printer destination

  4. Verifies that the printer is ready for printing