Sunday, 11 November 2007

Default lp - No Default destination available.

When getting an error like:


tng@monty:/mnt$ a2ps datastore_instructions.txt
[datastore_instructions.txt (plain): 2 pages on 1 sheet]
/usr/bin/lp: Error - no default destination available.
[Total: 2 pages on 1 sheet] sent to the default printer
[15 lines wrapped]


Set the default printer using:

tng@coalman:/mnt$ lpstat -p -d
printer Dell_Color_Laser_3110cn is idle.  enabled since Tue 16 Feb 2016 07:52:39 GMT
no system default destination
tng@coalman:/mnt$ lpoptions -d Dell_Color_Laser_3110cn
copies=1 device-uri=socket://192.168.1.250 finishings=3 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=1455609159 marker-colors=#00FFFF,#FF00FF,#FFFF00,#000000,none,none marker-levels=60,60,60,30,100,100 marker-names='Cyan\ Cartridge,Magenta\ Cartridge,Yellow\ Cartridge,Black\ Cartridge,Fuser,Belt\ Unit' marker-types=toner,toner,toner,toner,fuser,transfer-unit number-up=1 printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='Dell Color Laser 3110cn' printer-is-accepting-jobs=true printer-is-shared=false printer-location printer-make-and-model='Generic PostScript Printer' printer-state=3 printer-state-change-time=1455609159 printer-state-reasons=none printer-type=10498124 printer-uri-supported=ipp://localhost:631/printers/Dell_Color_Laser_3110cn
tng@monty:/mnt$ a2ps datastore_instructions.txt
[datastore_instructions.txt (plain): 2 pages on 1 sheet]
request id is lp0-74 (1 file(s))
[Total: 2 pages on 1 sheet] sent to the default printer

No comments: