使用bootsplash配置图形化启动界面

2019-10-22 16:56:16刘景俊
deb http://www.bootsplash.de/files/debian/ unstable main

$ sudo apt-get update

$ sudo apt-get install bootsplash

$ sudo apt-get install sysv-rc-bootsplash       #该软件包启用进度条和动画

在配置bootsplash时会问你是否安装一个新的bootsplash主题替换已存在的主题。如果是第一次安装,请选择none,这样将会自动生成一个/boot/initrd.splash映像,并设置一个默认的newlinux主题。

安装sysv-rc-bootsplash时,会询问是否patch系统启动脚本,一定要选“Yes”,否则进度条等动画不会起作用。

l  从源码安装bootsplash

$ sudo apt-get install libmng-dev  #需要安装mng库

$ cd ~/bootsplash

$ wget http://www.bootsplash.de/files/splashutils/bootsplash-3.1.tar.bz2

$ tar zxvf bootsplash-3.1.tar.bz2

$ cd bootsplash-3.1

$ make

修改bootloader,举例如下

$ sudo vim /boot/grub/menu.lst 

title   Debian GNU/Linux, kernel 2.6.8.1-epia1-bootsplash
root    (hd0,0) 

kernel  /boot/bzImage-bootsplash root=/dev/hdc1 ro splash=silent vga=0x317 

initrd  /boot/initrd.splash

savedefault

boot

重启进入新内核,可看到开机画面。关机时也可看到关机画面。