Docstoc

Customizing Linux Boot Loader Classic Way

Document Sample
Customizing Linux Boot Loader Classic Way Powered By Docstoc
					                                                      Insomnity, creativity never sleeps. A web sites about                                        SEARCH
                                                      articles, tutorials, and tips on Open Source, Design,
                                                      Programming and Technology. We also offer professional
                                                      services on web development and design, covers digital
                                                      media and printed media.




TUTORIALS


Classic way to costumize linux bootloader
by fath on May 4, 2011 • 6:58 am • Edit entry                                                                                                               1 Comment




This is a classic way to customizing Bootloader, since its the same way I modified bootloader until few months ago.

GRUB

Grub uses 640×480(px) and up to 14 color for the background image. You may convert/resize any images with any image editor, save it as .xpm file. If you have
ImageMagick, you may use :

  1     $ convert yourbootimage.png             -colors 14 -resize 640x480        bootimggrub.xpm                                                                    ?

Then gzipped and copy boot-grub.xpm to /boot/grub

  1     $ gzip bootimggrub.xpm                                                                                                                                       ?
  2     $ cp bootimggrub.xpm.gz /boot/grub

Now open /boot/grub/grub.conf and add bootimggrub, here’s an example of configuration :

   1      default=0                                                                                                                                                  ?
   2      timeout=33
   3      splashimage=(hd1,0)/boot/grub/bootimggrub.xpm.gz
   4      foreground=000000
   5      background=fafafafa
   6      hiddenmenu
   7      title Slackware 12 (2.6.21.5-huge-smp)
   8      root (hd1,0)
   9      kernel /boot/vmlinuz-huge-smp-2.6.21.5-smp root=/dev/hda10 ro
  10      boot
  11      title Windows XP SP3
  12      rootnoverify (hd0,0)
  13      chainloader +1

The other customizable lines:
default=0: The default priority boot Operating System
timeout=33: Countdown timer setting for selecting OS
foreground, background: This is for the color setting.
title Slackware 12 (2.6.21.5-huge-smp): This is where you edit the title for your OS, only this line, the afterlines are meant to be left as is.

LILO

LILO uses the same resolution, 640×480(px), but up to 255 color. Convert and save your image as .bmp file. After that, copy that file to /boot. For example, I use
mybootimg.bmp, then :

  1     $ cp mybootimg.bmp /boot                                                                                                                                     ?

Now edit file /etc/lilo.conf, and put these lines:

  1     install=bmp                                                                                                                                                  ?
  2     bitmap=/boot/mybootimg.bmp
  3     bmp-table=50p,215p,1,6
  4     bmp-colors=255,0,240,75,240,60
  5     bmp-timer=580p,455p,0,254,

Where :
bmp-table : A position of where the LILO table must be shown. The syntax is (x-coordinates),(y-coordinates),(column),(row); p means in pixels. On my examples, it
means the LILO table will be shown 50pixels from left and 215pixels from top.

bmp-colors : Color setting. The syntax is <foreground>,<background>,<shadowbackground>,<selectionforeground>,<selectionbackground>,<selectionshadow>

You may left both shadow color and selection shadow color empty, the value is 0-254.

bmp-timer : Countdown Timer setting for OS selection. The syntax is <x-coordinates>,<y-coordinates>,<bgcolor>,<fgcolor>,<shadowcolor>

Check above rule for value.

Once you are sure that /etc/lilo.conf is properly configured, run




                                            http://insomnity.com/2011/costumize-linux-bootloader/
  1    $ lilo -v                                                                                                                   ?

This is an old writing of mine, just want to keep it safe




                                                                                                  © 2002-2011 Insomnity. All Rights Reserved.




                                          http://insomnity.com/2011/costumize-linux-bootloader/

				
DOCUMENT INFO
Shared By:
Stats:
views:23
posted:9/11/2011
language:English
pages:2
Description: Classic Tutorial to customize linux boot loader