博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

生命的自由度与人!

人类社会所让我们深思的东西有很多!和生命有关,和自由有关,和爱有关,当然更和技术有关!
  johnwoolee.cublog.cn

关于作者
姓名:适兕
职业:linux tech. support
窥探计算机多年,终未得其门而入,故在门外徘徊,遂郁郁寡欢,郁郁不得志!终年无所成!
from:   inner mongolia
|| << >> ||
我的分类


SYSLINUX之ISOLINUX启动画面制作
http://syslinux.zytor.com/wiki/index.php/The_SYSLINUX_Project
对于linux的启动有很大的贡献,无论怎么启动linux,它都可以实现。当然我此次关注的是
光盘启动linux时的那个画面!
先来看一个脚本splashtolss.sh :
#!/bin/sh

usage() {
  echo "Usage: $0 <source> <output>"
  exit 1
}

if [ -z "$1" -o -z "$2" ]; then
  usage
fi

pngtopnm $1 | ppmtolss16 \#cdcfd5=7 \#ffffff=15 \#000000=0 \#5b6c93=9 > $2

作者无从查起,是从某个最流行的发行版中抽取出来的。
其中pngtopnm和ppmtolss16分别是netbpm和ppmtolss这两个程序包中的指令。

isolinux的相关制作文档  下面就以asianux3.0为原型,以更换其启动画面为目的,用实际操作
来对话:

lee@lee-laptop:~/桌面$ mkdir isolinux
复制isolinux.cfg,*.msg,相应的内核启动文件,isolinux.bin,boot.cat到当前目录下:
lee@lee-laptop:~/桌面/DIY/isolinux$ ls
boot.cat  general.msg  isolinux.bin  memtest      param.msg   vmlinuz
boot.msg  initrd.img   isolinux.cfg  options.msg  rescue.msg
lee@lee-laptop:~/桌面/DIY/isolinux$ cat boot.msg

 
splash.lss

 -  To install or upgrade in graphical mode, press the 01<ENTER>07 key.

 -  To install or upgrade in text mode, type: 01linux text <ENTER>07.

 -  Use the function keys listed below for more information.

0f[F1-Main] [F2-Options] [F3-General] [F4-Kernel] [F5-Rescue]07
从此文件我们可以看到,我们复制的文件还差一个splash.lss
找一张宽X高=640X320的png图片,如果你能够做一张出来,那更好!!
电影赤壁正在上演,那么本人就对电影的热情来将其海报做成今天我们的实验品。
GIMP!感慨其强大!废话就不谈了,用我蹩脚的技法修改网上down来的海报.
lee@lee-laptop:~/桌面$ ./splashtolss.sh red-cliff.png splash.lss
/usr/bin/ppmtolss16: Warning: color palette truncated (3939 colors ignored)
204800 pixels, 2762 bytes, (97.30% compression)
lee@lee-laptop:~/桌面$ mv splash.lss DIY/isolinux
lee@lee-laptop:~/桌面/DIY$ mkisofs -o test.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table ./
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 0
Total directory bytes: 2158
Path table size(bytes): 26
Max brk space used 0
3468 extents written (6 MB)
特别提示:红色的部分,另外关于特殊的参数可以使用,详情请参见mkisofs --help.
截个图为证。






发表于: 2008-07-11,修改于: 2008-07-11 10:54,已浏览311次,有评论1条 推荐 投诉


网友评论
网友: asianux 时间:2008-07-11 21:54:21 IP地址:219.237.229.★
支持原创!赞!

 发表评论