Install the CentOS minimal version on the VM

Source: Internet
Author: User
Tags lowercase

Open the virtual machine and select New virtual machine.


Select the typical, next step;


Choose to install the operating system later;


Operating system to choose Linux, version is CentOS;


General default on it, if you want to set the CentOS installation location, you can click to browse, find a place of their own;


The default is OK;


Select Custom Hardware;


Figure, find the CentOS image file, then OK, then click Finish.

Next, open the virtual machine:


Click the ENTER key after selecting the first item;


Select Skip to continue the installation;


Next continues;


Choose English, next continue;


Select U.s.english, select next to continue;


Do not change, continue next;


Select Yes;


Choose Configure network, set the network



Then go back to the previous page and continue next.


Time to choose Shanghai (in fact, is the Times), continue next;


Set the password, next continue;


Select the first item, then continue;


Click this ↑


Then, it started to install, because it is the mini version, so very fast.


Reboot;


Type root, enter, and then enter the password, because the input echo is not displayed.

First Ping, OK, can surf the internet. If you have not set up the network before, but directly select the next step, the following configuration can be:

Enter at command line: Vi/etc/sysconfig/network-scripts/ifcfg-eth0



If the network is not configured, the value of Onboot is no, and change to Yes.

How to change. Click on the keyboard lowercase i, move the cursor to No side, delete, add Yes, then press ESC, and then press the two uppercase Z save, in the command line input reboot restart.

Install the GCC compiler:

Perform yum-y install gcc gcc-c++ kernel-devel, and then it will start downloading and installing automatically.

Displays complete. The typeface indicates that the installation was successful. At this point, the C language environment was set up.

Next, the graphical interface will be installed:

Input command: yum-y groupinstall "X window System"

Then it starts to install:


Wait slowly----. -the same appears complete. , the installation is successful.

Then install Gnome:

Enter command: yum-y groupinstall "Desktop"


Set GNOME to start by default:

Enter command: Vi/etc/inittab

Then move the cursor down to Id:3, the 3 above, press lowercase R, enter 5, and press two uppercase Z to save.


Next, we create a new user (Root has the highest privileges, Gnome does not allow root to log in directly)

The following figure:


Where Alvin is my username, Next is reboot.

Then you'll jump out of this page:


Then you can always choose forward.


OK, graphical interface over~

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.