Ubah desktop GNOME dengan gconftool-2
Desktop GNOME dapat diubah melalui gcont-editor ataupun melalui gconftool-2.
Daftar isi
gconftool-2
Sintak
$ gconftool-2 --set /path/to/setting --type <type> "value"
Melihat Konfigurasi
$ gconftool-2 -R /
Melihat Konfigurasi desktop GNOME 2
$ gconftool-2 -R /desktop/gnome
Configuration Sources [2]
GConf looks for each value in a series of storage locations called configuration sources. These are specified in a file called /etc/gconf/<version>/path. Each configuration source has a backend that knows how to read it - for now, this is always the "xml" backend, which stores data in XML files.
By default, GConf comes configured as follows:
xml:readonly:/etc/gconf/gconf.xml.mandatory include "$(HOME)/.gconf.path" xml:readwrite:$(HOME)/.gconf xml:readonly:/etc/gconf/gconf.xml.defaults
Skema [2]
Keys normally have simple values such as integers, strings, or lists of those. However, a special kind of value called a schema can also be stored in GConf.
A schema is a bundle of metainformation describing a configuration setting. This metainformation includes the type of value, short documentation on the setting, and the factory default for that value. Schemas are conventionally stored in the database under the /schemas toplevel directory.
Contoh:
$ gconftool-2 --get /schemas/apps/metacity/general/num_workspaces Type: int List Type: *invalid* Car Type: *invalid* Cdr Type: *invalid* Default Value: 4 Owner: metacity Short Desc: Number of workspaces Long Desc: Number of workspaces. Must be more than zero, and has a fixed maximum (to prevent accidentally destroying your desktop by asking for 34 million workspaces).
Melihat Parameter
Melihat lokasi gambar background
$ gconftool-2 --get /desktop/gnome/background/picture_filename
Tipe Paramater Tipe yang dapat digunakan sesudah perintah type
$ gconftool-2 --set /path/to/setting --type
Adalah
int|bool|float|string|list|pair
Contoh pemakaian
[3] string example: The following command sets a Mandatory Background Image:
gconftool-2 --direct \ --config-source xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.mandatory \ --type string --set /desktop/gnome/background/picture_filename /usr/share/wallpapers/default-1600x1200.jpg
bool example: The following command sets the "Include a delete command" within Nautilus the default behaviour:
gconftool-2 --direct \ --config-source xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.defaults \ --type bool --set /apps/nautilus/preferences/enable_delete True
int example: The following command set the number of workspaces to 4 by default (SLED defaults to 1 unless you are running Xgl).
gconftool-2 --direct \ --config-source xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.defaults \ --type int --set /apps/metacity/general/num_workspaces 4
list example: The List type took me a while to get right, the following will change the Main Menu default Favorite Applications to something more suitable for an office.
gconftool-2 --direct \ --config-source xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.defaults \ --type list --list-type=string --set /desktop/gnome/applications/main-menu/file-area/user_specified_apps \ [nautilus-home.desktop,writer.desktop,MozillaFirefox.desktop,calc.desktop,scribus.desktop,impress.desktop,gimp.desktop,inkscape.desktop,gcalctool.desktop,dia.desktop]
Autohide
$ gconftool-2 --set --type integer /apps/panel/toplevels/top_panel_screen0/auto_hide_size 0
Dapat juga diubah melalui gconf-editor, lakukan:
ALT-F2 > "gconf-editor" > apps > panel > toplevels > top_panel_screen0 > auto_hide_size > 0
Disable User List
$ sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list true
Enable User List
$ sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list false
Ubah agar nautilus saat dibuka mengakses /home/user
$ gconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir true
Ubah agar nautilus saat dibuka mengakses /home/user/Desktop
$ gconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir false
Ubah default font sizes ke 8
$ gconftool-2 --set /apps/nautilus/preferences/desktop_font --type string "Sans 8" $ gconftool-2 --set /desktop/gnome/interface/document_font_name --type string "Sans 8" $ gconftool-2 --set /desktop/gnome/interface/font_name --type string "Sans 8" $ gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans Bold 8" $ gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "Monospace 8"
Ubah Font Widget
$ gconftool-2 --type string --set /desktop/gnome/interface/font_name "Serif 12"
Ubah gambar background dengan comet.jpg
$ gconftool-2 --set /desktop/gnome/background/picture_filename --type string "/usr/share/backgrounds/cosmos/comet.jpg"
Ubah Nautilus File Browser
$ gconftool-2 --set "/apps/nautilus/preferences/always_use_browser" --type bool TRUE $ gconftool-2 --set "/apps/nautilus/preferences/click_policy" --type string "single"
Gnome ScreenSaver Lock
$ gconftool-2 --set /apps/gnome-screensaver/lock_enabled --type bool 1"
Proxy Automatis [1]
Edit file ~/.xprofile
# Set the proxy if /sbin/ifconfig eth0 | grep -q 10.66.6.17 then gconftool-2 –set “/system/http_proxy/use_http_proxy” –type bool “true” else gconftool-2 –set “/system/http_proxy/use_http_proxy” –type bool “false” fi
Referensi