Tag: span instead tle ROM margin format text sys picture
Usually we need to mount the CD when we use the virtual machine, because there are many packages we use on the CD. Then we'll make a CD-ROM ourselves today.
1, first create a new directory, it is convenient for us to put the required documents unified in one piece.
Mkdir/app/iso
2, and then in other CD-ROM to copy some of the files needed to boot, the file in the CD-ROM isolinux this directory, including Boot.cat, grub.conf, Isolinux.bin, Memtest,trans. Tbl,vmlinuz,boot.msg, Initrd.img, Isolinux.cfg, splash.jpg Vesamenu.c32 and other documents
Solinux.bin: The CD-ROM boot program, in the Mkisofs options need to explicitly give the file path, this file belongs to the Syslinux project.
Isolinux.cfg:isolinux.bin configuration file, when the CD-ROM boot (that is, run Isolinux.bin), will automatically go to find isolinux.cfg files.
VESAMENU.C32: is the CD-ROM installation GUI, also belongs to the Syslinux project, the MENU.C32 version is a plain text menu.
Memtest: Memory detection, which is a standalone program
SPLASH.JGP: Background image of the CD Launcher interface
Vmlinuz is a kernel image
Initrd.img is Ramfs (first cpio, then gzip compressed)
Copy command:
cp–r/misc/cd/isolinux//app/iso
3, write answer file ks.cfg, you can also use the command to create.
Command creation: First install a graphical tool: System-config-kickstart
Installation: Yum Install System-config-kickstart
After installation, the left-most options in the diagram are opened to the content.
For example, the first option: Basic Configuration
The second one:
The third one:
Fourth one:
In addition to these, the partition, click the Add option, first create a/boot partition, select the corresponding system type. Later, you will create/partition and swap partitions in turn. then click OK.
Fifth one:
Sixth one: nothing to fill.
Seventh One:
Eighth One:
Nineth One: nothing to fill.
Tenth one: nothing to fill.
11th: After creating a script that needs to be written, you can write it in advance or not.
You can then click File>save>quit to complete the creation of the Ks.cfg file.
If you do not want to use the command, you can write your own copy, the contents are as follows:
Cd/app/iso
Vim Ks.cfg
#platform =x86, AMD64, or Intel EM64T
#version =devel
# Firewall Configuration
Firewall--disabled
# Install OS instead of upgrade
Install
# Use Network Installation
URL--url= "http://172.17.0.1/centos/6/"
# Root Password
ROOTPW--plaintext magedu
# System Authorization Information
Auth--useshadow--passalgo=sha512
# Use text mode install
Text
Firstboot--disable
# System Keyboard
Keyboard US
# System Language
Lang en_US
# SELinux Configuration
SELinux--disabled
# Installation Logging Level
Logging--level=info
# Reboot after installation
Reboot
# System TimeZone
TimeZone Asia/shanghai
# Network Information
Network--bootproto=static--device=eth0--ip=172.17.111.200--netmask=255.255.0.0--onboot=on
# System Bootloader Configuration
Bootloader--LOCATION=MBR
# Clear the Master Boot Record
Zerombr
# Partition Clearing Information
Clearpart--all--initlabel
# Disk Partitioning Information
Part/boot--fstype= "Ext4"--size=1000
Part/--fstype= "EXT4"--size=20000
Part swap--fstype= "swap"--size=1024
%packages
@base
@chinese-support
@core
@debugging
@basic-desktop
@desktop-debugging
@desktop-platform
@directory-client
@fonts
%end
%post
rm-rf/etc/yum.repos.d/*
Cat >/etc/yum.repos.d/base.repo <<eof
[Base]
Name=base
Baseurl=http://172.17.0.1/centos/6
Gpgcheck=0
Eof
4. Customize the exclusive Menu
Vim Isolinux.cfg
Default Vesamenu.c32
#prompt 1
Timeout 600
Display Boot.msg
Menu background splash.jpg #定制背景图片, color size size
Menu title Welcome to CentOS autoinstall!
Menu Color Border 0 #ffffffff #00000000
Menu Color SEL 7 #ffffffff #ff000000
Menu Color Title 0 #ffffffff #00000000
Menu Color tabmsg 0 #ffffffff #00000000
Menu Color Unsel 0 #ffffffff #00000000
Menu Color Hotsel 0 #ff000000 #ffffffff
Menu Color Hotkey 7 #ffffffff #ff000000
Menu Color ScrollBar 0 #ffffffff #00000000
Label Desktop #菜单选项, total four items
Menu Label Auto Install a ^desktop system
Kernel Vmlinuz
Append initrd=initrd.img ks=cdrom:/ks-desktop.cfg
Label Mini
Menu Label ^auto Install a mini system
Kernel Vmlinuz
Append initrd=initrd.img ks=cdrom:/ks-mini.cfg
Label Manual
Menu label ^manual Install a system
Kernel Vmlinuz
Append initrd=initrd.img
Label Local
Menu default
Menu label Boot from ^local Drive
Localboot 0xFFFF
Note: There are minimal installation, desktop installation, requires ks.cfg files, but two files can not be the same, so there are some minor differences in the contents of the installation package can be changed. Here you can copy the Ks.cfg two copies, a copy named Ks-desktop.cfg, a copy named Ks-mini.cfg, and then the contents of the installation package can be changed.
5, the final disc can be engraved, the CD suffix is generally. iso file.
6, then put the CD-ROM on the desktop, easy to use later
SZ on the desktop,
7, the use of the time to load, complete
CD-ROM for Linux disc action