[cups.general] How to change a particular printer option in CUPS

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sun Mar 23 09:25:00 PDT 2008


On Mar 23, 2008, at 5:02 , Leslie Katz wrote:
>>>
>>> On Mar 21, 2008, at 23:30 , Leslie Katz wrote:
>>>
>>>> Is there a way to add that option to the existing options for the
>>>> printer in CUPS without changing anything else about the current
>>>> installation? For instance, could I simply use:
>>>>
>>>> # lpadmin -P MP160 -o CNInkCartridgeSettings=bk
>>>
>>> That, or lpoptions.  (lpadmin edits the PPD, lpoptions stores per-
>>> user (or global if run by root) options added to the defaults.)
>>>
>> Thanks very much for your reply. I'll try lpoptions.
>
> Well, I've now tried: # lpoptions -p MP160 -o  
> CNInkCartridgeSettings=bk
> followed by # lpoptions -p MP160 -l
> but the list doesn't include the option that I've just tried to set.

It won't; you only get changes there by editing the printer's PPD  
(i.e. lpadmin -d mp160 -o ...).  If you use lpoptions *without* -l  
you should see the options.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH






More information about the cups mailing list