[CentOS] gconftool-2 scripted customizations (was Re: running X as root in centos 6)

Wed Jul 27 16:18:39 UTC 2011
Patrick Lists <centos-list at puzzled.xs4all.nl>

On 07/27/2011 05:34 PM, 夜神 岩男 wrote:
> PS: If anyone knows anything better than the above sort of commands,
> please pipe up. I've been doing a *lot* of gconftool-2 scripted
> customizations lately and some of the options are pretty hard to
> research. Things like setting default colors for gnome-terminal or
> changing icons defaults, etc. are a fruitful source of irritating
> mistakes. Any better ideas are welcome -- thanks in advance.

Welcome to the config wasteland created by the Gnome devs. Why have a 
gui when you can remove options or the entire gui and hide the good 
stuff in the darkest & deepest Gnome basement only to be seen when 
singing magical gconf incantations? :) I am not sure if there is any 
appreciation for pre-configured mass deployment of Gnome based desktops.

Afaik there is no other way then to venture into gconf/dconf land. I 
have been trying to figure out how to make Gnome 3 on Fedora 15 less 
annoying and return some of the Gnome 2 goodness. Some of the config 
options only seem to show up in gconf while others only show up in 
dconf. It's a config hell probably only surpassed by Window's DLL hell.

Some of the gnome-terminal color stuff I have been using for F14:

# gnome-terminal: don't use theme colors
gconftool-2 --direct 
--config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool 
/apps/gnome-terminal/profiles/Default/use_theme_colors false

# gnome-terminal: set background color to black
gconftool-2 --direct 
--config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string 
/apps/gnome-terminal/profiles/Default/background_color "#000000000000"

# gnome-terminal: set foreground color to white
gconftool-2 --direct 
--config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string 
/apps/gnome-terminal/profiles/Default/foreground_color "#FFFFFFFFFFFF"

# gnome-terminal: unlimited scrollback
gconftool-2 --direct 
--config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool 
/apps/gnome-terminal/profiles/Default/scrollback_unlimited true

# gnome-terminal: disable F10 so you can quit mc
gconftool-2 --direct 
--config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool 
/apps/gnome-terminal/global/use_menu_accelerators false

Hope this helps.

Good luck. We will need it :)

Regards,
Patrick