CentOS7 install a graphical desktop

1, installed CentOS7, we are not on the Internet beginning of (ping Baidu error: Name or service not know)

2, enter dhclient, you can obtain an IP address automatically, and then view the command ip addr IP 

But this time acquired IP is dynamic, after the next reboot the system, IP address will change, this time we can set the system as a static IP is provided as follows: 
(1) Click on the upper left corner of VMware virtual machines. " edit ", select" virtual network compiler. " 
(2) Select VMnet8 (NAT mode), then click on the right side of the "NAT settings" at this time will see the following interface 

3, at the command line: vi / etc / sysconfig / network-scripts / ifcfg-ens33, enter the following interface

 

I press enter edit mode, the following modifications

When you are done, press the "ESC" key, then enter ":! Wq". Meaning that exit and save.

4, restart the network service network restart

At this time www.baidu.com can ping to ping, and this network is configured.

5, enter the command: yum groupinstall "GNOME Desktop" "Graphical Administration Tools" 安装Gnome包

   After entering the command waiting to be downloaded, and then all the way down y

6, set the system to start rating

    systemctl get-default #获取当前系统运行形式,会显示multi-user.target(命令行终端),或者:graphical.target

 systemctl  set -default graphical.target  #设置默认启动为图形界面,reboot后界面会自动是图形窗口了。
 systemctl  set -default multi-user.target  #换回命令界面启动
7, reboot reboot reboot into the graphical interface by default

 

Guess you like

Origin www.cnblogs.com/zqyw/p/11202560.html