Set default printer from command line?

Kurt Pfeifle k1pfeifle at gmx.net
Fri Sep 7 20:14:29 CEST 2007


Kenneth Tanzer wrote:
> How about just setting the $PRINTER variable?  We're using this method 
> for a bunch of LTSP machines that need default printers set according to 
> their MAC address.  We added a small script to /etc/profile.d/, and it's 
> been working like a charm.

Yes, for the default printer this should work.

(However, "lpoptions" file is used to store a lot more default user
options, and these I had in mind also.)

-- 
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH  .....................  Hedelfinger Strasse 58
A RICOH Company  ...........................  D-70327 Stuttgart/Germany



More information about the kde-print mailing list