Linux automatic installation operation example

  
                

Manually installing Linux system is time-consuming and laborious. There are many steps to be used. The tool can be fully automated by using tools such as kickstart. The following small series will introduce you to the Linux automatic installation operation example. Let's learn together. Let's go.

Principle:

linux system using CD installation procedure:

a first step, POST POST

The second step, the MBR boot, The GRUB used here is grub.conf in the isolinux/folder of the CDROM.

The third step is to launch the selection menu with options for installation, upgrade, repair, etc. This is started by isolinux.bin.

In the fourth step, vmlinuz (initrd) mounts the root file system.

The fifth step is to start the anaconda installation interface. And anaconda

Detailed resolution:

In the second step, the boot content in the third step is defined in the grub.conf menu.

So the display here can be customized

[root@CentOS6 cdrom]# cat isolinux/grub.conf

#debug --graphics

Default=0

splashimage=@SPLASHPATH@

timeout 5

hiddenmenu

title @PRODUCT@ @VERSION@

kernel @ KERNELPATH@

initrd @INITRDPATH@

title Install system with basic video driver

kernel @KERNELPATH@ xdriver=vesa nomodeset askmethod

initrd @INITRDPATH@

title rescue

kernel @KERNELPATH@ rescue askmethod

initrd @INITRDPATH@

The third step is to enter the startup interface, where the startup interface is defined. Various display contents,

is executed by isolinux.bin, and the configuration file is provided by isolinux.cfg.

display boot.msg

Refer to boot.msg, whose configuration file is boot.cfg

menu background splash.jpg

menu title Welcome to CentOS 6.4! Top content

menu color border 0 #ffffffff #00000000 Define the color of the interface

menu color sel 7 #ffffffff #ff000000

Define options

label linux

menu label ^Install or upgrade an existing system

menu default

kernel vmlinuz

append initrd=initrd.img

label vesa

menu label Install system with ^basic video driver

kernel vmlinuz

append initrd=initrd.img xdriver=vesa nomodeset

Label rescue

menu label ^Rescue installed system

kernel vmlinuz

append initrd=initrd.img rescue

label local

menu Label Boot from ^local drive

localboot 0xffff

label memtest86

menu label ^Memory test

kernel memtest

append -< Br>

Step 5, when you actually enter the installation, you need to load the Packages/anaconda-VERSION.rpm file.

Anaconda program can be installed in graphics and characters. In these two ways,

can also choose interactive installation or self-answering automatic installation.

Anaconda installation details:

The auto-installed configuration file is the port kickstart. Kickstart can be written manually, can be generated in text mode, or can be generated graphically

. (The ks.cfg file will be generated in the root home directory after the installation is completed.)

The following are the steps for graph generation:

1, install system-config-kickstart< Br>

yum install system-config-kickstart

2, start system-config-kickstart

system-config-kickstart &

3, configure kickstart< Br>

Basic Configuration:

Encrypt root password means encrypted root password string

Target Architecture: indicates platform

Reboot system after installation is restarted after installation Need to hook up.

Perform installation in text text mode (grphical is default)

The installation interface uses the graphical interface by default, so this needs to be checked.

Perform installlation in interactive mode uses interactive mode, no tick.
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved