在Ubuntu下使用gsettings命令能修改系统相关的配置,不过命令对于大多数人用起来不是很方便,Ubuntu下也有系统注册表:dconf系统配置编辑器,执行下面的命令安装:
sudo apt-get install dconf-tools
注:以上图片上传到红联Linux系统教程频道中。
http://www.linuxdiyf.com/linux/
dconf不难使用,比方要修改桌面的壁纸,只要按操作树找到相应的键名,修改成值就行了。
桌面壁纸路径是:file:///home/ipad/Public/Wallpapers/win.jpg,要换成同一目录中的123.jpg。
如果使用gsettings命令:
gsettings set org.gnome.desktop.background picture-uri 'file:///home/ipad/Public/Wallpapers/123g'
很不方便吧,一般人哪懂这么多的命令字符。
如果用dconf系统配置编辑器就简单多了,找到org->gnome->desktop->background->picture-uri,把它的值改成file:///home/ipad/Public/Wallpapers/123g就行了,即使路径错了,也可以重置默认的值。
一些关于gsettings的用法:
gsettings reset org.gnome.desktop.wm.preferences theme默认gnome
gsettings set org.gnome.desktop.interface clock-show-date true顶部面板显示日期
gsettings set org.gnome.SessionManager logout-prompt 'false'禁止注销重关机启延时
gsettings set org.gnome.desktop.interface cursor-blink false禁止光标闪烁
gsettings org.gnome.desktop.interface menus-have-icons true显示菜单图标
gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true鼠标中键可用
gsettings set org.gnome.settings-daemon.plugins.power idle-dim-time <int>设置屏幕变暗时间
gsettings set org.gnome.desktop.interface can-change-accels true启用快捷键设置
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16']" 自动检测gedit语言
gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action "nothing|blank|suspend|hibernate|shutdown"合盖动作AC
gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action "nothing|blank|suspend|hibernate|shutdown"合盖动作(电池)
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"白名单
gsettings set org.gnome.desktop.media-handling automount "false"UU盘自动运行
gsettings set org.gnome.desktop.media-handling automount-open "false" 自动打开
gsettings set org.gnome.system.proxy.socks host ’192.168.1.1′代理服务器
gsettings set org.gnome.system.proxy.socks port 8080
gsettings set org.gnome.system.proxy mode ‘manual’
gsettings set org.gnome.system.proxy mode ‘none’禁用代理
gsettings set org.gnome.desktop.background show-desktop-icons true显示桌面图标
gsettings set org.gnome.desktop.interface ubuntu-overlay-scrollbars false禁用ubuntu滚动条
gsettings set org.gnome.desktop.interface gtk-theme 'Radiance'设置GTK风格
gsettings set org.gnome.desktop.interface icon-theme ''Theme_Name'设置图标风格
gsettings set org.gnome.desktop.interface font-name 'Microsoft YaHei 11'设置默认字体
gsettings set com.canonical.indicator.sound interested-media-players “['rhythmbox', 'vlc', 'amarok']”播放器
gsettings set com.canonical.Unity.Lenses remote-content-search none禁用网络搜索
gsettings set org.gnome.desktop.wm.preferences button-layout ‘:minimize,maximize,close’ 修改窗口按钮顺序