* Many O & M personnel are familiar with KickStart. Most of us use it to automatically install the system. Generally, RedHatLinux is automatically installed. Recently, Ubuntu needs to be installed due to business requirements, there are some differences with RedhatLinux. Record the installation steps for mutual communication and learning! I. Environment and software system: CentOS6.0, Ubuntu12.04 software: KickStart, PXE, HTTPd, TFTPp, and DHCP II
Preface *
Many O & M personnel are familiar with KickStart. Most of us use it to automatically install the system. We often use it to automatically install RedHat Linux. Recently, due to business needs, Ubuntu needs to be installed, there are some differences with Redhat Linux. Record the installation steps for mutual communication and learning!
I. Environment and software
System: CentOS 6.0, Ubuntu 12.04
Software: KickStart, PXE, HTTPd, TFTPp, DHCP
Ii. Formal Installation
This environment is based on the CentOS system to build KickStart Ubuntu to automatically install the server.
Run the following command on the server: yum install dhcp * tftp * httpd *-y
After installation, configure
1. Configure ftfp:
- #Default: Off
-
- # Description: The tftp server serves files using the trivial file transfer \
-
- # Protocol. The tftp protocol is often used to boot diskless \
-
- # Workstations, download configuration files to network-aware printers ,\
-
- #AndTo start the installation processForSome operating systems.
-
- Service tftp
-
- {
-
- Disable = no
-
- Socket_type = dgram
-
- Protocol = udp
-
- Wait = yes
-
- User = root
-
- Server =/usr/sbin/in. tftpd
-
- Server_args =-s/Var/Lib/tftpboot
-
- Per_source = 11
-
- CPIs = 100 2
-
- Flags = IPv4
-
- }
Change disable = yes to disable = no!
After tftp is installed, the/tftpboot folder is generated in the/root directory by default. If not, link ln-s/var/lib/tftboot.
Mount the ubuntu12.04.iso File
Mount/dev/cdrom/mnt & cp/mnt/install/netboot/*/tftboot/
Then modify vi/tftboot/ubuntu-installer/amd64/boot-screens/txt. cfg as follows:
2. Configure httpd and kickstart:
As in step 2, there is an http: // 192.9.117.143/ubuntu/ks. cfg
The apache release directory is/var/www/html by default after installation.
Create an installation source in/var/www/html:
Mkdir-p/var/www/html/ubuntu
Then copy all the files on the ubuntu CD to/var/www/html/ubuntu.
Cp-a/mnt/*/var/www/html/ubuntu
Create the ks. cfg file in the/var/www/html/ubuntu directory and set the permission to chmod 777 ks. cfg.
Ks. cfg contains the following content:
- Install
- Text
- Lang en_US
- Langsupport en_US
- Keyboard us
- Mouse
- Timezone -- utc Asia/Chongqing
- Rootpw -- disabled
- User tdt-- Fullname="Tdt"-- Password wuguangke
- Reboot
- Url -- url http: // 192.9.117.143/ubuntu
- Bootloader-- Location=Mbr
- Zerombr yes
- Clearpart -- all -- initlabel
- Part/boot -- fstype ext4 -- size 200
- Part swap -- size 1024
- Part/-- fstype ext4 -- size 1 -- grow
- Auth -- useshadow -- enablemd5
- Network-- Bootproto=Dhcp -- Device=Eth0
- Firewall -- disabled
- Skipx
- % Packages
- Penssh-server
- Openssh-client
- Nfs-kernel-server
- Vim