Printing on woof, cluck and oink¶
With the advent of Managed Printing, how one prints on Linux machines here at the lab has changed somewhat. You may still use
flpr, but your printing options will be restricted severely. One is advised to learn the use of
lpoptions, perhaps aliasing some of your most common commands, in order to have the most control over your printing.
Default printing options on cluck.¶
On woof, cluck and oink, the default printer is the new (June 2015) HP603 black and white duplex printer. Pertinent options and features are:
PageSize/Media Size: *Letter Collate/Collate: *False Duplex/Two-Sided: *DuplexNoTumble HPOption_Duplexer/Duplex Unit: *True HPOption_EnvFeeder/Envelope Feeder: True *False HPOption_Tray3/Tray 3: *HP500SheetInputTray HPPaperSource/Paper Source: *AutomaticallySelect MediaType/Media Type: *Unspecified Plain HPPrintQuality/Print Quality: *FastRes1200 HPEconoMode/EconoMode: *False
Finding which queues are configured.¶
Finding which queue is default.¶
Setting printer options.¶The
lpoptionscommand sets your local printing defaults. Useful examples:
- Set your default printer:
lpoptions -d <printer>
- See the options for the default printer (brief):
- See the options for the default printer (long form, with alternatives):
- See the options for a specific printer:
lptions -p <printer> [-l]
- Revert to system defaults for specified printer:
lpoptions -x <printer>
Options are, in general, printer-specific, so be sure to check what is available for your printer (
lptions -p <printer> -l) first.
Note that any option may be specified for a particular print operation on the
lp command line.
lp [-d <printer>] [-P <pagelist>] [-o <var>=<val>]+ <file>+
Most common file formats (text, PDF, postscript) should be understood and translated, even if the printer does not understand the format natively.
flpr can talk directly to the print server and use any defined printer, but can only print files that the printer knows how to print (text files and possibly
.ps files). Using
lp instead is the recommended option for any but the most simple printing needs.