Chinaunix首页 | 论坛 | 博客
  • 博客访问: 215854
  • 博文数量: 145
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 1720
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-14 18:42
文章分类

全部博文(145)

文章存档

2011年(1)

2009年(144)

我的朋友

分类: LINUX

2009-08-03 08:51:15

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) |
0

上一篇:linux websit popularity

下一篇:tar strip parameter

给主人留下些什么吧!~~