SUSE LINUX Enterprise & openSUSE Community
มีนาคม 23, 2019, 08:36:57 PM *
ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
ส่งอีเมล์ยืนยันการใช้งาน?

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
ข่าว:
 
   หน้าแรก   ช่วยเหลือ ค้นหา เข้าสู่ระบบ สมัครสมาชิก  

[Why we need your support] SUSE and openSUSE are trademarks of Attachmate Group, Inc. - WE ARE NOT IN ANY WAY ASSOCIATED WITH SUSE AND ATTACHMATE GROUP. SUSEThailand.com is a SUSE Linux user and community found in Thailand but not limited to other country suse linux user to join in. Currently active contents (How to's, Scripts, Tips, Tricks, Tutorials, Linux Command Line, and Troubleshooting) this suse linux how to's and expert support are SUSE Linux.
หน้า: [1]   ลงล่าง
  พิมพ์  
ผู้เขียน
หัวข้อ: Gnome Performance Script for openSUSE11, SLEx11  (อ่าน 1949 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
Sontaya
Administrator
Expert : ผู้เชี่ยวชาญ
*****

Karma: +1/-0
ออฟไลน์ ออฟไลน์

กระทู้: 1931


Administrator


เว็บไซต์
« เมื่อ: ตุลาคม 12, 2010, 06:45:23 PM »


โค๊ด:
#!/bin/sh
# Gnome Performance of SUSE Linux
# By: Sontaya Photibut, <susethailand.com@gmail.com>, 12/10/2010
# Website: http://www.susethailand.com
# For OpenSUSE11, SLEx11
# Schemas path "/usr/share/gconf/schemas/"
# How to use: Copy this script to "/etc/profile.d" and set execute it.

### gnome-session.schemas ##
# Don't show the Gnome splash page (Default=false)
gconftool-2 --type bool --set /apps/gnome-session/options/show_splash_screen false

##  apps_nautilus_preferences.schemas ##
# Don't count how many files and their sizes in the Nautilus windows (Default=local_only)
gconftool-2 --type string --set /apps/nautilus/preferences/show_directory_item_counts never
# Don't try to preview a sound (Default=local_only)
gconftool-2 --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 --type string --set /apps/nautilus/preferences/show_icon_text never

# Don't show image thumbnails
gconftool-2 --type string --set /apps/nautilus/preferences/show_image_thumbnails never
gconftool-2 --type Integer --set /apps/nautilus/preferences/thumbnail_limit 512000

## desktop_gnome_background.schemas ##
# Don't use wallpaper (Default=zoom)
gconftool-2 --type string --set /desktop/gnome/background/picture_options none
# Don't use a gradient backdrop (Default=solid)
gconftool-2 --type string --set /desktop/gnome/background/color_shading_type solid
# Set the background color to blue - Really purple :) (Default=#66ba00)
gconftool-2 --type string --set /desktop/gnome/background/primary_color \#666699
# Disable desktop picture background
gconftool-2 --type bool --set /desktop/gnome/background/draw_background false

## desktop_gnome_interface.schemas ##
# Set the Icon theme to gnome
gconftool-2 --type string --set /desktop/gnome/interface/icon_theme gnome
# Set the GTK them to Sample (Default=>Clearlooks)
gconftool-2 --type string --set /desktop/gnome/interface/gtk_theme Simple


## desktop_gnome_sound.schemas ##
# Don't start ESD (Default=false)
gconftool-2 --type bool --set /desktop/gnome/sound/event_sounds false
gconftool-2 --type bool --set /desktop/gnome/sound/enable_esd false

## apps_nautilus_preferences.schemas ##
# Don't show hidden files (Default=false)
gconftool-2 --type bool --set /desktop/gnome/file_views/show_hidden_files false
# Don't show backup files (those marked with a ~)
gconftool-2 --type bool --set /desktop/gnome/file_views/show_backup_files false
แจ้งลบกระทู้นี้หรือติดต่อผู้ดูแล   บันทึกการเข้า

ageLOC Technology
Sontaya
Administrator
Expert : ผู้เชี่ยวชาญ
*****

Karma: +1/-0
ออฟไลน์ ออฟไลน์

กระทู้: 1931


Administrator


เว็บไซต์
« ตอบ #1 เมื่อ: ตุลาคม 21, 2010, 06:44:18 PM »


Updated: 21/10/2010

โค๊ด:
#!/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              
# The permissions on this configuration source are set to Read Only. Users cannot overwrite the values in this source, so the preferences in the source are mandatory.
# 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

echo "Finish."
« แก้ไขครั้งสุดท้าย: พฤศจิกายน 14, 2010, 09:20:36 AM โดย Sontaya » แจ้งลบกระทู้นี้หรือติดต่อผู้ดูแล   บันทึกการเข้า

ageLOC Technology
Sontaya
Administrator
Expert : ผู้เชี่ยวชาญ
*****

Karma: +1/-0
ออฟไลน์ ออฟไลน์

กระทู้: 1931


Administrator


เว็บไซต์
« ตอบ #2 เมื่อ: พฤศจิกายน 09, 2012, 05:04:44 PM »


Updated: 9/11/2012

โค๊ด:
#!/bin/bash
#
# Gnome Performance of SUSE Linux
# By: Sontaya Photibut, <susethailand.com@gmail.com>, 9/11/2012
# Website: http://www.susethailand.com
# For OpenSUSE11, SLEx11
# Path schemas "/usr/share/gconf/schemas/"
# How to use: Copy this script to "/etc/profile.d" and set execute it.

### gnome-session.schemas ###
# Don't show the Gnome splash page (Default=false)
gconftool-2 --type bool --set /apps/gnome-session/options/show_splash_screen false

###  apps_nautilus_preferences.schemas ###
# Don't count how many files and their sizes in the Nautilus windows (Default=local_only)
gconftool-2 --type string --set /apps/nautilus/preferences/show_directory_item_counts never
# Don't try to preview a sound (Default=local_only)
gconftool-2 --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 --type string --set /apps/nautilus/preferences/show_icon_text never

# Don't show image thumbnails
gconftool-2 --type string --set /apps/nautilus/preferences/show_image_thumbnails never
gconftool-2 --type Integer --set /apps/nautilus/preferences/thumbnail_limit 512000

### desktop_gnome_background.schemas ###
# Don't use wallpaper (Default=zoom)
gconftool-2 --type string --set /desktop/gnome/background/picture_options none
# Don't use a gradient backdrop (Default=solid)
gconftool-2 --type string --set /desktop/gnome/background/color_shading_type solid
# Set the background color to blue - Really purple :) (Default=#66ba00)
gconftool-2 --type string --set /desktop/gnome/background/primary_color \#666699
# Disable desktop picture background
gconftool-2 --type bool --set /desktop/gnome/background/draw_background false

### desktop_gnome_interface.schemas ###
# Set the Icon theme to gnome
gconftool-2 --type string --set /desktop/gnome/interface/icon_theme gnome
# Set the GTK them to Sample (Default=>Clearlooks)
gconftool-2 --type string --set /desktop/gnome/interface/gtk_theme Simple


### desktop_gnome_sound.schemas ###
# Don't start ESD (Default=false)
gconftool-2 --type bool --set /desktop/gnome/sound/event_sounds false
gconftool-2 --type bool --set /desktop/gnome/sound/enable_esd false

### apps_nautilus_preferences.schemas ###
# Don't show hidden files (Default=false)
gconftool-2 --type bool --set /desktop/gnome/file_views/show_hidden_files false
# Don't show backup files (those marked with a ~)
gconftool-2 --type bool --set /desktop/gnome/file_views/show_backup_files false

# Enable VNC
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type list --list-type=string --set /desktop/gnome/remote_access/authentication_methods [vnc]
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/remote_access/icon_visibility never
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/remote_access/enabled True
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/remote_access/prompt_enabled False
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/remote_access/require_encryption False
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/remote_access/view_only False
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/remote_access/vnc_password XXXXXXXXX

# Change Screensaver Behaviour
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type int --set /apps/gnome-screensaver/cycle_delay 30
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 int --set /apps/gnome-screensaver/idle_delay 30
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type int --set /apps/gnome-screensaver/lock_delay 30
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-screensaver/lock_enabled False
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 bool --set /apps/gnome-screensaver/user_switch_enabled False

### Keyboard stetting
# us,th
gconftool-2 --type list --list-type=string --set /desktop/gnome/peripherals/keyboard/kbd/layouts [us,th]
# Keys change(Alt+Shift)
gconftool-2 --type list --list-type=string --set /desktop/gnome/peripherals/keyboard/kbd/options ["grp grp:alt_shift_toggle"]
# Gnome mouse keys
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/accessibility/keyboard/mousekeys_enable False

การตั้งค่าคีย์บอร์ดภาษาไทยและปุ่มสลับภาษาให้กับทุกผู้ใช้โดยอัตโนมัติ (Gconf keyboard layout options)
« แก้ไขครั้งสุดท้าย: พฤศจิกายน 09, 2012, 05:15:10 PM โดย Sontaya » แจ้งลบกระทู้นี้หรือติดต่อผู้ดูแล   บันทึกการเข้า

ageLOC Technology
หน้า: [1]   ขึ้นบน
  พิมพ์  
 
กระโดดไป:  

(@)2007 SUSE Linux user community found in Thailand. This site is not an official openSUSE and SUSE website, and is not in any way affiliated with or endorsed by SUSE Linux GmbH or Novell. openSUSE and SUSE are trademarks of Novell, Inc. in the United States and other countries.
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
หน้านี้ถูกสร้างขึ้นภายในเวลา 0.055 วินาที กับ 21 คำสั่ง (Pretty URLs adds 0.011s, 2q)