CentOS Base Installation

Source: Internet
Author: User
Tags perl interpreter perl script

1. Download the minimum installation version of CentOS with VMware, basic installation process reference Baidu experience: Http://jingyan.baidu.com/article/eae0782787b4c01fec548535.html.

2. Image parsing error after start of yum command:

Access to file/etc/sysconfig/network-scripts/ifcfg-enp0s3 (different "-" suffixes for each machine may also be different)

Change Onboot=no to Onboot=yes

Restart Network Service

# Service Network Restart

3. Yum install wget--File download tool; Yum install net-tools--Network tools.

4. How to use a domestic yum source (can be skipped):

First use the MV command to back up the system Yum Source, and then modify the BaseURL in this file, the official source is: mirror.centos.org/centos/, can be changed directly to other domestic sources, or in this file to add a source

vi /etc/yum. Repos.d/centos.repo
Yumyum makecache

5. Upgrade your system and software:

Yum Update

6. Install the necessary software

View the components provided by the official source:

Yum grouplist

To install the graphical interface:

Yum " GNOME Desktop "

7. Install Vmware-tools:

First, under VMware's Virtual machine directory, select Install Vmware-tools.

Before installing Vmware-tools, CentOS first installs the Perl interpreter, GCC compilers, make tools, and kernel-related files.

Yum Install Perl gcc make kernel-headers kernel-devel

Create a CD-ROM mount directory under the MNT directory:

mkdir /mnt/cdrom

Mount the optical drive as read-only to/mnt/cdrom, and enter the/mnt/cdrom to see the Vmware-tools compressed package

Mount -ro auto/dev/cdrom/mnt/cdrom

The "-C" parameter is required to extract the compressed package to the user directory and the new directory does not exist.

tar -zxvf vmwaretools-10.0. 6.3595377. tar. Gz-c/usr/newdir

Then install the Perl script and report the missing header file directory.

#./vmware-tools.pl

It must have been the result of a mismatch between the Yum Kernel-headers and the installation version.

To view the current Linux version number:

uname -R

Displays all the installation package QA and matches the keyword grep.

# rpm-qa| grep -E Kernel-header

There are different versions of the Kernel-header found.

Update kernel:

Yum Update kernel-y

After the completion of the restart, and then look at the two version number, has been consistent.

Reference Document: Http://www.centoscn.com/CentosBug/softbug/2015/0525/5531.html.

In the process of installing vmware-tools, you see the directory in which the Kernel-header is used:

/lib/modules/3.10. 0-327.28. 3. el7.x86_64/build/include

CentOS Base Installation

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.