LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3222|回复: 2

在slackware里面实现bootsplash

[复制链接]
发表于 2003-6-16 21:51:10 | 显示全部楼层 |阅读模式
先下载bootsplash的slackware软件包:
http://www3.linuxpackages.net/pa ... sh/bootsplash-2.tgz

用 installpkg 命令安装,按照下面的步骤进行设置。

  1. All is based to Suse BootSplash (see [url]http://www.bootsplash.org[/url])
  2. Sorry for my bad english.
  3. Thanks to Andrei for suggestion.

  4. All operation from root.

  5. FIRST STEP
  6. ------------

  7. 1) Install package bootsplash.tgz

  8. 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])
  9.         I add this to doc/bootsplash/patch-kernel-2.4.20/ of package

  10. 3) Go to the directory containing your kernel sources, and apply the patch.
  11.         cd /usr/src/linux
  12.         patch -p1 < /WHERE_YOU_HAVE_PATCH/bootsplash-3.0.7-2.4.20-vanilla.diff

  13. 4) Now compile kernel:
  14.         make menuconfig (or make xconfig)
  15.         You should enable the following options.
  16.         Make sure they are compiled into the kernel, and not as modules

  17.         Code maturity level options  -->
  18.                 Prompt for development and/or incomplete code/drivers
  19.         Block devices  --> RAM disk support
  20.         Block devices  --> Initial RAM disk (initrd) support
  21.         Console drivers  --> Video mode selection support
  22.         Console drivers  --> Frame-buffer support -->
  23.                 Support for frame buffer devices
  24.                 VESA VGA graphics console
  25.                 Use splash screen instead of boot logo

  26.    compile and install the kernel

  27.         make dep
  28.         make bzImage
  29.         mv /usr/src/linux/arch/i386/boot/bzImage /boot/bzImagebs

  30. 5) Create /boot/initrd (Initial RamDisk)
  31.         splash -s -f /etc/bootsplash/themes/current/config/bootsplash-1024x768.cfg > /boot/initrd

  32.         for change theme you change 'current' link to /etc/bootsplash/themes
  33.         I add 4 themes

  34. 6) Add new image kernel to /etc/lilo.conf (this is my):

  35.         image = /boot/bzImagebs
  36.         vga = 791                        #(for 1024x768 64k resolution)
  37.         initrd = /boot/initrd
  38.         append = "splash=silent"   #(for switch to verbose pressing F2 key)
  39.         root = /dev/hdb1              #(hdb1 is my linux hd)
  40.         label = Linuxbs
  41.         read-only

  42. 7) Now run lilo and reboot, and you should see your new splash screen (without progress-bar and/or animation).
  43.         lilo
  44.         shutdown -r now


  45. PROGRESSBAR and ANIMATION
  46. ---------------------------------

  47. 1) Package bootsplash have all required and system is ok ready.
  48.         You manually have to modify /etc/rc.d/rc.M rc.6 rc.S at your like
  49.         !!! REMEMBER TO BACKUP THE ORIGINAL FILE ..FOR POSSIBLE NECESSITY !!!

  50. The line to add is:

  51. . /etc/rc.d/rc.bootsplash (at beginning of file)
  52. progressbar XX           (where you want, replace XX with numeric value of percentual)
  53. animate startup          (start animation)
  54. animate shutdown         (stop animation)


  55. For your help I add my personal file to directory usr/doc/bootsplash/samples of package
  56.         !!! DON'T USE THIS FILE, IS ONLY FOR SEE WHERE I ADD LINE !!!

  57. It is all.

  58. P.S.
  59. This is a collection of program and script, and is all found at [url]http://www.bootsplash.org[/url]
  60. For documentation in good english :-) you go to [url]http://www.bootsplash.org[/url]
复制代码


效果可以看这里:
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=46922
发表于 2003-10-16 13:24:36 | 显示全部楼层
要编内核?
Oh NO!
发表于 2003-10-18 19:29:52 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表