SYSLINUX之ISOLINUX启动画面制作

4450阅读 0评论2013-12-25 cywcdwxjf
分类:LINUX


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

usage() {
  echo "Usage: $0 "
  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这两个程序包中的指令。

  下面就以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 0107 key.

 -  To install or upgrade in text mode, type: 01linux text 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.
截个图为证。






上一篇:Linux守护进程的编程方法(含实例)
下一篇:内核proc文件系统与seq接口(1)---内核proc文件系统简介