The policy setting for lock desktop

0 like 0 dislike
80 views
Good day!
There is a Park of PC (quite large) to which you want to configure a policy locking the desktop as follows:
1) lock the screen if idle for 10 minutes;
2) to require a password when unlocking.
Is it possible sageway problem to solve using a script, without resorting to the clatter mouse on the menus?

PS OS: Ubuntu 12.04 (with Unity and gnome classic)
by | 80 views

3 Answers

0 like 0 dislike
More clearly ask the question.
\r
Here is the answer.
\r
gconftool-2 --direct \\
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \\
--type bool \\
--set /apps/gnome-screensaver/idle_activation_enabled true
gconftool-2 --direct \\
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \\
--type bool \\
--set /apps/gnome-screensaver/lock_enabled true
gconftool-2 --direct \\
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \\
--type string \\
--set /apps/gnome-screensaver/mode blank-only
gconftool-2 --direct \\
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \\
--type int \\
--set /apps/gnome-screensaver/idle_delay 10
by
0 like 0 dislike
In Ubuntu 12.04 with Unity uses gnome-screensaver. Here it is necessary to configurati.
Istorable it works and does what you need, but some can be turned off. So you need now to restore order.
by
0 like 0 dislike
Puppet ( for example, right here ) will save you.
Well, or Chef.
Well or similar =)
\r
Split configs for the machines and have happiness.
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users