Listing CUPS printer names

Running the following command will tell you the CUPS Printers known to your workstation:

$ lpstat -a

And the output will look something like this:

color1 accepting requests since Jan 01 00:00
color2 accepting requests since Jan 01 00:00

So, for my workstation the CUPS Printers are color1 and color2. To find out the default printer, use the following command:

$ lpstat -d

And the output:

system default destination: color2

Setup of Default CUPS printer

CUPS stores the default printer setting in /etc/cups/lpoptions. In order to change the default printer name for the workstation, type the following command as root:

$ lpoptions -d <printername>

For users who would like to use another printer as the default printer, they can run the above command under their user id. The setting will be stored in ~/.lpoptions
Topic revision: r2 - 13 Jun 2008, DalePlummer

This site is powered by FoswikiCopyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback