Re: Setting a default network cups printer
First of all, thanks every one who responded.
On Sat, 11 Dec 2010 20:00:23 +0000, Camaleón wrote:
>>> What does "lpstat -t | grep default" say?
>>
>> Oh, that's how you find default printers --
>>
>> $ lpstat -t | grep default
>> system default destination: epson_cx1500
>>
>> Still pointing to my old printer on the client. On the server it
>> reports correctly.
>
> Besides David's advice, have you tried by restarting cups daemon ("/etc/
> init.d/cups restart") on the client side? :-?
Hmm... super strange. I restarted the cups daemon on the client side, then
$ lpadmin -d hp_4l
$ lpstat -t | grep default
system default destination: epson_cx1500
$ env | grep epson || echo no found
no found
Moreover,
$ lpadmin -x epson_cx1500
$ lpc status | grep epson -A1
epson_cx1500:
printer is on device '///dev/null' speed -1
-- still there, do it again,
$ lpadmin -x epson_cx1500
$ lpc status | grep epson -A1
-- gone. however,
$ lpstat -t | grep default
system default destination: epson_cx1500
Super strange! Anyone has more ideas?
Ahh...!
$ lpoptions
auth-info-required=none copies=1 device-uri=file:///dev/null job-hold-
until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0
number-up=1 printer-info=epson_cx1500 printer-is-accepting-jobs=true
printer-is-shared=false printer-location printer-make-and-model='Epson
Stylus CX1500 - CUPS+Gutenprint v5.2.6 on 192.168.0.100' printer-state=3
printer-state-change-time=1292159331 printer-state-reasons=none printer-
type=2162692 printer-uri-supported=ipp://localhost:631/printers/
epson_cx1500
How can I change that lpoptions? Hold on... Yes,
$ lpoptions -d hp_4l
Did the trick. Now:
$ lpstat -t | grep default
system default destination: hp_4l
Thanks every one who responded.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Reply to: