Linux automatic installation of the Operating System

Source: Internet
Author: User

Linux automatic installation of the Operating System

Automation means that a large number of operating systems are installed without human responsibility. As long as the client is started on, the operating system can be automatically installed.

First, debug the environment:

Automatic PXE implementation based on DHCP, TFTP, and HTTP

1. Install the service

[Root @ localhost/] # yum install dhcp --------- dhcp Service

[Root @ localhost/] # yum install tftp-server ----- tftp service

[Root @ localhost/] # yum install http -------- http service

[Root @ localhost/] # yum install syslinux -------- PXE Based on syslinux

----------------------------- Split line -----------------------------

Use PXE + DHCP + Apache + Kickstart to install CentOS5.8 x86_64

Linux PXE unattended installation of PXE-E32: TFTP OPen timeout Solution

Use PXE and kickstart to automatically install Linux

RHCE-certified unattended Linux system installation (FTP + TFTP + DHCP + Kickstart + PXE)

PXE network installation (on-duty and unattended installation)

----------------------------- Split line -----------------------------

2. Configure the service

DHCP:

[Root @ localhost/] # cp/usr/share/doc/dhcp-4.1.1/dhcpd. conf. sample/etc/dhcp/dhcpd. conf

[Root @ localhost/] # vim/etc/dhcp/dhcpd. conf

Optiondomain-name "ning"; --------------- name of the dhcp server

Optiondomain-name-servers 8.8.8.8; -------- dns server address

Default-lease-time600; ------------------------- lease time

Max-lease-time7200; -------------------------- maximum timeout

Subnet192.168.1.0 netmask 255.255.255.0 {------------------------ specify the network segment

Range 192.168.1.10 192.168.1.20; -------------- address pool

Host apple {------------------------------------ reserved host name apple

Hardware ethernet 00: 0C: 29: 72: 9A: CF; ----------------- reserved address MAC

Fixed-address 192.168.1.6; ---------------------------- IP address reserved for the host

}

Option routers 192.168.1.1; ------------------------------- Gateway

Next-server 192.168.1.5; ----------------------- address of the tftp server

Filename "pxelinux.0"; ---------------------------- specify the file name

}

[Root @ localhost/] # service dhcpd? ---------------- Commands for managing and viewing the dhcp service status

Usage:/etc/init. d/dhcpd {start | stop | restart | forcereload | condrestart | restart | configtest | status}

For example:

# Service dhcpd configtest ------ check whether the dhcp configuration has syntax errors

# Service dhcpd force-reload ---- load the modified configuration information without disabling the dhcp service

Check whether the service is enabled. You can also view the service through the port. dhcp ports are 67 and 68 (command ss-unlp)

TFTP-server: Provided by tftp

[Root @ localhost/] # rpm-ql tftp-server ----- view the configuration file generated by tftp-server

/Var/lib/tftpboot -------- this directory is generally used as the tftp service Repository

[Root @ localhost/] # service xinetd? ---------------- Tftp service management and command for viewing status

Usage:/etc/init. d/xinetd {start | stop | status | restart | condrestart | reload}

For example:

# Service tftp start ------ enable the tftp service

Check whether the service is enabled. You can also view the service through the port. The tftp port is 69 (command ss-unlp)

HTTP:

[Root @ localhost] # rpm-ql httpd ------- view the generated configuration file

/Var/www/html ------ File Repository

[Root @ localhost ~] # Service httpd? --------------- Commands for managing and viewing http Services

Usage: httpd {start | stop | restart | condrestart | try-restart | force-reload | status | fullstatus | graceful | help | configtest}

For example:

# Service httpd start ------ enable http service

Check whether the service is enabled. You can also view the service through the port. The http port is 80 (command ss-tnlp)

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.