禁用一些系统全局的设置
#禁用用户切换
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_user_switching true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_print_setup true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_printing true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_lock_screen true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_command_line true
#设置工作区数
gconftool-2 -t int -s /apps/metacity/general/num_workspaces 1
#设置桌面图标的显示
gconftool-2 -t bool -s /apps/nautilus/desktop/computer_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/home_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/network_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/trash_icon_visible false
#不显示已挂载的卷
gconftool-2 -t bool -s /apps/nautilus/desktop/volumes_visible false
#面板设置
#gconftool-2 --recursive-unset /apps/panel/applets
#gconftool-2 --recursive-unset /apps/panel/objects
gconftool-2 -t string -s /apps/panel/toplevels/bottom_panel/orientation bottom
gconftool-2 -t list --list-type=string -s /apps/panel/general/applet_id_list [window_list]
gconftool-2 --unset /apps/panel/general/object_id_list
gconftool-2 -t list --list-type=string -s /apps/panel/general/toplevel_id_list [bottom_panel]
gconftool-2 -t bool -s /apps/panel/applets/window_list/locked false
gconftool-2 -t int -s /apps/panel/applets/window_list/position 0
gconftool-2 -t bool -s /apps/panel/applets/window_list/locked true
#快捷方式设置
#gconftool-2 --recursive-unset /apps/metacity/global_keybindings
#gconftool-2 --recursive-unset /apps/metacity/keybinding_commands
#gconftool-2 --recursive-unset /apps/metacity/window_keybindings
gconftool-2 --recursive-list /apps/metacity/global_keybindings | sed 's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s \/apps\/metacity\/global_keybindings\//g' | sh
gconftool-2 --recursive-list /apps/metacity/keybinding_commands |
sed 's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s \/apps\/metacity\/keybinding_commands\//g' | sh
gconftool-2 --recursive-list /apps/metacity/window_keybindings | sed 's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s \/apps\/metacity\/window_keybindings\//g' | sh
都比较简单!
如果大家想看命令的具体作用,可使用gconf-edit 查到相应的路径,它会有很详细的说明。