今天第一天上班。发现Fedora9之后GDM不能使用gdmsetup命令来修改了,咋办。
bash$ gdmsetup
-bash: gdmsetup: command not found
那么,不能改主题就先改背景下先吧。
方法一:
bash# cd /usr/share/backgrounds
bash# cd leonidas && vim leonidas.xml
看到下面的东西:
<background>
<static>
<!-- 24 Hours -->
<duration>86400.00</duration>
<file>
<size width="800" height="480">/home/foo/background.jpg</size>
<size width="1280" height="1024">/home/foo/background.jpg</size>
<size width="1600" height="1200">/home/foo/background.jpg</size>
<size width="1920" height="1200">/home/foo/background.jpg</size>
</file>
</static>
</background>
哈,改home/foo/background.jpg就能得到自己的背景了。
方法二:
su -c 'gconftool-2 --direct --config-source xml:readwrite:/var/lib/gdm/.gconf -s --type string /desktop/gnome/background/picture_filename /home/foo/background.jpg' gdm
命令选项 | 注释 |
-s, --set | 设置键值并同步。需要与 —type 同时使用 |
-g, --get | 打印一个键值到标准屏幕输出 |
-u, --unset | 重置 Key 值为 GConf 系统中的默认值 |
-a, --all-entries | 打印目录中的所有键/值组合 |
--all-dirs | 打印一个目录的所有子目录 |
-R, --recursive-list | 递归打印一个目录的子目录与条目 |
--dir-exists=STRING | 返回目录是否存在。0为目录存在,2为不存在 |
--set-schema | 设置一个 schema 的属性,与 --short-desc, --long-desc, --owner, 和 –type 同时使用 |
--makefile-install-rule | 安装 schema 文件到 GConf 中。GCONF_CONFIG_SOURCE 环境变量必须设置为相应的配置源 |
--makefile-uninstall-rule | 卸载 schema 文件。与 --makefile-install-rule 相同,GCONF_CONFIG_SOURCE 环境变量必须设置为相应的配置源 |
方法三:
那就是可以通过给GDM降级到2.20.1.5版本,最后再强制安装一下plymouth-gdm-hooks来实现F8的登录效果!
参考自:http://hacktux.com/fedora/9/gdm