Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / 使用bootsplash配置图形化启动界面

使用 bootsplash 配置内核支持图形化启动界面。网站http://www.bootsplash.org/有详细介绍。为了支持图形化启动界面,我们需为内核打补丁。到http://www.bootsplash.de/files/下载与内核对应的补丁文件bootsplash-3.1.6-2.6.8.diff。
$ cd ~/$ mkdir bootsplash$ cd bootsplash$ wget http://www.bootsplash.de/files/bootsplash-3.1.6-2.6.8.diff$ sudo cp bootsplash-3.1.6-2.6.8.diff /usr/src$ cd /usr/src/linux$ sudo patch –p1 < ../bootsplash-3.1.6-2.6.8.diff
接着配置内核,选中以下选项,以下所有选项不能以内核模块形式编译,都要直接编译进内核:
Device Drivers--->Block devices---><*> RAM disk support(4096) Default RAM disk size (kbytes) (NEW)[*] Initial RAM disk (initrd) supportGraphics support---><*> VGA 16-color graphics support[*] VESA VGA graphics supportConsole display driver support---><*> Framebuffer Console supportLogo configuration--->[ ] Bootup logo #该选项一定不要选中Bootsplash configuration ---> #该选项在打了内核补丁后才会出现。[*] Bootup splash ScreenFile systems--->Miscellaneous filesystems---><*> Compressed ROM file system support
配置内核后要重新编译内核
$ sudo make$ sudo cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage-bootsplash l 用apt安装bootsplash
接下来要安装bootsplash工具。把下面这句加到/etc/apt/source.list里。
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-bootsplashroot(hd0,0) kernel/boot/bzImage-bootsplash root=/dev/hdc1 ro splash=silent vga=0x317 initrd/boot/initrd.splashsavedefaultboot
重启进入新内核,可看到开机画面。关机时也可看到关机画面。
  • 1
  • 2
  • 下一页
【内容导航】
第1页:使用bootsplash配置图形化启动界面第2页:使用bootsplash配置图形化启动界面
Linux操作系统内核启动参数详细解析Linux操作系统的动态函式库详细解析相关资讯      Linux  bootsplash 
  • Linux 即将 25 岁:足够伟大 却不  (01月01日)
  • Linux 这么棒是因为开源?  (08/28/2015 09:21:02)
  • FreeBSD 和 Linux 有什么不同?  (07/31/2015 09:15:06)
  • 盘点全球“国家级” Linux 项目  (09/25/2015 06:11:28)
  • 庆祝 Linux 24 岁生日!  (08/26/2015 06:13:36)
  • 【观点】离了Linux,我就活不了!  (10/31/2013 19:39:56)
本文评论 查看全部评论 (0)
表情: 姓名: 字数