migrating from lprng to cups: printer aliases
Michael Sweet
mike at easysw.com
Wed May 12 10:54:14 PDT 2004
Pierre Habouzit wrote:
> hi, I would like to migrate an actual lprng server into a cups one.
>
> at the moment, printers have aliases that modify their options.
> for example, we have hp8, hp8sf (for one side), hp8rv (for two-side) and so
> on. And there is some home-maid scripts that add the good options to the
> lpr command line. it's ugly, and moreover, there is some issues if two
> persons print at the same time on two different printers that are in fact
> the same
>
> I would like to do the same with cups (and the cups-lpd compability
> daemon), but i don't want users to change their command line habits, and
> thus cannot use the builtin printer instances scheme of cups because of the
> '/' thing ...
>
> So is there a way to tell the server that the "hp8sf" printer is in fact
> his hp8/sf ? or in a simpler way, is it possible to add the same printer
> twice with different options in the printer.conf file witouht messing up
> the spool and queuing stuff ?
Create a class for each alias:
lpadmin -p printername -c aliasname
Then set the options on the class:
lpoptions -p aliasname -o option=value ...
--
______________________________________________________________________
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