How to create a custom bootscreen for use with lilo
Link ::: http://www.jimbomania.com/bootscreen-howto.html
How to create a custom bootscreen for use with lilo
For that special touch that says: I use this interface often enough for me to make it look nice for myself.
First off, thank you Debian for a fine example of lilo's graphical bootscreen ability.
Much of the information in this HOWTO was gleaned from "man lilo.conf" .
Lilo can display a particular type of rudimentary graphic format as a backdrop for its boot menu.
The type: Bitmap (.bmp) 640 x 480 pixels x 256 colors (8 bits per pixel).
The Gimp can handle the creation of such an image.
# obtain some image from the internet
# resize to 640 x 480
# change color mode to indexed - custom palette of 256 colors
# create a field for lilo to print the boot options
# add config lines to /etc/lilo.conf:
----- give lilo's boot menu and timer text colors(as indices into the bmp's color palette)
----- point lilo to that field's location in the image
----- position the boot countdown timer in the same manner
This is the configuration that worked with my menu for trunks:
# Jimbo custom trunks boot menu
bitmap=/home/jim/Bootscreen/trunks9-bootscreen2.bmp
bmp-colors=255,,0,139,,0
bmp-table=316p,455p,1,15,17
bmp-timer=254p,432p,255,0,0
Now that the image is created and lilo.conf updated, we must run lilo as root to dump this payload right onto our MBR.
root@pikkon:/home/jim# lilo
Added Linux
Added Linux2423 *
Added Linux264
Added Windows2k(hda1)
Added FreeBSD(hda3)
root@pikkon:/home/jim#
Ah yea, if it didn't feel right like that then theres some error in your files somewhere...
lilo will point you to it, the error messages are terse and appropriate.
Now make sure to set your timeout for some reasonable enough time to allow the beauty of the custom bootscreen
to really sink in... but not so long that its overly pretentious. 10 seconds is a reasonable counter time.
Run lilo after making changes to the config file, as it'll dump new boot data into your MBR which must be correct at boot time.
It will NOT overwrite your MBR contents when config or bitmap files have any errors, so fear not.
자세한 설정값은 man lilo로...
위 내용중에 예제 bmp-table 설정값이 out of range로 나옵니다. 적당히 수정하시면됩니다.
음... 제 lilo.conf 파일 추가합니다.
# LILO configuration file # generated by 'liloconfig' # # Start LILO global section boot = /dev/hda #if you use Text map select #map=/boot/map #install=/boot/boot.b #if you use bmp bootsplash... install=/boot/boot-bmp.b bitmap=/boot/boot_images/test.bmp bmp-colors=255,,0,139,,0 bmp-table=280p,370p,1,3,19, bmp-timer=285p,432p,255,0,0 ############################# lba32 prompt timeout = 1200 vga=790 # Override dangerous defaults that rewrite the partition table: #change-rules # reset # VESA framebuffer console @ 1024x768x256 # vga = 773 # Normal VGA console # vga = normal # VESA framebuffer console @ 1024x768x64k # vga=791 # VESA framebuffer console @ 1024x768x32k # vga=790 # VESA framebuffer console @ 1024x768x256 # vga=773 # VESA framebuffer console @ 800x600x64k # vga=788 # VESA framebuffer console @ 800x600x32k # vga=787 # VESA framebuffer console @ 800x600x256 # vga=771 # VESA framebuffer console @ 640x480x64k # vga=785 # VESA framebuffer console @ 640x480x32k # vga=784 # VESA framebuffer console @ 640x480x256 # vga=769 # End LILO global section # DOS bootable partition config begins other = /dev/hda1 label = Windows table = /dev/hda # DOS bootable partition config ends # Linux bootable partition config begins image = /boot/kernel-2.6.7-gentoo root = /dev/hdc3 label = 2.6.7-r1 read-only image = /boot/kernel-2.6.8-gentoo-r3 root = /dev/hdc3 label = 2.6.8-r3 read-only # Linux bootable partition config ends
<잡담>Custom [b]blue[/b]screen 으로
<잡담>
Custom bluescreen 으로 읽었습니다 -_-;;
</잡담>
----
Let's shut up and code.
댓글 달기