用splashimage做个漂亮的引导界面

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
QQ724152667
帖子: 10
注册时间: 2008-11-16 9:47

用splashimage做个漂亮的引导界面

#1

帖子 QQ724152667 » 2009-04-19 14:41

代码: 全选

splashimage (hd0,4)/boot/grub/jj.xpm.gz 	#说明见下A:
timeout		2
default		0
color light-gray/black black/light-gray        #说明见下B:
border 0ffff0
background 0000ff	#选中菜单背景色
foreground 00ffff	#文本顔色

title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1



title		Ubuntu 8.10, kernel 2.6.27-7-generic
uuid		74af21d7-6ba1-45fd-b68e-ccf142644f2a
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=74af21d7-6ba1-45fd-b68e-ccf142644f2a ro ROOTFLAGS=syncio quiet splash 
initrd		/boot/initrd.img-2.6.27-7-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid		74af21d7-6ba1-45fd-b68e-ccf142644f2a
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=74af21d7-6ba1-45fd-b68e-ccf142644f2a ro ROOTFLAGS=syncio  single
initrd		/boot/initrd.img-2.6.27-7-generic

title		Ubuntu 8.10, memtest86+
uuid		74af21d7-6ba1-45fd-b68e-ccf142644f2a
kernel		/boot/memtest86+.bin
quiet

#A
##安装图像转换工具 convert ~$ sudo apt-get install imageMagick
###转换图像 ~$ sudo convert -resize 640x480 -colors 14 depth 8 -dither source.jpg destination.xpm
###### //文本640x480中是字母X,在Grub中使用的Imagesplash须是640*480大小,14色 ,Xpms格式


#B 注意这个值是无效的,但要正确设置(必须设定),好像色值大小顺序不能搞错。否则,背景可能不透明,或文本滚动不可见。
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: 用splashimage做个漂亮的引导界面

#2

帖子 hcym » 2009-04-19 15:17

nosplash
头像
QQ724152667
帖子: 10
注册时间: 2008-11-16 9:47

Re: 用splashimage做个漂亮的引导界面

#3

帖子 QQ724152667 » 2009-04-19 21:08

先备份:

代码: 全选

~$ sudo mv /boot/grub/menu.lst /boot/grub/menu.lst.backup
然后打开/boot/grub/menu.lst:

代码: 全选

~$ sudo gedit /boot/grub/menu.lst

在前面的位置插入:
splashimage (hd0,4)/boot/grub/jj.xpm.gz
default 0 #缺省windows
color light-gray/black black/light-gray
border 0ffff0 #l图文边框
background 0000ff
foreground 00ffff
savedeafault=true

可从网上下载任意JPG,JPEG 或从Windows卷持载Wallpaper。
上面忘了打包了

代码: 全选

~$ sudo gzip result.xpm
~$ sudo mv result.xpm.gz /boot/grub    
</br></br>

我的结果是jj.xpm.gz ubuntu引导区为(hdo,4),这些要适当改变。
头像
QQ724152667
帖子: 10
注册时间: 2008-11-16 9:47

Re: 用splashimage做个漂亮的引导界面

#4

帖子 QQ724152667 » 2009-04-19 21:20

hcym 写了:nosplash


至于接下来的UBUNTU引导界面的修改,完全可在首选顶-偏好设置 中来改变,包括界面颜色,行为。
回复