红联Linux门户
Linux帮助

搞定Debian图形启动

发布时间:2006-02-22 16:50:45来源:红联作者:Mrlinux
* 参考网站
* www.bootsplash.de
* www.bootsplash.org

* 主要步骤
* 编译支持 bootsplash 的内核
* 配置grub或者lilo
* 安装支持 bootsplash 的启动脚本,和相关程序
* 安装 bootsplash 启动主题,一陀一驼的

* 最重要的事情
* 把这一行 deb http://www.bootsplash.de/files/debian unstable main
加入你的/etc/apt/sources.list
* apt-get update
* apt-cache show bootsplash 看看有没有软件说明

* 编译内核
* 懒人可以直接到 http://bbs.buaa.edu.cn/kernel-image-2.6.10-1-386_2.6.10-99
bootsplash_i386.deb 下载我编译的for 386的内核,dpkg -i 安装之

* 勤快人可以自己定制内核
* apt-get install kernel-patch-bootsplash (bootsplash内核补丁)
* apt-get install kernel-source-2.6.xx
* cd /usr/src; tar jvxf kernel-source-2.6.xx*bz2
* cd kernel-source-2.6.xx*
* 打上 bootsplash 的补丁
../kernel-patches/all/apply/bootsplash
* make menuconfig (确保以下参数正确设置)
* make-kpkg --initrd kernel_image
* 上一步将在 /usr/src/ 下面生成一个 kernel-image-2.6.xx-xx.deb, 用dpkg -i
kernel-image-2.6.xx-xx.deb 安装之

* 中不溜的人可以尝试 apt-src (太麻烦了,以后再说)

* 配置grub
* 内核装完之后,需要通过grub配置内核启动参数
* vi /boot/grub/menu.lst
* 找到有kopt那行,修改成
# kopt=root=/dev/hda2 ro vga=0x314 splash=silent
* 注意不要把kopt前面的#去掉
* 不要照抄我的root参数
* vga指定的是console的分辨率,取值参照下表

| 640x480 800x600 1024x768 1280x1024
----+-------------------------------------
256 | 0x301 0x303 0x305 0x307
32k | 0x310 0x313 0x316 0x319
64k | 0x311 0x314 0x317 0x31A
16M | 0x312 0x315 0x318 0x31B

* 记得加上 splash=silent 参数

* 修改完配置文件之后记得 update-grub

* 安装支持 bootsplash 的启动脚本
* apt-get install sysv-rc-bootsplash bootsplash
* 上面会安装一个默认的启动主题,并且会出现 bootsplash 的配置界面
应该很好懂的
* 安装到这一步就可以重启看看效果了

* 安装新的启动主题
* apt-cache search bootsplash-theme 可以搜索到很多,总共90多M
* bootsplash-theme-debian-sarge bootsplash-theme-debian-tux 还比较漂亮
* 注意有的主题只能支持有限的几种分辨率,如果分辨率不对,就不能显示图形了
* 每次安装新主题以后请用 dpkg-reconfigure bootsplash 重新配置启动界面
文章评论

共有 0 条评论