[cups.general] Automate printer config using ppdc ?

Michael Sweet msweet at apple.com
Wed Feb 9 14:08:14 PST 2011


On Feb 9, 2011, at 12:33 PM, Gabriel Somlo wrote:
> ...
> My questions are:
> 
>   1. Is there a way to have ppdc only generate
>      "generic.ppd", and not also all the other
>      .ppd files (deskjet, dymo, epson*, etc.)
>      that are listed in sample.drv ?

No, but given that you want to use the same PPD all the time, why not just generate the PPD once and reuse it as needed?

>   2. The generic.ppd file differs from the
>      desired end-result I can achieve via the
>      Web U/I by only two lines:
> 
> [somlo at foobox ~]# diff foo.ppd ppd/generic.ppd
> 106c106
> < *DefaultDuplex: DuplexNoTumble
> ---
>> *DefaultDuplex: None
> 114c114
> < *DefaultOption1: True
> ---
>> *DefaultOption1: False
> 
>     ... which I assume are what happens once I
>     select 'Duplex Unit' and 'Long Edge' via the
>     Web U/I. Is there any way to tell ppdc to
>     generate the default.ppd file with those two
>     options set properly ? For a while I was hoping
>     that '-D name=value' might do this for me, but
>     that didn't seem to do anything for me. I can
>     always use 'sed', but was looking for a more
>     standard, cups-approved way.

There isn't one at the moment. You can file a feature request on cups.org to add this capability to ppdc, however:

    http://www.cups.org/str.php

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair









More information about the cups mailing list