Debian boot screen, like fedora and Hongqi

Source: Internet
Author: User
The boot screen of Debian is like the information about fedora and Red Flag-the Linux Release Technology-Debian. The following is a detailed description. For your reference.

Now we want to implement the debian boot screen, like those of fedora and Hongqi. During the boot, the boot information is blocked and changed to the boot screen. If you are interested, try it together. The method is as follows:

Debian 2.6.15 kernel installation bootsplash

1. Install the kernel compiling environment:
Check out the error reports related to kernel-package, gcc, binutils, and modutils. Use a newer version as needed.
Be careful when compiling a custom kernel with source code in the Debian system. It is safer to use the -- append_to_version option of make-kpkg to create multiple kernel images.

# Apt-get install debhelper modutils kernel-package libncurses5-dev

2. Compile the kernel.
Download the kernel and Its bootsplash kernel patch:
Kernel source code package: http://www.kernel.org/pub/linux/kernel/v2.6/
Bootsplash Patch: http://www.bootsplash.de
Download the appropriate Kernel Patch: 2.6.15 kernel download bootsplash-3.1.6-2.6.15.diff (2.6.17 kernel can also use this patch)

3. Unlock the kernel source code package, go to the source code package directory, and add patches.
# Cd linux-2.6.15
# Patch-p1-I/tmp/bootsplash-3.1.6-2.6.15.diff (assuming the bootsplash patch is placed in/tmp)

4. The Kernel configuration file (. config) is successfully patched)
# Cp/boot/config-2.6.15. config
# Make old config
# Make menu config

Device Drivers ---> Block devices --->
<*> RAM disk support
Initial RAM disk (initrd) support

Device Drivers ---> Graphics support --->
<*> Support for frame buffer devices
Vesa vga graphics support

Device Drivers ---> Graphics support ---> Console display driver support --->
--- VGA text console
Video mode selection support
<*> Framebuffer Console support

Device Drivers ---> Graphics support ---> Bootsplash configuration --->
Bootup splash screen

5. Compile and package the kernel.
# Make-kpkg -- revision 20060717 -- initrd binary

Five. deb files are generated in the upper-level directory.
Linux-doc-2.6.15_20060616_all.deb
Linux-headers-2.6.15_20060616_i386.deb
Linux-p_w_picpath-2.6.15_20060616_i386.deb
Linux-manual-2.6.15_20060616_all.deb
Linux-source-2.6.15_20060616_all.deb

6. Install the new kernel
Dpkg-I linux-p_w_picpath-2.6.15_20060616_i386.deb

This kernel already supports bootsplash, but an appropriate initrd. img is also required.

7. Install bootsplash
# Vim/etc/apt/source. lst
Deb http://debian.bootsplash.de unstable main
Deb-src http://debian.bootsplash.de unstable main

# Apt-get update
# Apt-get install bootsplash
# Apt-get install bootsplash-theme-newlinux

# Apt-get install sysv-rc-bootsplash (installation progress bar)
Reading package lists... Done
Building dependency tree... Done
Sysv-rc-bootsplash is already the newest version.
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 6106B/6106B of archives
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y

.....
Testing if patches apply cleanly...
4 out of 5 hunks FAILED -- saving rejects to file/etc/init. d/rcS. rej
Patches wocould not apply cleanly.
Dpkg: Fehler beim Bearbeiten von sysv-rc-bootsplash (-- configure ):
Subprocess post-installation script returned error code 1
Fehler traten auf beim Bearbeiten von:
Sysv-rc-bootsplash
E: Sub-process/usr/bin/dpkg returned an error code (1)

An error occurred while installing sysv-rc-bootsplash. solution:
# Cd/tmp/
# Mkdir patch
# Wget http://ftp.de.debian.org/debian/pool/main/...6.ds1-1_all.deb
# Dpkg -- extract sysv-rc_2.86.ds1-1_all.deb/tmp/patch

# Cp/etc/init. d/rc/etc/init. d/rc. orig
# Cp/etc/init. d/rcS/etc/init. d/rcS. orig
# Cp/tmp/patch/etc/init. d/rc/etc/init. d/rc
# Cp/tmp/patch/etc/init. d/rcS/etc/init. d/rcS
# Apt-get install sysv-rc-bootsplash

# Dpkg-reconfigure bootsplash
Select a topic.

8. Execute the mkinitrd program to create a "clean" initrd. img
Mkinitrd-o/boot/initrd. img-2.6.15 2.6.15

9. Set the startup options:
Debian :~ # Update-grub

Grub:
Debian :~ # Vim/boot/grub/menu. lst

Title Debian GNU/Linux, kernel 2.6.15 (silent)
Root (hd0, 1)
Kernel/boot/vmlinuz-2.6.15 root =/dev/hdc2 ro vga = 791 splash = silent
Initrd/boot/initrd. img-2.6.15
Savedefault
Boot

Title Debian GNU/Linux, kernel 2.6.15 (bootsplash)
Root (hd0, 1)
Kernel/boot/vmlinuz-2.6.15 root =/dev/hdc2 ro vga = 791
Initrd/boot/initrd. img-2.6.15
Savedefault
Boot

Vga = 791 is 1024*768 resolution can be changed according to dpkg-reconfigure bootsplash settings.

Debian GNU/Linux, kernel 2.6.15 (silent) will go to the startup screen with progress bar Animation
Debian GNU/Linux, kernel 2.6.15 (bootsplash), will enter the startup screen of background plus startup text.

Lilo: (not tested)
P_w_picpath =/boot/bzImage-2.6.15
Label = 2.6.15
Read-only
Initrd =/boot/initrd. splash
Append = "splash = silent"
Vga = 1, 791
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.