|
本帖最后由 terryqiu 于 2014-10-27 10:15 编辑
各位大侠,小弟碰到一问题,恳请大家帮助。现在想定制话光盘的启动安装界面。想模仿中标的界面,下图是中标的isolinux目录
其中1文件是帮助文档,back.jpg,welcome.jpg是背景图和欢迎图,bootlog中包含两个文件,一个init,一个是languages。languages里面的内容是en_US
zh_CN。
gfxboot.cfg的内容是:
[base]
; theme name
theme=NeoKylin
; other sections to read
layout=800x600,install
; penguin theme likelihood (in percent, -1 = auto)
penguin=0
; activate speech output
talk=0
; sound volume (0..100)
volume=70
; menu background transparency (0..255)
menu.transparency=0x20 #kj20
; default font
font.normal=16x16.fnt
; main menu font
font.large=16x16.fnt
; background image
background=back.jpg
; max. visible main menu items
mainmenu.entries=8
; minimal main menu selection bar width
mainmenu.bar.minwidth=500
; main menu selection bar transparency (0..255)
mainmenu.bar.transparency=100 #kj100 the transparency of selection bar
; main menu colors
mainmenu.bar.color=0xffffff #kj 0xffffff the color of selection bar
mainmenu.normal.fg=0x810101 #kj 0xffffff manu color
mainmenu.selected.fg=0x000000
; boot option colors
bootopt.label.fg=0x810101 #kj 0xffffff the color of label of ks=..
bootopt.text.fg=0x810101 #kj 0xffffff the color of ks=..
; progress bar color
;progress.bar.color=0x0981c0
progress.bar.color=0xB4995B
; menu colors
menu.normal.bg=0xd8deed
menu.normal.fg=0x000000 #kj0x000000
menu.selected.bg=0x6c6c6c #kj0x6c6c6c
menu.selected.fg=0xffffff #kj0xffffff
; window colors
window.bg=0xd8deed
window.fg=0x000000
;window.title.bg=0x0981c0
window.title.bg=0xB4995B
window.title.fg=0xffffff
window.title.error.bg=0xc00000
; help system colors
help.link.fg=0x0000a0
help.link.selected.fg=0xffffff
help.link.selected.bg=0x0000a0
help.highlight.fg=0x009000
; panel colors
panel.fg=0xffffff
panel.title.fg=0xffffff #kj0xffffff Help color yuyan shipinmoshi ..
panel.f-key.fg=0xffe050i # the key color of Help color F1 F2...
; default keymap (e.g. de-latin1-nodeadkeys or cz-lat2-us)
keymap=
; replace underscores ('_') with space in menu entries
_2space=1
[800x600]
; screen size
screen.size=800,600
; upper left corner
mainmenu.pos=253,170
; boot option input field position
bootopt.pos=263,480
[640x480]
; screen size
screen.size=640,480
; upper left corner
mainmenu.pos=130,122
; boot option input field position
bootopt.pos=263,380
[penguin]
; upper left corner
mainmenu.pos=220,163
; main menu selection bar transparency (0..255)
mainmenu.bar.transparency=120
; boot option input field position
bootopt.pos=263,490
; background image
background=pback.jpg
[install]
; show welcome animation
welcome=0
; beep when menu is ready
beep=1
; main menu item shown only if iso is tagged for media check
mediacheck=mediachk
; main menu items where user can't add boot options
nobootoptions=harddisk,memtest
; main menu items that are not passed an 'install' parameter
noinstallopt=harddisk,firmware,memtest
; default install method (one of: cdrom, slp, ftp, http, nfs, smb, hd; default: cdrom)
install=
; default repo location
install.http.server=
install.http.path=
install.nfs.server=
install.nfs.path=
install.ftp.server=
install.ftp.path=
install.ftp.user=
install.ftp.password=
install.smb.server=
install.smb.share=
install.smb.path=
install.smb.domain=
install.smb.user=
install.smb.password=
install.hd.device=
install.hd.path=
; default driver update (one of: yes, no, file, url; default: no)
dud=
; if 'dud=file': file name on DVD
dud.file=
; if 'dud=url': URL
dud.url=
; if 'dud=url': menu item name (default = 'URL')
dud.url.name=
; serial line setup (up to four lines)
; format: port,baud,dev
; - port: 0-3: first four BIOS serial lines (COM1-COM4); >=4: I/O port (0x3f8)
; - baud: baud rate (e.g. 115200); 0 = autodetect (considers baud rates >= 9600)
; - dev: linux device name (e.g. ttyS0)
; - all lines are set up with 8 bits, no parity, 1 stop bit
; - if the bootloader also has a serial line setup, the port is
; automatically used
serial.line0=0,0,ttyS0
serial.line1=1,0,ttyS1
serial.line2=
serial.line3=
; show keymap menu as submenu in lang dialog
keymap.submenu=0
; check min memory size
memcheck=0
; apppend *.spl to initrd
spl=1
; move down one menu entry the first time an F-key is used
autodown=1
; F-key assignments
; value can be one of: lang, video, install, kernelopts, dud, bits, keymap,
; profile, restore
; note1: 'bits' is only shown on x86_64, 'profile' only when a file 'profile'
; exists, 'restore' only when there is a boot entry 'restore'
; note2: F1 is always help, F9 enables speech output, F10 exits gfxboot
key.F2=lang
key.F3=install
key.F4=dud
key.F5=bits
; add 'lang' option with current locale
addopt.lang=0
; add 'keytable' option with current keymap
addopt.keytable=0
[boot]
; show welcome animation
welcome=0
; beep when menu is ready
beep=0
; show keymap menu as submenu in lang dialog
keymap.submenu=0
; system restore menu entry
restore.title=
; F-key assignments, see install section for doc
key.F2=lang
key.F3=profile
;key.F4=keymap
key.F11=restore
; add 'lang' option with current locale
addopt.lang=0
; add 'keytable' option with current keymap
addopt.keytable=0
[live]
; set livecd flag
livecd=1
; move down one menu entry the first time an F-key is used
autodown=0
; F-key assignments, see install section for doc
key.F2=lang
key.F3=video
key.F4=kernelopts
key.F5=
key.F6=
key.F7=
key.F8=
key.F11=
key.F12=
; add 'lang' option with current locale
addopt.lang=1
; add 'keytable' option with current keymap
addopt.keytable=0
isolinux.cfg的内容是:
default harddisk
# hard disk
label harddisk
localboot 0x80
# install
label linux
kernel linux
append initrd=initrd splash=silent showopts
# repair
label repair
kernel linux
append initrd=initrd splash=silent repair=1 showopts
# rescue
label rescue
kernel linux
append initrd=initrd splash=silent rescue=1 showopts
# mediacheck
label mediachk
kernel linux
append initrd=initrd splash=silent mediacheck=1 showopts
# bios test
label firmware
kernel linux
append initrd=biostest,initrd splash=silent install=exec:/bin/run_biostest showopts
# memory test
label memtest
kernel memtest
ui gfxboot bootlogo message
implicit 1
prompt 1
timeout 600
我看这个也是通过gfxboot去实现中文菜单定制,可是我通过网上查到的资料显示一般用gfxboot去实现都是去调用message文件,虽然这个目录下有message文件,但是却没有使用到,我删除掉message文件
一样可以正常的启动。我现在是用中标这个isolinux目录,替换back。jip,welcome.jpg,替换内核文件initrd.img,vmlinuz文件。但是不知道如何修改中文菜单,网上很多资料说是有个translations.zh_CN文件,是
对应的中文菜单,可是这个目录下没有这个文件,我解包看了zh_CN.tr显示内容是包括中文菜单,内容如下:
体系^@自定义^@系统克隆、备份和恢复^@从硬盘引导^@快速安装^@引导已有系统^@引导选项^@取消^@更换引导盘^@继续^@定制安装^@目录
^@域
^@Domain Name
^@添加驱动程序^@驱动程序更新^@Download Driver Update^@Enter Driver Update URL
^@要直接从 CD-ROM 装入驱动程序更新,
请在此处输入驱动程序更新文件名(以逗号“,”
隔开):
^@准备好驱动程序更新软盘。^@I/O 错误^@您将离开图形引导菜单
并启动文本方式界面。^@正在退出...^@文件^@固件测试^@FTP 安装^@Gateway
^@硬盘^@硬盘安装^@磁盘设备(如果为空,则扫描所有磁盘)
^@帮助^@Host IP
^@HTTP Proxy^@HTTP 安装^@引导装载程序^@插入引导盘 %u。^@这是引导盘 %u。
插入引导盘 %u。^@这不是 NeoKylin Linux Server V6.0 引导磁盘。
请插入引导磁盘 %u。^@安装^@安装源^@内核选项^@默认^@无 ACPI^@无本地 APIC^@安全设置^@键盘^@语言^@NeoKylin Live (GNOME)^@NeoKylin Live (KDE)^@正在装载 Linux 内>核
^@正在启动...^@正在装载 memtest86
^@Manual^@Manual Network Config^@检查安装介质^@内存测试^@Nameservers (separated by ',')
^@Netmask
(or use '/N' notation with Host IP)
^@Network Config^@NFS 安装^@否^@No Network^@中标麒麟Linux^@中标麒麟Linux桌面 6^@中标麒麟Linux服务器 6^@确定^@其他选项^@口令
^@口令^@是否立即关闭系统?^@关闭电源^@快速安装^@重启^@修复已安装系统^@救援系统^@Linux - 安全设置^@服务器
^@共享
^@SMB(Windows 共享)安装^@文本方式^@用户(如果未填写,则以匿名身份登录)
^@用户(如果为空,则使用“guest”)
^@Vesa 方式安装^@视频模式^@是^@自动方式^@在 ZEN 分区上配置参数^@禁用 ZEN 分区^@启用 ZEN 分区^@安装或更新 ZEN 分区^@重新安装 ZEN 分区引导装载程序^@手动方式^@
难道是修改这个文件去对应中文的界面么?
我尝试用其他message文件去实现,在isolinux.cfg中加入我要调用的message文件,一样不生效。
请教各位大侠,应该如何实现呢?不胜感激。 |
|