Sunday, December 4, 2011

Printing with CUPS

Install CUPS:
$sudo aptitude update && sudo aptitude install cups


Finding Printers and Printing to Specific Printers:
$ lpstat -p
printer HP_Deskjet_3050A_J611_series is idle.  enabled since Sun 04 Dec 2011 07:00:07 PM EST
Ready to print.
$ lp -d HP_Deskjet_3050A_J611_series lettercount2.py
request id is HP_Deskjet_3050A_J611_series-3 (1 file(s)

Setting your default printer (root sets default for all users):
$ lpoptions -d HP_Deskjet_3050A_J611_series
auth-info-required=none copies=1 device-uri=socket://192.168.1.100:9100 finishings=3 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=1323043293 marker-colors=none,none marker-levels=-1,-1 marker-names='black\ ink\ cartridge,tri-color\ ink\ cartridge' marker-types=ink,ink number-up=1 printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='HP Deskjet 3050A J611 series' printer-is-accepting-jobs=true printer-is-shared=false printer-location=office-wifi printer-make-and-model='HP Deskjet 3050a j611 Series hpijs, 3.11.10' printer-state=3 printer-state-change-time=1323043293 printer-state-reasons=none printer-type=10522636 printer-uri-supported=ipp://localhost:631/printers/HP_Deskjet_3050A_J611_series.
$ lp lettercount2.py
request id is HP_Deskjet_3050A_J611_series-4 (1 file(s))

No comments:

Post a Comment