目錄
本章介紹了管理員可用於調整系統層級設定的 GNOME 組態選項,例如自定功能表、安裝主題、設定字型、變更偏好的應用程式以及鎖定功能。
這些組態選項儲存在 GConf 系統中。GConf 系統可以使用 gconftool-2 指令行介面或 gconf-editor GUI 等工具進行存取。
GNOME 桌面使用 GConf 管理其組態。GConf 是一個階層式結構的資料庫或登錄,使用它,使用者可以變更自己的設定,系統管理員可以為所有使用者設定預設值或必要值。GConf 設定可以透過指定存取路徑 (如 /desktop/gnome/background/picture_filename — 用於存放桌面背景圖片之檔案名稱的鍵) 的方式加以存取。
為了方便地瀏覽所有選項,可使用圖形 gconf-editor。如需有關 gconf-editor 的簡短使用說明,請參閱第 4.1.1 節「圖形 gconf-editor」。若您需要可編寫指令解決方案,請參閱第 4.1.2 節「gconftool-2 指令行介面」。
![]() | GNOME 控制中心對話方塊 |
|---|---|
若操作不當,直接存取 Gconf 系統可能會導致系統無法使用。 對於那些只是想調整部分一般桌面功能但又缺乏經驗的使用者,建議使用 GNOME 控制中心組態對話方塊。若要啟動 GNOME 控制中心,請按一下+。如需詳細資訊,請參閱第 3.1 節「控制中心」 (第 3 章「自訂您的設定」, ↑GNOME 使用者指南)。 | |
gconf-editor 可讓您瀏覽 GConf 設定並以互動方式變更這些設定。若要在預設的檢視窗中啟動 gconf-editor,請按一下+,然後在群組中按一下。
依預設,使用者可以變更自己桌面的設定,管理員可以準備用於指定預設值或必要值的設定。例如,若要將打字休息功能做為強制功能向所有使用者啟用,請執行下列步驟:
在指令行中以 root 身分啟動 gconf-editor。
展開左側樹狀窗格中的 /desktop/gnome/typing_break。
在上按一下滑鼠右鍵,選取。完成後,便可以管理此功能。
透過按一下+開啟視窗。
展開視窗之樹狀窗格中的 /desktop/gnome/typing_break,然後按一下。
透過按一下+關閉視窗以儲存設定。
如需有關 gconf-editor 的詳細資訊,請參閱位於 http://library.gnome.org/users/gconf-editor/stable/ 的《Configuration Editor Manual》(組態編輯器手冊)。
若要透過指令行或在程序檔中變更設定,請使用 gconftool-2。以下是一些範例︰
以 root 身分使用以下指令列出所有鍵的值:
gconftool-2 --recursive-list /
如果只對子集感興趣,請指定存取路徑,如 /desktop/gnome/typing_break:
gconftool-2 --recursive-list /desktop/gnome/typing_break
若要列出強制設定:
gconftool-2 --recursive-list \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory /
若要設定強制設定 (如 typing_break):
gconftool-2 \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool \ --set /desktop/gnome/typing_break/enabled true
若要取消設定強制設定:
gconftool-2 \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --unset /desktop/gnome/typing_break/enabled
對於預設設定,請使用 /etc/gconf/gconf.xml.default。
如需有關 gconftool-2 的詳細資訊,請參閱位於 http://library.gnome.org/admin/system-admin-guide/stable/gconf-6.html.en 的《GNOME Desktop System Administration Guide》(GNOME 桌面系統管理指南) 中的「GConf Command Line Tool」(GConf 指令行工具) 一節以及 gconftool-2 線上文件 (man gconftool-2)。