VMware installs CentOS three--centos network setup and software installation

Source: Internet
Author: User

we have installed the CentOS system in front, but because it is minimized, the system is not networked and there are no other basic software that can be managed remotely. Here we need to set up the network of the system, and then through the Xshell remote management system, finally by modifying the Yum source, local installation of some necessary software.

First, network settings

1, login into the system, input ifconfig can see only lo network, now is not networked, the following to set up the network of Eth0 interface.

2, enter the VI command, directly edit the eth0 interface configuration file.

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

3, the Onboot modified to on, is set to boot eth0 network card, save exit.

4. Enter the command to restart the network service.

Service Network restart

5, re-enter Ifconfig can see the eth0 interface has obtained the IP address, 192.168.239.137, then we can use remote Tools to connect.

6. Open the Xshell software, create a new session, and then enter the CentOS IP address on the host. The use of Xshell is because this is a free software, and the interface is more concise and beautiful, download using Xshell can be Baidu itself.

7, you will be prompted whether to save the key, choose to accept the save.

8, enter the user name root, tick remember user name

9, enter the password, tick remember password, convenient to log in later, if you worry about security issues can also not check.

10, so landing into the system, in the color scheme where the selection of ANSI white background, this person likes, I prefer a white background.

11. Edit the eth0 configuration file again and modify it to a static IP address.

Vi/etc/sysconfig/network-scripts/ifcfg-eth0


12, enter the command to restart the network service, see sure to know that the configuration is not a problem.

Service Network restart

Second, mount the CentOS CD, modify the Yum source to local

1, the following we came to the virtual machine settings interface, the CD/DVD where the device status check is connected, this operation is equivalent to inserting the CD into the computer CD-ROM.

2. Create a mounted folder to mount the disc. See Read-only knew the mount was successful.

mkdir/mnt/cdrommount/dev/sr0/mnt/cdrom/


3, into the Yum configuration file directory, you can see there are several Yum source, we want to modify media content. Because the default is the base of the Yum source, here directly to the base configuration file name, make it invalid.

CD/ETC/YUM.REPOS.D/MV Centos-base.repo Centos-base.repo.bak


4, the VI Editor to open the media configuration file, see the configuration as follows. BaseURL where the CD-ROM mount directory is set, the enabled setting is available and 0 is unavailable.

5, after the modification as shown below, save exit.

6. The LS command confirms that the base file has been renamed and the media file is just modified.

7. Execute command to clear yum cache.

Yum Clean All

8, execute the command to create a new Yum cache, see the following created that is the Yum source modification succeeded, modified to the local Yum source.

Yum Makecache

Third, install the necessary software and settings

1. Install Vim text editor, wget downloader, Links text interface browser, lsof IO tool, NTP network pair, GCC compiler, and OpenSSL.

Yum Install Vim-yyum install Wget-yyum install Links-yyum install Lsof-yyum install Ntp-yyum install gcc-yyum instal L OPENSSL-DEVEL-Y

2, execute the date command, see the time is not the current time, with NTP to synchronize time (need to network or have local NTP server).

Datentpdate 0.asia.pool.ntp.org


3, the time synchronization and CD mount set to boot, with the tail command to view the results of rc.local.

echo "Ntpdate 0.asia.pool.ntp.org" >>/etc/rc.localecho "Mount/dev/sr0/mnt/cdrom" >>/etc/rc.local


4. Close the computer and save the snapshot.



VMware installs CentOS three--centos network setup and software installation

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.