Ubah desktop GNOME dengan gconftool-2: Perbedaan revisi
Baris 1: | Baris 1: | ||
Desktop GNOME dapat diubah melalui gcont-editor ataupun melalui gconftool-2. | Desktop GNOME dapat diubah melalui gcont-editor ataupun melalui gconftool-2. | ||
− | + | == gconftool-2 == | |
− | + | === Sintak === | |
− | Sintak | + | |
$ gconftool-2 --set /path/to/setting --type <type> "value" | $ gconftool-2 --set /path/to/setting --type <type> "value" | ||
− | Melihat Konfigurasi | + | === Melihat Konfigurasi === |
$ gconftool-2 -R / | $ gconftool-2 -R / | ||
− | Melihat Konfigurasi desktop GNOME 2 | + | === Melihat Konfigurasi desktop GNOME 2 === |
$ gconftool-2 -R /desktop/gnome | $ 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 | Melihat lokasi gambar background | ||
$ gconftool-2 --get /desktop/gnome/background/picture_filename | $ gconftool-2 --get /desktop/gnome/background/picture_filename | ||
Baris 22: | Baris 50: | ||
int|bool|float|string|list|pair | int|bool|float|string|list|pair | ||
− | + | == Contoh pemakaian == | |
− | + | === Autohide === | |
$ gconftool-2 --set --type integer /apps/panel/toplevels/top_panel_screen0/auto_hide_size 0 | $ gconftool-2 --set --type integer /apps/panel/toplevels/top_panel_screen0/auto_hide_size 0 | ||
Baris 29: | Baris 57: | ||
ALT-F2 > "gconf-editor" > apps > panel > toplevels > top_panel_screen0 > auto_hide_size > 0 | ALT-F2 > "gconf-editor" > apps > panel > toplevels > top_panel_screen0 > auto_hide_size > 0 | ||
− | Disable User List | + | === Disable User List === |
$ sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list true | $ sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list true | ||
− | Enable User List | + | === Enable User List === |
$ sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list false | $ sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list false | ||
− | Ubah agar nautilus saat dibuka mengakses /home/user | + | === Ubah agar nautilus saat dibuka mengakses /home/user === |
$ gconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir true | $ gconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir true | ||
Baris 41: | Baris 69: | ||
$ gconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir false | $ gconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir false | ||
− | Ubah default font sizes ke 8 | + | === Ubah default font sizes ke 8 === |
$ gconftool-2 --set /apps/nautilus/preferences/desktop_font --type string "Sans 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/document_font_name --type string "Sans 8" | ||
Baris 48: | Baris 76: | ||
$ gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "Monospace 8" | $ gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "Monospace 8" | ||
− | Ubah Font Widget | + | === Ubah Font Widget === |
$ gconftool-2 --type string --set /desktop/gnome/interface/font_name "Serif 12" | $ gconftool-2 --type string --set /desktop/gnome/interface/font_name "Serif 12" | ||
− | Ubah gambar background dengan comet.jpg | + | === Ubah gambar background dengan comet.jpg === |
$ gconftool-2 --set /desktop/gnome/background/picture_filename --type string "/usr/share/backgrounds/cosmos/comet.jpg" | $ gconftool-2 --set /desktop/gnome/background/picture_filename --type string "/usr/share/backgrounds/cosmos/comet.jpg" | ||
− | Ubah Nautilus File Browser | + | === Ubah Nautilus File Browser === |
$ gconftool-2 --set "/apps/nautilus/preferences/always_use_browser" --type bool TRUE | $ gconftool-2 --set "/apps/nautilus/preferences/always_use_browser" --type bool TRUE | ||
$ gconftool-2 --set "/apps/nautilus/preferences/click_policy" --type string "single" | $ gconftool-2 --set "/apps/nautilus/preferences/click_policy" --type string "single" | ||
− | Gnome ScreenSaver Lock | + | === Gnome ScreenSaver Lock === |
$ gconftool-2 --set /apps/gnome-screensaver/lock_enabled --type bool 1" | $ gconftool-2 --set /apps/gnome-screensaver/lock_enabled --type bool 1" | ||
− | Proxy Automatis [1] | + | === Proxy Automatis [1] === |
Edit file ~/.xprofile | Edit file ~/.xprofile | ||
Baris 71: | Baris 99: | ||
gconftool-2 –set “/system/http_proxy/use_http_proxy” –type bool “false” | gconftool-2 –set “/system/http_proxy/use_http_proxy” –type bool “false” | ||
fi | fi | ||
+ | |||
Referensi | Referensi | ||
* [1] http://igos-nusantara.or.id/wiki/index.php?title=Ubah_desktop_GNOME_dengan_gconftool-2&action=edit | * [1] http://igos-nusantara.or.id/wiki/index.php?title=Ubah_desktop_GNOME_dengan_gconftool-2&action=edit | ||
+ | * [2] http://projects.gnome.org/gconf/ |
Revisi per 9 Juni 2010 15.23
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
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