by tangke 2009-08-03
Here's the short tip for this morning, this is a very easy config. As you know you can have a graphical image as a background for your GRUB startup screen, here's a three steps howto for setting it up
1. Create or use your favorite image. Open your favorite graphical image program (Gimp for me) and adapt your favorite logo/image/photo to 640x480, no matter about color depth, the must important thing is the image type, you must save your favorite image as an .XPM file (example: myfavoritelogo.xpm)
2. gzip your new .xpm file, following my example my file wil be named myfavoritelogo.xpm.gz (command: gzip myfavoritelogo.xpm), copy your image to /boot/grub
3. Modify your grub menu (mostly named /boot/grub/menu.lst) to add the following line:
splashimage=(hd0,0)/boot/grub/myfavoritelogo.xpm.gz
where hd0,0 is the first partition (for me /boot as boot partition) on the first hard disk, change your filename according to your system (myfavoritelogo.xpm.gz of the example)
And that's it, you've done everything.
Now just reboot to see your graphical logo as grub background, take a look at my picture gallery to see some grub splash screen samples
在网上,xpm的图片不太好找,所以我只能找个jpg的图片,然后再通过命令转
convert *.jpg -colors 14 -geometry 640x480 1.xpm
阅读(413) | 评论(0) | 转发(0) |