Arch WiKi 译文:Graphical Lilo

翻译:xiaoma 来自:LinuxSir.Org
原文: http://archlinux.org

本文讲述如何使用lilo在启动时显示带图片背景的启动菜单。在讲述DIY的通用方法的同时,也提供了在Arch下看起来很不错的设置。

准备图片
1.找出你想用作背景的图片,最好简单点,因为你必须将其设为16色。
2.用gimp找开这张图片。
3.调整为640*480。
4.设为索引色模式(Image-->Mode-->indexed)。
5.选择"Create optimal palette",并设为16色,选一种合适的抖动模式。
6.打开"Indexed Palette"对话框。记下你要使用的文字、时钟等的颜色。在lilo.conf中,将会用到这些颜色。
7.将图片以bmp格式存储在/boot目录中。
如果你喜欢,可以使用这个图片:http://www.archlinux.org/~dusty/arch-lilo.bmp

准备lilo.conf文件
1.pacman -Sy lilo
2.阅读手册页,man lilo.conf。
3.再读一遍。
4.有几种方法可以设置“图形菜单”:
1.bitmap=,将其设为你已保存的图片。例如:
bitmap=/boot/arch-lilo.bmp
2.bmp-colors=,,,,,< hsh>。这是菜单入口的颜色,涉及了前景、背景以及各个阴影的颜色,紧跟着高亮的文本。不要使用空格。这些颜色的索引值就是前面你所看到的。如果你愿意,你可以空一个值不填(别忘了逗号)。默认的背景是透明的,没有阴影。
3.bmp-table=,,,,,< spill>。这个选项决定了菜单放置的位置,x和y是字符坐标。你也可以加个后缀p,将其转换为像素坐标。 阅读手册页(man lilo.conf)可以找到其他选项。
4.bmp-timer=,,,,。这个选项是指定倒计时的时钟坐标及计时器(数字)的颜色。一旦超时,就会启动默认的选项。它使用颜色的索引值及字符(或像素)坐标。
5.如果你使用的是上文提到的 arch-lilo.bmp,可以使用如下的选项:
bitmap=/boot/arch-lilo.bmp
bmp-colors=1,0,8,3,8,1
bmp-table=250p,150p,1,18
bmp-timer=250p,350p,3,8,1
6.保存lilo.conf
7.以root身份运行lilo
8.重启,看看效果。

评论

Ferragamo Online Sale

Salvatore ferragamo has been celebrities' choice to show their elegance and personality.Ferragamo Online Sale produces many lines including ferragamo designer handbags,ferragamo shoes for men and women and fashion accessories.Salvatore ferragamo shoes for sale now.You can select what you prefered here and enjoy free shipping and deep discount ferragamo sale .Ferragamo outlet online shop offers you high quality items from factory direct. Salvatore ferragamo outlet show you the classic and latest styles at reasonal prices. Buy salvatore ferragamo goods online to enjoy the benefits.People who bought this pair Ferragamo Flats Shoes , also are interest in Ferragamo Shoes outlet Varina Peeptoe Flats Black and Salvatore Ferragamo Handbags.