第一步:
用GIMP或其它软件编辑一幅中意的图片,图片要求为:
1. 图片xpm文件格式
2. 大小为640x480
3. 只能是14色
调整大小: Image -> Scale Image, 将原值调整为640X480(pixels)后点"Scale"
调整图片为14色: Image -> Mode -> Indexed, 将"Generate optimum palette Maximum number of colors"值调整为14(注意不要勾选下面的"Enable dithering of transparency",点"Convert"
保存:File -> Save As ... 点"Select File Type (By Extension)", 选择"X pixmap image", 点"Save"
然后用gzip压缩下:
gzip yourfilename.xpm
产生一个文件"yourfilename.xpm.gz", 注意,此时就不要再改文件名字啦,因为.gz文件中含有文件的原始名字, grub依赖于它.
第二步:
修改/boot/grub/menu.lst
注释掉原有的splashimage配置项,没有splashimage配置项的自己在合适位置加入:
splashimage= (hd0,9)/boot/grub/splashimages/youfilename.xpm.gz
注意整个路径不要搞错了,尤其(hd0,9)要自己修改成图片所在的分区
保存文件退出.
---------------------------------------------------------------
参考:
/usr/share/doc/grub-splashimages/README
http://ruslug.rutgers.edu/~mcgrof/grub-images/
转自: http://hi.baidu.com/test/blog/item/8857b3199fdda74143a9ad44.html
用GIMP或其它软件编辑一幅中意的图片,图片要求为:
1. 图片xpm文件格式
2. 大小为640x480
3. 只能是14色
调整大小: Image -> Scale Image, 将原值调整为640X480(pixels)后点"Scale"
调整图片为14色: Image -> Mode -> Indexed, 将"Generate optimum palette Maximum number of colors"值调整为14(注意不要勾选下面的"Enable dithering of transparency",点"Convert"
保存:File -> Save As ... 点"Select File Type (By Extension)", 选择"X pixmap image", 点"Save"
然后用gzip压缩下:
gzip yourfilename.xpm
产生一个文件"yourfilename.xpm.gz", 注意,此时就不要再改文件名字啦,因为.gz文件中含有文件的原始名字, grub依赖于它.
第二步:
修改/boot/grub/menu.lst
注释掉原有的splashimage配置项,没有splashimage配置项的自己在合适位置加入:
splashimage= (hd0,9)/boot/grub/splashimages/youfilename.xpm.gz
注意整个路径不要搞错了,尤其(hd0,9)要自己修改成图片所在的分区
保存文件退出.
---------------------------------------------------------------
参考:
/usr/share/doc/grub-splashimages/README
http://ruslug.rutgers.edu/~mcgrof/grub-images/
转自: http://hi.baidu.com/test/blog/item/8857b3199fdda74143a9ad44.html