最近因为比较迷单车骑行,所以打算把从一些站点下载的骑行图片做成桌面背景,又想实现windows7那样,桌面定时更换的功能,经过一段时间的努力,终于如愿以偿,下面我就将我的主要操作步骤写下来,分享之:
基础环境:
[staid@staid ~]$ uname -ar
Linux staid.ncist.edu 2.6.33.6-147.fc13.x86_64 #1 SMP Tue Jul 6 22:32:17 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
[staid@staid ~]$

Xwindow:
Gnome桌面环境

下面以staid的xwindow桌面为例做修改:
[staid@staid ~]$ su
密码:
#在以下文件中增加如下一段
[root@staid staid]# vi .gnome2/backgrounds.xml

  <wallpaper deleted="false">
    <name>&#x5B87;&#x5B99;</name>
    <filename>/usr/share/backgrounds/bybike/background-1.xml</filename>
    <options>zoom</options>
    <shade_type>vertical-gradient</shade_type>
    <pcolor>#22224b4b6868</pcolor>
    <scolor>#14142c2c3d3d</scolor>
  </wallpaper>
在/usr/share/backgrounds/目录建立bybike文件家,从cosmos文件夹中copy文件background-1.xml 然后把你的照片放入bybike文件夹中,然后按照background-1.xml中的格式依次更改其中的文件名称,当然你可以增加元素,但是要符合xml规范。完毕之后保存。

然后我们在桌面右击,选择更改背景,然后选择你的图片集即可。