Create your own boot screen bootsplash in linux

Source: Internet
Author: User
In linux, create your own boot screen bootsplash-general Linux technology-Linux technology and application information. For more information, see the following. Bootsplash is a program that displays the startup screen. Various releases use bootsplash to make progress bars. Bootsplash has many features
For example, jpeg, progress bar, and animation can be displayed.
The following describes how to add a bootsplash to the kernel.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.bootsplash.org/images/thumb/e/ee/Silent-mode.jpg/180px-Silent-mode.jpg'); ">

1. Download the kernel. For example, 2.6.24

2. patch the corresponding version.
Because the kernel version is the latest, I am here. Http://www.linuxquestions.org/qu.../bootsplash-612639/
Patch 2.6.24 found
Located in http://fatcat.ftj.agh.edu.pl /~ Przyboro/other/bootsplash/
Download. Bootsplash-3.1.6-2.6.24.diff to desktop
Decompress the kernel to/usr/src/linux
Cd/usr/src/linux
Patch-p1 <~ // Desktop/bootsplash-3.1.6-2.6.24.diff
After the kernel is patched, We can configure it.
Make menuconfig
In the graphic under the device driver, enable frame-buffer. In the vesa vga console driver, select bootsplash to cancel the boot logo. Don't forget to open ram disk support in block devices. Next, recompile and install it.

3. Install the client program. L
Download bootsplash-12.0-i486-1kta.tgz on inuxpackage website
Http://www.linuxpackages.net/pkg_details.php? Id = 11133
Then install
Sudo installpkg bootsplash-12.0-i486-1kta.tgz
This package contains two boot splash packages. You can also go online and check many bootsplash packages online. Let's install the package now. We need the root permission.
# Splash-s-f/etc/bootsplash/themes/current/config/bootsplash-1024x768.cfg>/boot/initrd
In this way, our/boot/initrd is ready. It stores the starting image. There are two other resolutions in the package. Just set different cfg files.

4. Set lilo
Join

Vga = 791 #1024x768-16 bit
Or
Vga = 794 #1280x1024-16 bit
Or
Vga = 834 #1400x1050-16 bit
Add
Initrd =/boot/initrd
Do not forget to save lilo
Okay. Check the restart and check the result. In the future, as long as the splash enters the new initrd, the startup screen will be changed. You can make a linux show off on your own.

Advanced.
Since we just made an image, we started static screen pulling.
How to change the progress bar? Next I will introduce it.
Slackwaer STARTUP configuration please refer to this article http://www.slackware.com/config/init.php
Simply put,/etc/rc. d/rc. S is the startup script./etc/rc, d/rc, and M is used to load various services. Rc. S before rc. M after
In the rc. S file.
/Sbin/mount-v proc/proc-n-t proc this line is followed
# Bootsplash functions
./Etc/rc. d/rc. bootsplash

Add at the beginning of the rc. M file
# Bootsplash functions
./Etc/rc. d/rc. bootsplash

What we will do next is
Progressbar xx
Xx is from 1 to 100. Hey, you know what's going on.
The following is an example of the rc. M file.
# Tell the viewers what's going to happen.
Echo "Going multiuser ..."

# Bootsplash functions
./Etc/rc. d/rc. bootsplash

# Screen blanks after 15 minutes idle time, and powers down in one hour
# If the kernel supports APM or ACPI power management:
/Bin/setterm-blank 15-powersave powerdown-powerdown 60

Progressbar 35

# Set the hostname.
If [-r/etc/HOSTNAME]; then
/Bin/hostname $ (cat/etc/HOSTNAME | cut-f1-d .)
Else
# Fall back on this old default:
Echo "darkstar.example.net">/etc/HOSTNAME
/Bin/hostname darkstar
Fi

Progressbar 40

End of the example

This increases until 100.

Conclusion.
This is almost the function of bootsplash. I still haven't done it myself. So I dare not talk about it. I hope everyone can make their own bootsplash.
The following describes how to customize bootsplash. And how to make animations. And so on
Http://www.bootsplash.org/Welcome_to_the_graphical_world_of_Linux
In addition, the document in the package bootsplash-12.0-i486-1kta.tgz just mentioned is very good
Both install and README. rc. bootsplash are complete. If you have any questions, refer to the two documents.
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.