Operating System - Linux
1823941 Members
3733 Online
109667 Solutions
New Discussion юеВ

xscreensaver disable for all users

 
SOLVED
Go to solution
Alexander Chuzhoy
Honored Contributor

xscreensaver disable for all users

Is there a way to disable the screensaver on linux for all users?
I'm using rhel 4.2
If I use xscreensaver-demo -the settings affect only current user.
There's a global file /usr/X11R6/lib/X11/app-defaults/XScreenServer to edit,but if there's a ~/.xscreensaver file-it takes precedence.
So I want to disable the screensaver on only one server that servs NIS users. What to do?
Thanks.
9 REPLIES 9
Vipulinux
Respected Contributor

Re: xscreensaver disable for all users

Hi

Just for info.. do you use GNOME or KDE?

Cheers
Alexander Chuzhoy
Honored Contributor

Re: xscreensaver disable for all users

On this specific machine both were installed.
Some users use KDE and some GNOME.
Sergejs Svitnevs
Honored Contributor
Solution

Re: xscreensaver disable for all users

You can put 'xscreensaver-command -exit' command into the bottom of Xsetup login script.

For KDE, you can also edit /usr/share/config/kdesktoprc and set:

[ScreenSaver]
Enabled=false

Regards
Vipulinux
Respected Contributor

Re: xscreensaver disable for all users

Hi

For global settings in KDE you can easily do that using the GUI control centre in the start menu or by editing /usr/share/config/kdesktoprc file
[ScreenSaver]
Enabled=false

Cheers
Alexander Chuzhoy
Honored Contributor

Re: xscreensaver disable for all users

I'd rather (if it's possible) to control the behavior of screensaver on server's side.
On certain servers I'd like to keep the screensaver enabled.
Sergejs Svitnevs's example looks good-I'm going to check it.
Is there anything like it for GNOME?
Thanks.
Steven E. Protter
Exalted Contributor

Re: xscreensaver disable for all users

Shalom Alex,

The screensaver configuration is controlled on the client.

You can distribute to the users as part of the login process an update that will distribute the configuration file mentioned above.

The ownership of this file needs to be root, with all other users haveing read only access on it.

That will do the job, though its no fun to edit.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alexander Chuzhoy
Honored Contributor

Re: xscreensaver disable for all users

Actually Sergejs Svitnevs's example pretty much works for clients with KDE as default desktop-bunny assured.
What I need now is to achieve the same for GNOME.
Points will be assigned of course.
Sergejs Svitnevs
Honored Contributor

Re: xscreensaver disable for all users

Gnome:
I am not sure but you can change the settings for the current user (Run gconf-editor -> apps -> gnome_settings_daemon -> screensaver -> uncheck start_screensaver). Then copy .xscreensaver file to all your users' home directory.

Another variant: Why not replace the xscreensaver executable file with a little shell script that does nothing?
Alexander Chuzhoy
Honored Contributor

Re: xscreensaver disable for all users

Making changes for each user (even with script) is not acceptable by lazy sysadmin such as myself. :)

Anyway thanks.The KDE solution is great and it affects whole system.