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.重启,看看效果。

评论

Classic Short UGGS

The debate in the nation's capital seems UGG Mini Boots headed for a stalemate this year because Senate Democrats have the votes to thwart House Republicans' efforts to repeal Classic Short UGGS the law. Denying the Obama administration money to carry out the law isn't a sure strategy either; most of the UGG Knighstbridge money was woven tightly into the legislation Congress passed last year. "We will see a lot of small battles in Bailey Button UGG Boots Congress, but the real center of gravity will shift to the states," said Mike Leavitt, former Republican UGG Classic Cardy governor of Utah and health secretary under President George W. Bush. "Bipartisanship is more vibrant in the states than it is in Washington. That doesn't mean it's plentiful, but at least it's alive." States have to be ready to take on major responsibilities when the coverage expansion gets going in 2014.

UGG Bailey Button Triplet
Bailey Button Triplet UGGS
Cardy UGGS
UGG Classic Mini
UGG Bailey Button

If not, the federal government UGG Classic Short will come in and run things. States must set up and operate health insurance markets where an estimated 24 million UGG Tall Boots people eventually will buy private coverage, most with the aid of federal subsidies. Also, states must open their Medicaid programs UGG Knighstbridge Boots to a broader segment of low-income people. The Medicaid expansion worries state officials. They're already UGG Classic Tall struggling with the costs of the program, draining money from other services from education to law enforcement.