[cups.general] Am I using CUPS or some other printing method?

Larry Alkoff labradley at mindspring.com
Sun Mar 18 14:02:44 PDT 2007


Kurt Pfeifle wrote:
>> John Thompson wrote:
> 
>> Where can I inform the system about my default printer dj500
>> when I use lp or lpr?
> 
> 
> The command
> 
>   lpoptions -d number_15
> 
> will set your printer named "number_15" as your default printer for the user you are currently (and that info will be stored in "~/.lpoptions"). If you run that command as root, you set that printer as the default one for all users (and that info will be stored in "/etc/cups/lpoptions")..
> 
> See also "man lpoptions".
> _______________________________________________

Thanks very much for your info on lpoptions John.
I've viewed the man page.

Actually, I have a ~/.lpoptions which contains:

lba at kinda ~ $ cat .lpoptions.orig
Dest dj500 _kde-filters
Special Advanced%20Faxing%20Tool%20(ksendfax)
Special Mail%20PDF%20File
Special Print%20to%20File%20(PDF)
Special Print%20to%20File%20(PostScript)
Special Send%20to%20Fax

Whenever I issue your command as user
lpoptions -d dj500

my actual ~/.djoptions disappears!  Like erased.
Luckily I always make a .orig whenever editing system files.

Whatever could be causing that erasure?
Apparently, my original ~/lpoptions file above was not enough to cause 
the printer to do it.
Is my current ~/.lpoptions file correct and sufficient?

Running lpoptions -d dj500 as root produced a new file 
/etc/cups/lpoptions with the single line:
Default dj500 _kde-filters=true

With the one liner in place, lp file works but I wonder
1.  Why didn't my ~/.djoptions file work and
2.  Should I edit /etc/cups/djoptions to include the stuff in ~/.djoptions?

Larry

-- 
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux





More information about the cups mailing list