Script for enabling screen savers in GNOME and KDE on Centos 5.x

Home » CentOS » Script for enabling screen savers in GNOME and KDE on Centos 5.x
CentOS No Comments

Hi Friends,

I am trying to configure screensavers settings on Gnome and KDE running Centos 5.x 32-bit environment. I need to prepare a script which will be push by Puppet and this script should be able to change settings like idle_delay, set customized password-protected screen saver, enabling lock etc..

I have tried below commands for Gnome and somehow the settings are not taking place. The users screensavers setting remains the same.

Gnome Settings:
gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory –type int –set /apps/gnome-screensaver/idle_delay 4 gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory –type boolean –set /apps/gnome-screensaver/lock_enabled true gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory –type boolean –set /apps/gnome-screensaver/idle_activation_enabled true gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.defaults –set –type list

LEAVE A COMMENT