很久没有用过fbsplash/gensplash了,突然之间想装来玩一下。看了下相关的文档,就开始动手安装了。下面是安装过程:
1、编译内核
(1)如果不是用uvesa,那么直接用内核里的vesafb是最好的选择。由于我的显卡是945GZM主板集成显卡,一开始我尝试使用intelfb,结果编译多次都无法正常初始化内核,无法进入系统,最终还是使用vesafb才成功。估计是因为intelfb还处于开发状态吧。
[quote]Device Drivers > Graphics support:
[*] Support for frame buffer devices
<*> VESA VGA graphics support
[/quote]
(2)必须选择的内核选项有:
下面这个是创建splash initrd文件所必需的:
[quote]General Setup --->
[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
[/quote]
如果希望使用F2键切换fbsplash的slient和verbose模式的话,就选上下面选项:
[quote]Device Drivers --->
Input Device Support --->
<*> Event Interface
[/quote]
当然,还少不了选择fbdecoration:
[quote]Device Drivers >
Graphics support >
Console display driver support:
[*] Video mode selection support
<*> Framebuffer Console support
[*] Support for the framebuffer conosle decoration
[/quote]
编译安装好内核后,进入下一步。
2、安装fbsplash相关软件和theme:
(1)安装splashutils,必须启用USE="mng fbcondecor":
[quote]emerge splashutils
rc-update add fbcondecor boot[/quote]
(2)安装theme.我选择的是livecd-2007.0:
[quote]emerge splash-themes-livecd[/quote]
然后进入/etc/splash,执行以下命令:
(3)如果你的/boot目录是单独一个分区,则先挂载/boot分区
[quote]mount /boot[/quote]
(4)生存分辨率为1024x768的splash initrd文件,并存放在/boot分区:
[quote]splash_geninitramfs -g /boot/livecd-1024x768 -v -r 1024x768 livecd-2007.0[/quote]
(5)编辑grub.conf,根据实际分区和grup安装的位置,加入以下内容(假设新内核名称为linuz-2.6.26:
[quote]title Gentoo Linux 2.6.26-gentoo-r1 with fbsplash
root (hd0,2)
kernel /boot/linuz-2.6.26 vga=0x318 video=vesafb:mtrr:3,ywrap splash=silent,fadein,theme:livecd-2007.0 quiet CONSOLE=/dev/tty1
initrd /boot/livecd-1024x768
[/quote]
这里要注意CONSOLE不能用小写的console,不然gdm会启动为tty2。
1、编译内核
(1)如果不是用uvesa,那么直接用内核里的vesafb是最好的选择。由于我的显卡是945GZM主板集成显卡,一开始我尝试使用intelfb,结果编译多次都无法正常初始化内核,无法进入系统,最终还是使用vesafb才成功。估计是因为intelfb还处于开发状态吧。
[quote]Device Drivers > Graphics support:
[*] Support for frame buffer devices
<*> VESA VGA graphics support
[/quote]
(2)必须选择的内核选项有:
下面这个是创建splash initrd文件所必需的:
[quote]General Setup --->
[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
[/quote]
如果希望使用F2键切换fbsplash的slient和verbose模式的话,就选上下面选项:
[quote]Device Drivers --->
Input Device Support --->
<*> Event Interface
[/quote]
当然,还少不了选择fbdecoration:
[quote]Device Drivers >
Graphics support >
Console display driver support:
[*] Video mode selection support
<*> Framebuffer Console support
[*] Support for the framebuffer conosle decoration
[/quote]
编译安装好内核后,进入下一步。
2、安装fbsplash相关软件和theme:
(1)安装splashutils,必须启用USE="mng fbcondecor":
[quote]emerge splashutils
rc-update add fbcondecor boot[/quote]
(2)安装theme.我选择的是livecd-2007.0:
[quote]emerge splash-themes-livecd[/quote]
然后进入/etc/splash,执行以下命令:
(3)如果你的/boot目录是单独一个分区,则先挂载/boot分区
[quote]mount /boot[/quote]
(4)生存分辨率为1024x768的splash initrd文件,并存放在/boot分区:
[quote]splash_geninitramfs -g /boot/livecd-1024x768 -v -r 1024x768 livecd-2007.0[/quote]
(5)编辑grub.conf,根据实际分区和grup安装的位置,加入以下内容(假设新内核名称为linuz-2.6.26:
[quote]title Gentoo Linux 2.6.26-gentoo-r1 with fbsplash
root (hd0,2)
kernel /boot/linuz-2.6.26 vga=0x318 video=vesafb:mtrr:3,ywrap splash=silent,fadein,theme:livecd-2007.0 quiet CONSOLE=/dev/tty1
initrd /boot/livecd-1024x768
[/quote]
这里要注意CONSOLE不能用小写的console,不然gdm会启动为tty2。