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
laser1 accepting requests since Jan 01 00:00

So, for my workstation the CUPS Printers are color1, color2, and laser1. 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
Edit | Attach | Print version | History: r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r1 - 28 Apr 2004, JeffreyHorner
 

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