options on server and instances

Michael Sweet mike at easysw.com
Mon May 10 06:34:26 PDT 2004


james_hurford at yahoo.co.uk wrote:
> Hello,
> 
> I am setting up a CUPS server to replace our lp print server and I
> cannot find answers to the following questions in the documentation.
> 
> 1)  I would like to script the setting up of the printers.  I have a
> script to create them but I cannot seem to change the configuration
> of a printer. If I try the lpoptions command to change the deafult
> media size to  A4 this is not reflected when I look at the printer
> through the web front end.
> 
> Should I be using lpadmin and if so how ?

Yes:

     lpadmin -p printer -o media=A4

> 2) In the users documentation it mentions setting up instances for
> different options for printers.  I cannot find in this mentioned in
> the administrator manual.

Right, it is a client-side thing for users; use:

     lpoptions -p printer/instance -o option=value ...

Note that instances are local to the current system; there is
currently no way to automatically export instances from a server
to the clients.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Printing Software for UNIX                       http://www.easysw.com




More information about the cups mailing list