How to create a custom bootscreen for use with lilo

orangecrs의 이미지

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
Forums: 
sangwoo의 이미지

<잡담>
Custom bluescreen 으로 읽었습니다 -_-;;
</잡담>

----
Let's shut up and code.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.