In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the steps of Linux automatic installation operation". In the daily operation, I believe many people have doubts about the steps of Linux automatic installation operation. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "Linux automatic installation operation". Next, please follow the editor to study!
Principle:
Use the CD to install the linux system process:
The first step is POST self-test
The second step, MBR boot, the GRUB used here is the grub.conf in the isolinux/ folder in CDROM.
The third step is to launch a selection menu with options for installation, upgrade, repair, and so on, which is started by isolinux.bin.
Step 4, vmlinuz (initrd) mounts the root file system.
Step 5, launch the anaconda installation interface. And anaconda
Detailed analysis:
In the second step, the boot content in step 3 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 various display contents of the startup interface are defined.
It is executed by isolinux.bin and the configuration file provided by isolinux.cfg.
Display boot.msg
Reference boot.msg, whose configuration file is boot.cfg
Menu background splash.jpg
Menu title Welcome to CentOS 6.4! What is shown at the top
Menu color border 0 # ffffffff # 00000000 defines the color display of the interface
Menu color sel 7 # ffffffff # ff000000
Define option
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-
Step 5, when you really enter the installation, you need to load the Packages/anaconda-VERSION.rpm file
Anaconda program can be installed in graphic and character mode, but in these two ways
You can also choose interactive installation or question-and-answer automatic installation.
Anaconda installation details:
The configuration file that is automatically installed is kickstart. Kickstart can be written manually, generated in text, or
Generated graphically. (the ks.cfg file will generate the anaconda.cfg detailed configuration in the root home directory after the installation is complete)
Here are the steps for drawing generation:
1, install system-config-kickstart
Yum install system-config-kickstart
2, start system-config-kickstart
System-config-kickstart &
3, configure kickstart
Basic Configuration:
Encrypt root password represents the password string that encrypts the root
Target Architecture: presentation platform
The action after Reboot system after installation installation is reboot, which needs to be checked.
Perform installation in text text mode (grphical is default)
The installation interface uses a graphical interface by default, so this needs to be checked.
Perform installlation in interactive mode uses interactive mode and does not check.
Install Method: installation sourc
HTTP Server: IP of the installation source
HTTP Directory: directory
Boot Loader Options: boot option
Install new bootloader installs the new bootloader, using the old one below.
Whether Use GRUB password:GRUB should be encrypted or not.
Install boot loader on Master Boot Record (MBR)
Load bootloader into MBR
Install boot loasder on first sector of the boot partition
Load bootloader into a partition and boot.
Kernel parameters:crashkernel=auto rhgb quiet uses silent mode.
Partition Information definition Partition
Network Configuration network configuration
Authentication authentication. Default sha512 is OK.
Pre
Post does not need to specify #! / bin/bash
4. Save the kickstart configuration file.
The default save name of the file is ks.cfg
5. Check the ks.cfg configuration file for errors.
# ksvalidator 2ks.cfg
Detailed description of kscfg configuration file:
Command segment:
# platform=x86, AMD64, or Intel EM64T
# version=DEVEL
# Firewall configuration
Firewall-- disabled disables firewall
# Install OS instead of upgrade
The default action of install is to install
# Use network installation
Url-url= "ftp://1.0.0.12/centos/" uses the FTP installation source
Repo-name= "CentOS"-baseurl= "ftp://1.0.0.12/centos"
# Root password
Rootpw-- iscrypted $1 $dpCtQEn6 $pC3UGFPZEJJ5nVftiaScq0
# System authorization information
Auth-useshadow-passalgo=sha512
# Use text mode install
Text uses text installation
# System keyboard
Keyboard us uses American English keyboard
# System language
Lang zh_CN sets the default language
# SELinux configuration
Selinux-- disabled disables SELINUX
# Do not configure the X Window System
Skipx
# Installation logging level
Logging-level=info
# Reboot after installation
Actions when reboot installation is complete
# System timezone
Timezone Asia/Shanghai
# Network information
Network-bootproto=static-device=eth0-ip=1.0.0.7-netmask=255.0.0.0-onboot=on
# System bootloader configuration
Bootloader-append= "crashkernel=auto rhgb quiet"-location=mbr-driveorder= "sda"
# Clear the Master Boot Record
Zerombr
# Partition clearing information
Clearpart-- all-- initlabel clear the disk partition
# Disk partitioning information disk partitions
Part / boot-asprimary-fstype= "ext4"-ondisk=sda-size=100
Part /-asprimary-- fstype= "ext4"-- ondisk=sda-- size=20480
Part swap-asprimary-fstype= "swap"-ondisk=sda-size=500
Script paragraph:
% post
Touch / tmp/abc.txt
% end
Software package segment:
% packages
@ base
@ basic-desktop
@ chinese-support
@ core
@ debugging
@ desktop-debugging
@ desktop-platform
@ desktop-platform-devel
@ development
@ directory-client
@ fonts
The choice after booting using the boot CD:
Click the "ESC" key twice to enter command line mode, and then
Linux ip=1.0.0.7 netmask=255.0.0.0 ks= ftp://1.0.0.12/pub/ks.cfg
Ftp installation source automatic installation of linux detailed steps:
1. Make a boot CD:
# mount / dev/cdrom / media/cdrom/
# mkdir / root/myboot
# cp / media/cdrom/isolinux/ / root/myboot/isolinux
# cd / root/myboot/isolinux
# chmod + w. / *
# chmod + x vmlinuz
# mkisofs-R-J-T-v-no-emul-boot-boot-load-size 4-boot-info-table-V "MageEdu Testing Image" (- V with CD label)-b isolinux/isolinux.bin (specify the location of the isolinux.bin)-c isolinux/boot.cat (specify the location of the boot.cat)-o / tmp/boot.iso (specify the output location) / root/myboot/ (specify the input source)
2. Make ftp installation source
# yum install vsfptd
# service vsftpd start
# mkdir / var/ftp/CentOS
# mount / media/cdrom / var/ftp/CentOS
3. Put the finished ks.cfg file into the ftp directory
# cp / root/ks.cfg / var/ftp/pub
4, mount the previous boot.iso to the optical drive of the target host, start the "ESC" key twice, and then type:
Linux ip=1.0.0.7 netmask=255.0.0.0 ks= ftp://1.0.0.12/pub/ks.cfg
5, automatic installation start
At this point, the study on the "steps for automatic installation of Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.