LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1134|回复: 9

关于GRUB背景图片DIY的问题

[复制链接]
发表于 2004-10-11 13:39:22 | 显示全部楼层 |阅读模式
我看到它的官方文档
你打开了GIMP创建了一个640X480像素的画板
后来又从另外一张图片中取过来一个图片区域
再根据官方说的把它的色彩改成14(改完一看片已经面目全非了,看不太清了)
之后我保存成了.xpm格式
再且gzip把它改成了.xpm.gz
之后把/boot/grub/splash.xpm.gz改名备份把我制作的放了进去
再启动一看背景看不清什么

有制作经验的朋友快来说一下吧
我制作的问题出在什么地方了
我是按官方说的方法制作的啊


Customizing the splash image in GRUB by C.R. Jayanth

Submitted by c_r_jayanth on Fri, 11/07/2003 - 10:46. Articles
Customizing the splash image in GRUB

The splash image is the image shown in the background when GRUB (the GRand Unified Bootloader) is displaying the list of operating systems you can boot. Typically, this is the corporate logo of your Linux distribution. But its very simple to customize it to an image of your choice. All you need is the GIMP and gzip. My GIMP version is 1.2. Even older versions may do the job.

Here's howYou need to have root access)
1)Start the GIMP.
2)Click on File->New or type Ctrl+N
3)In the new image dialog, change Width to 640 pixels and Height to 480 pixels. (The image should be of size 640x480 pixels.) Now click OK.
4)Create the image which you would like to be the splash image. It's quite fun to experiment with the various tools of the GIMP!
5)After you have finished creating the image, hit Alt+i or right click on the image and click on Image->Mode->Indexed...
6)In the Indexed Color Conversion dialog that appears, click on the radio button "Generate optimal Palette" and in "# of colors" enter 14. Click OK.(The image should be of only 14 colors)
7)Now right-click on the image and click on File->Save As...Save the file as splash.xpm in a directory of your choice.

8)Now open a terminal window and navigate to the directory where you have saved splash.xpm
9)Now key in gzip splash.xpm

10)You will find that a file named splash.xpm.gz is created in the directory where splash.xpm used to exist.

11)Copy this splash.xpm.gz to the /boot/grub directory. You may want to back up the pre-existing splash.xpm.gz file in the /boot/grub directory first.

That's it! When you reboot, you will find your image in the background, with the menu of operating systems etc. in the foreground.

Of course, this is not the only way to change the image, but it is a very simple one.
? login or register to post comments
发表于 2004-10-11 13:43:06 | 显示全部楼层
convert *.jpg -colors 14 -geometry 640*480!
1.xpm举这个列子,-colors参数是你新图片的色调, -geometry
640*480!,这个我不用说了吧,当然也可以是1024*768!

修改grub启动时的背景图片

1 将一图片转化成640*480,14色的XPM文件:

   #convert abc.jpg -colors 14 -geometry 640x480! abc.xpm

2 压缩生成的xpm文件,使用gzip

#gzip -9 abc.xpm

3 将abc.xpm.gz拷到/boot/grub下



4 修改/boot/grub/menu.lst

splashimage=(hd0,0)/boot/grub/abc.xpm.gz
 楼主| 发表于 2004-10-11 14:09:57 | 显示全部楼层

你看一看啊

你看一看啊
这个效果
你做成过吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-10-11 14:18:03 | 显示全部楼层

我做成了

我做成了
不过只能是640x480的啊
1024x768不行
而且图片非常的清楚啊

原图片很好
我这样的效果正常吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-10-11 17:12:43 | 显示全部楼层
不错啊,我也来试试...
发表于 2004-10-11 17:40:02 | 显示全部楼层
我也是用这方法,颜色和分辨率只能是这样了,能提高画质我也想,不知道怎么弄,知道的兄弟请补充补充
发表于 2004-10-11 18:36:56 | 显示全部楼层
谁有自动更换grub背景的script  送小弟一个
谢谢!
 楼主| 发表于 2004-10-11 19:54:49 | 显示全部楼层
不过我想OEM都是要找美编来做好合适的图片啊
这样也不错了
以后有时间我自己用photoshop制作一下就应该会好起来
发表于 2004-10-13 13:12:08 | 显示全部楼层
http://my.poco.cn/images/myphoto ... 720040823155132.jpg
用这张图片转换成14色做出的GRUB背景很cool哦.
 楼主| 发表于 2004-10-14 22:34:39 | 显示全部楼层
ok
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表