|
先下载bootsplash的slackware软件包:
http://www3.linuxpackages.net/pa ... sh/bootsplash-2.tgz
用 installpkg 命令安装,按照下面的步骤进行设置。
- All is based to Suse BootSplash (see [url]http://www.bootsplash.org[/url])
- Sorry for my bad english.
- Thanks to Andrei for suggestion.
- All operation from root.
- FIRST STEP
- ------------
- 1) Install package bootsplash.tgz
- 2) Download patch for kernel 2.4.20 ([url]ftp://ftp.suse.com/pub/people/stepan/bootsplash/kernel/bootsplash-3.0.7-2.4.20-vanilla.diff[/url])
- I add this to doc/bootsplash/patch-kernel-2.4.20/ of package
- 3) Go to the directory containing your kernel sources, and apply the patch.
- cd /usr/src/linux
- patch -p1 < /WHERE_YOU_HAVE_PATCH/bootsplash-3.0.7-2.4.20-vanilla.diff
- 4) Now compile kernel:
- make menuconfig (or make xconfig)
- You should enable the following options.
- Make sure they are compiled into the kernel, and not as modules
- Code maturity level options -->
- Prompt for development and/or incomplete code/drivers
- Block devices --> RAM disk support
- Block devices --> Initial RAM disk (initrd) support
- Console drivers --> Video mode selection support
- Console drivers --> Frame-buffer support -->
- Support for frame buffer devices
- VESA VGA graphics console
- Use splash screen instead of boot logo
- compile and install the kernel
- make dep
- make bzImage
- mv /usr/src/linux/arch/i386/boot/bzImage /boot/bzImagebs
- 5) Create /boot/initrd (Initial RamDisk)
- splash -s -f /etc/bootsplash/themes/current/config/bootsplash-1024x768.cfg > /boot/initrd
- for change theme you change 'current' link to /etc/bootsplash/themes
- I add 4 themes
- 6) Add new image kernel to /etc/lilo.conf (this is my):
- image = /boot/bzImagebs
- vga = 791 #(for 1024x768 64k resolution)
- initrd = /boot/initrd
- append = "splash=silent" #(for switch to verbose pressing F2 key)
- root = /dev/hdb1 #(hdb1 is my linux hd)
- label = Linuxbs
- read-only
- 7) Now run lilo and reboot, and you should see your new splash screen (without progress-bar and/or animation).
- lilo
- shutdown -r now
- PROGRESSBAR and ANIMATION
- ---------------------------------
- 1) Package bootsplash have all required and system is ok ready.
- You manually have to modify /etc/rc.d/rc.M rc.6 rc.S at your like
- !!! REMEMBER TO BACKUP THE ORIGINAL FILE ..FOR POSSIBLE NECESSITY !!!
- The line to add is:
- . /etc/rc.d/rc.bootsplash (at beginning of file)
- progressbar XX (where you want, replace XX with numeric value of percentual)
- animate startup (start animation)
- animate shutdown (stop animation)
- For your help I add my personal file to directory usr/doc/bootsplash/samples of package
- !!! DON'T USE THIS FILE, IS ONLY FOR SEE WHERE I ADD LINE !!!
- It is all.
- P.S.
- This is a collection of program and script, and is all found at [url]http://www.bootsplash.org[/url]
- For documentation in good english :-) you go to [url]http://www.bootsplash.org[/url]
复制代码
效果可以看这里:
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=46922 |
|