SUSE Conversations


Gnome Performance Script for SUSE Linux Enterprise Desktop 11, openSUSE 11.3



By: susethailand

October 27, 2010 3:03 pm

Reads:590

Comments:0

Rating:0

home page url: http://www.susethailand.com

This shell script optimizes some of the Gnome configuration options for simplicity and performance.

The last two steps also reapply these settings making them the defaults forced on every start of a Gnome session.

#!/bin/sh 

####################################################################
# The performance of the GNOME Desktop                                                                               #
# Copyright: © 2010 Sontaya Photibut                                                                                        # <susethailand.com@gmail.com>                                                                                                #
# Website: http://www.susethailand.com                                                                                    #
# License: GPLv2                                                                                                                             #
# This is the script is access the config database directly, Requires that gconfd is not running                                                                                                                                               #
# Script will be to setting all users                                                                                                #
####################################################################

#Setting the number of workspaces (Without Compiz)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type int --set /apps/metacity/general/num_workspaces 2

#Set ScreenSaver to Blank Only 
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/gnome-screensaver/mode blank-only

#Set Screen Blank to 30 min Timeout
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/gnome-screensaver/power_management_delay 30

#Disable ScreenSaver Lock 
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/gnome-screensaver/lock_enabled false

#Disable Suspend Lock
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-power-manager/lock/suspend false
 
#Disable Suspend Password
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-power-manager/lock/gnome_keyring_suspend false

#Disable Hibernate Lock
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-power-manager/lock/hibernate false

#Disable Hibernate Password
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-power-manager/lock/gnome_keyring_hibernate false

#Don't use wallpaper (Default=zoom)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/background/picture_options none

#Don't use a gradient backdrop (Default=solid)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/background/color_shading_type solid

#Set the background color to blue - Really purple
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/background/primary_color \#666699

#Desktop effects desable 
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /apps/metacity/general/compositing_manager false

#Don't show the Gnome splash page (Default=false)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /apps/gnome-session/options/show_splash_screen false

#Don't count how many files and their sizes in the Nautilus windows (Default=local_only)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/nautilus/preferences/show_directory_item_counts never

#Don't try to preview a sound (Default=local_only)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/nautilus/preferences/preview_sound never

#Don't show the text below the icon that describes the file (Default=local_only)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/nautilus/preferences/show_icon_text never

#Don't show image thumbnails
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/nautilus/preferences/show_image_thumbnails never
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Integer --set /apps/nautilus/preferences/thumbnail_limit 512000

#Set the Icon theme to gnome
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/interface/icon_theme gnome

#Set the GTK them to Sample (Default=>Clearlooks)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/interface/gtk_theme Simple 

#Don't start ESD (Default=false)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /desktop/gnome/sound/event_sounds false
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /desktop/gnome/sound/enable_esd false

#Don't show hidden files (Default=false)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /desktop/gnome/file_views/show_hidden_files false

#Don't show backup files (those marked with a ~)
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /desktop/gnome/file_views/show_backup_files false

#Finish
echo "Finish."

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags:
Categories: Free Tools, SUSE Linux Enterprise Desktop, Technical Solutions

Comment

RSS