[opensuse] lpadmin -d acts different than expected
Sorry if this is already discussed. I did not find anything in the archives. I want to change the default printer queue on an 11.2 system. So, as I have always done, as root I ran lpadmin -d newQueue. For root, lpstat -a tells the proper thing. The odd thing is that all other users still have the old printer as the default. Implying that the default printer is per-user. I can buy that. Is that the case? So, root's lpstat, yast and the cups web server all claim that newQueue is the default. But a non-root user gets the old one. Is there some place where each user can set this up in kde? I searched for 'print' in KDE's configuration, and got no matches. Can someone kick me into the 21st century? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 01 July 2010 08:39:04 am Roger Oberholtzer wrote:
Sorry if this is already discussed. I did not find anything in the archives.
I want to change the default printer queue on an 11.2 system. So, as I have always done, as root I ran lpadmin -d newQueue. For root, lpstat -a tells the proper thing. The odd thing is that all other users still have the old printer as the default. Implying that the default printer is per-user. I can buy that. Is that the case?
So, root's lpstat, yast and the cups web server all claim that newQueue is the default. But a non-root user gets the old one. Is there some place where each user can set this up in kde? I searched for 'print' in KDE's configuration, and got no matches.
Can someone kick me into the 21st century?
Hello Roger I had the same problem after changing my old dead printer for a new old one. The only way I found was to delete the old queue; then the new one becomes the default. If you still want to use your old printer, I suppose that if you reinstall it, the new printer will remain the default and the old one will appear as second choice in KDE's print dialog boxes. There may be a more clever solution but I do not knox it. Hope it helps -- Paul Ollion Proud Linux user SuSE 11.2 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Jul 1 08:39 Roger Oberholtzer wrote (shortened):
I want to change the default printer queue on an 11.2 system. So, as I have always done, as root I ran lpadmin -d newQueue. For root, lpstat -a tells the proper thing. The odd thing is that all other users still have the old printer as the default. Implying that the default printer is per-user. I can buy that. Is that the case?
Yes - see http://en.opensuse.org/SDB:Print_Settings_with_CUPS Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2010-07-01 at 10:26 +0200, Johannes Meixner wrote:
Hello,
On Jul 1 08:39 Roger Oberholtzer wrote (shortened):
I want to change the default printer queue on an 11.2 system. So, as I have always done, as root I ran lpadmin -d newQueue. For root, lpstat -a tells the proper thing. The odd thing is that all other users still have the old printer as the default. Implying that the default printer is per-user. I can buy that. Is that the case?
Yes - see http://en.opensuse.org/SDB:Print_Settings_with_CUPS
That did it. Short answer: each user needs to run: lpoptions -d newDefaultQueue Perhaps an lpoptions section is needed in the KDE's Personal Settings. Perhaps GNOME already configures this? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 07/01/2010 05:02 AM, Roger Oberholtzer pecked at the keyboard and wrote:
On Thu, 2010-07-01 at 10:26 +0200, Johannes Meixner wrote:
Hello,
On Jul 1 08:39 Roger Oberholtzer wrote (shortened):
I want to change the default printer queue on an 11.2 system. So, as I have always done, as root I ran lpadmin -d newQueue. For root, lpstat -a tells the proper thing. The odd thing is that all other users still have the old printer as the default. Implying that the default printer is per-user. I can buy that. Is that the case?
Yes - see http://en.opensuse.org/SDB:Print_Settings_with_CUPS
That did it. Short answer: each user needs to run:
lpoptions -d newDefaultQueue
Perhaps an lpoptions section is needed in the KDE's Personal Settings. Perhaps GNOME already configures this?
Or do it by using the web based print management system and change the "system" default. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2010-07-01 at 08:12 -0400, Ken Schneider - openSUSE wrote:
On 07/01/2010 05:02 AM, Roger Oberholtzer pecked at the keyboard and wrote:
On Thu, 2010-07-01 at 10:26 +0200, Johannes Meixner wrote:
Hello,
On Jul 1 08:39 Roger Oberholtzer wrote (shortened):
I want to change the default printer queue on an 11.2 system. So, as I have always done, as root I ran lpadmin -d newQueue. For root, lpstat -a tells the proper thing. The odd thing is that all other users still have the old printer as the default. Implying that the default printer is per-user. I can buy that. Is that the case?
Yes - see http://en.opensuse.org/SDB:Print_Settings_with_CUPS
That did it. Short answer: each user needs to run:
lpoptions -d newDefaultQueue
Perhaps an lpoptions section is needed in the KDE's Personal Settings. Perhaps GNOME already configures this?
Or do it by using the web based print management system and change the "system" default.
Nope. That is exactly what does not work. Every user (at least on my system) has a $HOME/.cups/loptions file where his/her view of the printers is. This overrides the system settings. Changing the system-wide default has no effect here. I guess if the user deletes the file they get a new one with the system defaults. But then all their other settings are lost. Read the link provided above.
-- Ken Schneider SuSe since Version 5.2, June 1998
-- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Jul 1 14:50 Roger Oberholtzer wrote (shortened):
... Every user (at least on my system) has a $HOME/.cups/loptions file
If not all users on your system had intentionally at least once done whatever action (run lpoptions, click a [Save Settings] button in whatever graphical print dialog, whatever else...) which stores user specific print queue settings, it looks like a bug to me when whatever software writes user specific print queue settings without an explicite user request to do so. In particular when there is a default print queue setting for every user in his ~/.cups/lpoptions file this should mean that all users on your system should have done an explicite request to store a user specific default queue. You might inspect all ~/.cups/lpoptions files of your users (at least those which are worldwide readable). If they are very similar, an automatism which writes them is likely (or all your users prefer the same user specific settings which you may then better provide as system defaults ;-) I do not use a desktop system (only X plus a plain windowmanager) and I have nothing in ~/.cups/ so that the desktop systems (KDE and Gnome) are "the usual suspects" which may write stuff to ~/.cups/lpoptions without having an user request to do so. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2010-07-01 at 15:27 +0200, Johannes Meixner wrote:
Hello,
On Jul 1 14:50 Roger Oberholtzer wrote (shortened):
... Every user (at least on my system) has a $HOME/.cups/loptions file
If not all users on your system had intentionally at least once done whatever action (run lpoptions, click a [Save Settings] button in whatever graphical print dialog, whatever else...) which stores user specific print queue settings, it looks like a bug to me when whatever software writes user specific print queue settings without an explicite user request to do so.
Where the file came from is lost in the mists of time. Home directories have been used across OS upgrades. Maybe they came from something in openSUSE 10.3. I really can't say. But now that I know about them, I can deal with them. I think it is probably a good thing that each user can have different settings for the available printers. After all, these are not private queues. Just your private defaults for how you want to use existing system queues. Saves having to add the options to every lp command. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Johannes Meixner
-
Ken Schneider - openSUSE
-
Paul Ollion
-
Roger Oberholtzer