Hai Friends here we are going to see about Grub-Gfxboot which will enable us to set themes for Grub like the OpenSuse.
I am trying to make the explanation very simple.Pls comment on the Style of explanation so that i can bring necesary changes in the coming posts:
First of all Get the Latest Version of Grub-gfxbot from the following link:
Note:One thing to be careful of is to use the latest gfxboot package; Intrepid n Jaunty now formats its ext3 partitions with an inode size of 256 bytes, whereas previous versions of Ubuntu used 128 byte inode sizes. If you try to use an older version of Grub to boot an Intrepid partition, Grub will choke and spit out a Grub error 2.
Now we should Install the Package,Before that the package ‘grub’ should be removed.
Open a terminal and issue the following commands:
$sudo apt-get remove grub
Give the root password if asked.This will remove the package grub
Now to install the gfxboot package:
$sudo dpkg -i grub-gfxboot_0.97-43_i386.deb
The filename may varry.Now the package is installed
Now get some cool themes from the web.Just google and you will get plenty of themes.
Note:Remember that some themes produce an ‘Invalid file format’ error which is because the theme is supported by older versions.
One pretty theme can be downloaded from the following link:
First of all move the theme files to the directory:/boot/grub/
As the directory is readonly you should use command to move the themes to the /boot/grub/ directory.
- Command mode:
$sudo cp <source path of theme> /boot/grub
This will move the themes to the /boot/grub directory
- Graphical Mode:
$gksudo nautilus /boot/grub
This will open the /boot/grub directory in a file browser and just drag the themes to the directory
Editing Configuration File
We should add an entry to the /boot/grub/menu.lst file about the theme:
First Lets Backup the file:
$sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
Editing the file
- Using Terminal
$sudo nano /boot/grub/menu.lst
$sudo gedit /boot/grub/menu.lst
Now add the following entry as the first line in the file
gfxmenu /boot/grub/<theme name>
eg: gfxmenu /boot/grub/message.suse
this will open the grub prompt:
now issue the following commands
this will create an output like (hdx,y) ,where x and y will varry depending on your harddisk.
remember there is space between root (hdx,y) and setup (hdx)
Installing Grub to MBR:
$sudo grub-install /dev/sda
Caution:The above command is issued by assuming the that the grub is to be installed to the MBR of first HDD.Here /dev/sda may be changed to /dev/hda for IDE drives.
Now Just Reboot Your System n Enjoy the Grub Theme.