首先在您的 apt 源里加上这两行:
|
CODE:
deb http://debian.bootsplash.de unstable main
deb-src http://debian.bootsplash.de unstable main |
然后用 apt-get update 更新一下软件列表。
接下来,先安装 bootsplash 的内核补丁
|
CODE:
apt-get install kernel-patch-bootsplash
|
然后重新编译内核:
|
CODE:
apt-get install debhelper modutils kernel-package libncurses5-dev
apt-get install linux-source-2.6.12 apt-get install fakeroot vi /etc/kernel-pkg.conf # 输入我的名字和邮件地址 cd /usr/src # 创建目录 tar -xjvf linux-source-2.6.12.tar.bz2 cd linux-source-2.6.12 # 假如这是您的内核源码 ../kernel-patches/all/apply/bootsplash # 给内核打补丁 cp /boot/config-2.6.12-1-686 .config # 将当前配置设定为默认配置 make menuconfig # 按自己的喜好来定制 make-kpkg clean # 必须执行这步 fakeroot make-kpkg --append_to_version -686 --initrd --revision=2.6.12-10 --stem linux kernel_image modules_image cd .. dpkg -i *.deb |
注意:在上面定制内核选项时,要选择下列项目:
|
CODE:
Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers Processor type and features ---> [*] MTRR (Memory Type Range Register) support Device Drivers ---> Block devices ---> <*> Loopback device support <*> RAM disk support (4096) Default RAM disk size [*] Initial RAM disk (initrd) support Graphics support ---> [*] Support for frame buffer devices [*] VESA VGA graphics support Console display driver support ---> [*] Video mode selection support <*> Framebuffer Console support Bootsplash configuration ---> [*] Bootup splash screen |
新内核编译并安装以后,就已支持 BootSplash,下面就能够安装 BootSplash 的包和主题:
|
CODE:
apt-get install bootsplash bootsplash-theme-debian sysv-rc-bootsplash
|
注意:安装 sysv-rc-bootsplash 包时,要确定您的 sysv-rc 的包 2.86.ds1-1(stable) 版本的,假如是 testing 版本安装可能会失败。
配置 bootsplash 时,他会让您选择 initrd 的位置,您就选择您刚刚编译并安装好的那个 /boot/initrd.img-2.6.12-686 就能够了。
然后是配置 grub:
|
CODE:
title Debian GNU/Linux, kernel 2.6.12-686 (silent)
root (hd0,0) kernel /boot/vmlinuz-2.6.12-686 root=/dev/hda1 ro vga=791 splash=silent initrd /boot/initrd.img-2.6.12-686 savedefault boot title Debian GNU/Linux, kernel 2.6.12-686 (bootsplash) root (hd0,0) kernel /boot/vmlinuz-2.6.12-686 root=/dev/hda1 ro vga=791 initrd /boot/initrd.img-2.6.12-686 savedefault boot title Debian GNU/Linux, kernel 2.6.12-686 (recovery mode) root (hd0,0) kernel /boot/vmlinuz-2.6.12-686 root=/dev/hda1 ro single initrd /boot/initrd.img-2.6.12-686.orig savedefault boot |
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




