实验环境
debian 4.0 或 debian 5.0都可
第一部分:
#apt-cdrom add
#apt-get update
#apt-get install gcc g++ make kernel-package //建立内核编译的环境,这是在进行整个系统改装时候,必须要作的一个步骤!
#cp linux-2.6.22.tar.bz2 /usr/src
#cd /usr/src/
#tar -jxvpf linux-2.6.22.tar.bz2
#cp bootsplash-3.1.6-2.6.22.diff /usr/src
#cd /usr/src/linux-2.6.22
#patch -p1 < ../bootsplash-3.1.6-2.6.22.diff //安装bootsplash的补丁
#cp config-2.6.22charm-1 /usr/src/linux-2.6.22/.config (这配置支持fb,支持ipv6,支持狼牙,支持触摸屏幕,支持bootsplash)
#make oldconfig
#make-kpkg clean
#make-kpkg --revision=charm1.0-1 --initrd kernel_image //--revision后面不能跟下划线,否则编译无法通过!
#dpkg -i linux-image............deb //将编译完成的内核安装到系统中
或者直接安装已经编译好的内核包
#dpkg -i linux-image-2.6.22charm-1_2.6.22charm-2_i386.deb
备注:
在debian上重新生成img文件,需要用到mkinitrd命令(需要安装cramprogfs,dash,initrd-tools三个软件包)
命令格式如下:mkinitrd -o XXXXXX.img 2.6.22 (redhat系列的则没有-O这个选项)
第二部分:
已经安装好2.6.22内核(打好了bootsplash内核补丁),并且进入2.6.22内核运行
#dpkg -i bootsplash-theme-debian_0.5-7.1_all.deb
#dpkg -i bootsplash_3.3-2_i386.deb
#rm -rvf /etc/bootsplash/themes
#cp bootsplash_themes_umpc.tar.bz2 /etc/bootsplash/
#tar -jxvpf bootsplash_themes_umpc.tar.bz2
#update-initramfs -u
#cp grub_daisy.xpm.gz /boot/grub
#vi /boot/grub/menu.lst
title Debian GNU/Linux, kernel 2.6.22charm-1
root (hd0,0)
kernel /boot/vmlinuz-2.6.22charm-1 root=/dev/sda1 vga=791 ro single
initrd /boot/initrd.img-2.6.22charm-1
title Debian GNU/Linux, kernel 2.6.22charm-1 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22charm-1 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.22charm-1
修改成如下
default=0
timeout=3
splashimage /boot/grub/grub_daisy.xpm.gz
title Charm Linux 1.0
root (hd0,0)
kernel /boot/vmlinuz-2.6.22charm-1 root=/dev/sda1 vga=791 splash=silent
initrd /boot/initrd.img-2.6.22charm-1
title Charm Linux 1.0
root (hd0,0)
kernel /boot/vmlinuz-2.6.22charm-1 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.22charm-1
#mv /etc/init.d/rc /etc/init.d/rc_bak
#cp rc_debian30 /etc/init.d/rc
#mv /sbin/splash.sh /sbin/splash.sh_bak
#cp splash.sh_debian30 /sbin/splash.sh
#reboot
即可看到关机和开机时的启动动画!
另外一种安装方式
进入原先系统自带的内核 2.6.18,装好bootsplash的两个deb包
#cd /etc/bootsplash
#rm -rvf ./*
#cp themes_umpc_charmlinux.tar.bz2 /etc/bootsplash
#tar -jxvpf themes_umpc_charmlinux.tar.bz2
#dpkg -i linux-******2.6.22******.deb
#vi /boot/grub/menu.lst
修改2.6.22的启动菜单参数 如下行处
kernel /boot/vmlinuz-2.6.22charm-1 root=/dev/sda1
增加内容vga=791 splash=silent
注意:在debian5.0中安装bootsplash_3.2.1.deb包的时候会报错:splash命令没有找到
/usr/share/initramfs-tools/hooks/bootsplash: line 51: splash: command not found
vi /usr/share/initramfs-tools/hooks/bootsplash
在51行处splash前加上/usr/sbin
附件:http://down.51cto.com/data/2357291
运维网声明
1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网 享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com