|
本文参照了fbsplash作者的gensplash-in-5-easy-steps,原文见:
http://dev.gentoo.org/~spock/pro ... in-5-easy-steps.php
0)确认你的/etcmake.conf里以下两项已设置好:
[PHP]
ACCEPT_KEYWORDS="~x86"
PORTDIR_OVERLAY=/usr/local/portage
[/PHP]
1)下载安装nitro-sources(强烈推荐使用此内核,已包含最新的fbsplash win4lin reiser4,fb-ng,supermount等适于桌面应用的patch)
[PHP]
#cd /usr/local/portage
#mkdir sys-kernel
#cd sys-kernel
#mkdir nitro-sources
#cd nitro-sources
#wget http://www.sepi.be/nitro/2.6.8.1-nitro6/nitro-sources-2.6.8.1-r6.ebuild
#ebuild nitro-sources-2.6.8_rc4-r2.ebuild digest
#emerge nitro-sources[/PHP]
2)编译内核:
[PHP]
#cd /usr/src
# rm linux
#ln -s linux-2.6.8.1-nitro6 linux
# cd linux
#make menuconfig
#make[/PHP]
(注意一定不要漏选以下和fbsplash有关的选项)
[PHP]
Device Drivers ---> Graphics support ---> and make sure Support for frame buffer devices is checked * <. Also make sure you have <*> VESA VGA graphics support (640x480@60) VESA default mode (NEW) +
Console display driver support ---> Video mode selection support +
<*> Framebuffer Console support and
Logo configuration ---> Bootup logo Standard 224-color Linux logo (NEW)
and finally Support for the framebuffer splash
[/PHP]
3)安装splashutils:
[PHP]emerge splashutils[/PHP]
4)给fbsplash建立一个initramfs映像文件并重新编译内核:
[PHP]# rm /usr/src/linux/usr/initramfs_data.cpio.gz
# splash_geninitramfs -v -g /usr/src/linux/usr/initramfs_data.cpio.gz -r 1024x768 emergence[/PHP]
5)修改grub.conf文件:
这是我的grub.conf文件,请根据自己系统的实际情况做修改:
[PHP]
default 0
timeout 15
splashimage=(hd0,5)/grub/splash.xpm.gz
title=Gentoo Linux 2004 (linux-2.6.8.1-nitro-r6 Reiser4+Gensplash)
root (hd0,5)
kernel /nitro-2.6.8.1-r6 ro root=/dev/hda7 video=vesafb:ywrap,pmipal,1024x768-32@60 splash=silent,theme:personal
[/PHP]
重启试试看,漂亮的splash应该出来了吧。
P.S:
定制自己的fbsplash图片:
a)[PHP]#mkdir /etc/splash/personal
#cd /etc/splash
#rm -rdf default
#ln -s personal default[/PHP]
自己找些1024x768或者符合自己屏幕分辨率的图片分别命名为:
[PHP]
silent-1024x768.jpg verbose-1024x768.jpg
silent-1024x768-240.png verbose-1024x768-240.png verbose-1024x768.png
[/PHP]
b)[PHP]
#cp emergence/1024x768.cfg personal
#nano -w 1024x768.cfg
把fbsplash图片路径修改为:
pic=/etc/splash/personal/verbose-1024x768.png
silentpic=/etc/splash/personal/silent-1024x768.jpg
pic256=/etc/splash/personal/verbose-1024x768-240.png
silentpic256=/etc/splash/personal/silent-1024x768-240.png
[/PHP]
c)然后重复步骤4),注意这一步:
[PHP]
# splash_geninitramfs -v -g /usr/src/linux/usr/initramfs_data.cpio.gz -r 1024x768 emergence
其中emergence要改为personal
[/PHP]
d)修改grub.conf,把
[PHP]
theme:emergence
改为
theme:personal
就OK啦
[/PHP]
[ |
|