Create your own centos/linux release edition custom and simplified ISO compressed file [Basic Edition]

Source: Internet
Author: User
1. install the RHEL/CentOS5.3 system and select only the packages you need! I only selected the basic package and removed some packages from the basic package. after installation, there will be about 410 packages! Please do it based on your own situation! 2. there is an install. log file in the root directory, which records...

 

1. install the RHEL/CentOS 5.3 system and select only the packages you need! I only selected the basic package and removed some packages from the basic package. after installation, there will be about 410 packages! Please do it based on your own situation!

 

2. there is an install. log file in the root directory, which records the rpm packages installed when you install the system. the file content should be like this:

 

Installing libgcc-4.1.2-44.el5.x86_64

Warning: libgcc-4.1.2-44.el5: Header V3 DSA signature: NOKEY, key ID 37017186

Installing setup-2.5.58-4.el5.noarch

Installing filesystem-2.4.0-2.x86_64

Installing basesystem-8.0-5.1.1.noarch

Installing cracklib-dicts-2.8.9-3.3.x86_64

Installing nash-5.1.19.6-44.x86_64

...................

 

Find a way to get this file to win, and then replace the modified content in batches. The purpose is to copy the rpm package you just installed. the modified content should be like this:

 

Cp-a/media/Server/libgcc-4.1.2-44.el5.x86_64.rpm/home/rhel5u3/Server

Cp-a/media/Server/setup-2.5.58-4.el5.noarch.rpm/home/rhel5u3/Server

Cp-a/media/Server/filesystem-2.4.0-2.x86_64.rpm/home/rhel5u3/Server

Cp-a/media/Server/basesystem-8.0-5.1.1.noarch.rpm/home/rhel5u3/Server

Cp-a/media/Server/cracklib-dicts-2.8.9-3.3.x86_64.rpm/home/rhel5u3/Server

 

Note that you must first create the directory rhel5u3 and Server and mount the installation disc to/media! If you have installed CentOS, you should change the Server to CentOS, and then vi copy. sh will change the install. paste the log content and save it. execute chmod + x copy. sh grant the script execution permission, and then sh copy. sh execute it! Copy the required files to the rhel5u3 directory,

 

Cp-a/media/. discinfo/home/rhel5u3

Cp-a/media/. treeinfo/home/rhel5u3

Cp-aR/media/isolinux/home/rhel5u3

Cp-aR/media/images/home/rhel5u3

Cp-aR/media/Server/repodata/home/rhel5u3/Server

 

If CentOS is installed, change cp-aR/media/Server/repodata/home/rhel5u3/Server to cp-aR/media/repodata/home/rhel5u3

 

3. prepare the automatic installation file, there is a anaconda-ks.cfg under the root directory to copy it over

 

Cp ~ /Anaconda-ks.cfg/home/rhel5u3/isolinux

Cd/home/rhel5u3/isolinux

Music anaconda-ks.cfg ks. cfg

 

Then modify isolinux. cfg in isolinux to change default linux to default linux ks = cdrom:/isolinux/ks. cfg.

 

At this point, all the required files are ready, and then execute the following command

 

Cd/home/rhel5u3/Server

 

Createrepo-g repodata/comps-rhel5-server-core.xml. install anaconda and anaconda-runtime with yum before executing the createrepo command!

 

If you are installing CentOS, you should change the comps-rhel5-server-core.xml to comps. xml and finally execute it in the upper-level directory of rhel5u3:

 

Mkisofs-o RHEL5U3. iso-B isolinux/isolinux. bin-c isolinux/boot. cat-no-emul-boot-load-size 4-boot-info-table-R-J-v-T rhel5u3/

 

Generate the CD iso file!

 

For more parameters of the ks. cfg automatic installation file, see anaconda.

 

 

 

The default content is as follows:

 

# Kickstart file automatically generated by anaconda.

 

Install

Cdrom // install from the CD

Key-skip // skip SN

Lang en_US.UTF-8 // language

Keyboard us // keyboard

Network-device eth0-bootproto dhcp // network parameters

Rootpw-iscrypted $1 $ bljn2gyE $ iSEU9p3M1ZMrVBLX7BhRt. // root password

Firewall-enabled-port = 22: tcp // you can change to disabled to disable fw.

Authconfig-enableshadow-enablemd5 // password encryption method

Selinux-enforcing // you can change it to disabled to disable selinux.

Timezone Asia/Hong_Kong // Time

Bootloader-location = mbr-driveorder = sda

# The following is the partition information you requested

# Note that any partitions you deleted are not expressed

# Here so unless you clear all partitions first, this is

# Not guaranteed to work

# Clearpart-linux-drives = sda

# Part/boot-fstype ext3-size = 100-ondisk = sda

# Part pv.2-size = 0-grow-ondisk = sda

# Volgroup VolGroup00-pesize = 32768 pv.2

# Logvol/home-fstype ext3-name = LogVol02-vgname = VolGroup00-size = 4992

# Logvol swap-fstype swap-name = LogVol01-vgname = VolGroup00-size = 512-grow-maxsize = 1024

# Logvol/tmp-fstype ext3-name = LogVol03-vgname = VolGroup00-size = 512

# Logvol/var-fstype ext3-name = LogVol05-vgname = VolGroup00-size = 2848

# Logvol/usr-fstype ext3-name = LogVol04-vgname = VolGroup00-size = 8000

# Logvol/-fstype ext3-name = LogVol00-vgname = VolGroup00-size = 2976

 

% Packages // The rpm package you selected will be different from here

@ Editors

@ Core

@ Base

@ Java

Fipscheck

Device-mapper-multipath

-Emacs-leim

-Psgml

-Emacspeak

-Rhn-check

-Dhclient

-Nano

-Sendmail

-Pcmciautils

-Yum

-Yum-updatesd

Dhcpv6-client

-Firstboot-tui

-NetworkManager

-Yum-rhn-plugin

-Irda-utils

-Ypbind

-Rhn-setup

-Yum-security

-Bluez-utils

 

 

Rootpw-iscrypted $1 $ bljn2gyE $ iSEU9p3M1ZMrVBLX7BhRt. this must be removed so that you can set your own password during installation.

 

Try to remove network-device eth0-bootproto dhcp. you can still not set network parameters during installation, and then suspect that firewall-enabled-port = 22: tcp and selinux-enforcing are also removed or not:

 

Lang en_US.UTF-8 // language

Keyboard us // keyboard

Network-device eth0-bootproto dhcp // network parameters

Rootpw-iscrypted $1 $ bljn2gyE $ iSEU9p3M1ZMrVBLX7BhRt. // root password

Firewall-enabled-port = 22: tcp // you can change to disabled to disable fw.

Authconfig-enableshadow-enablemd5 // password encryption method

Selinux-enforcing // you can change it to disabled to disable selinux.

Timezone Asia/Hong_Kong // Time

 

You can skip this step without setting up the network. However, parameters such as the key selection disk and language have become the text mode. if you have time, please refer to anaconda, I want to install yum and disable some services after installing the system.

Related Article

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.