System Administration Guide: Solaris Printing

ProcedureHow to Set a System's Default Printer Destination by Using LP Print Commands

  1. Log in as superuser, lp, or assume an equivalent role on the system where you want to set a default printer.

  2. Set the system's default printer.


    # lpadmin -d [printer-name]

    -d printer-name specifies the name of the printer you are assigning as the system's default printer. If you don't specify printer-name, the system is set up with no default printer.

  3. Check the system's default printer.


    # lpstat -d
    

Example 5–6 Setting a System's Default Printer Destination

The following example shows how to set the printer luna as the system's default printer. The printer luna is used as the system's default printer if the LPDEST or the PRINTER environment variables are not set.


# lpadmin -d luna
# lpstat -d
system default destination: luna