First, there is a problem
在VMware虚拟机中成功安装centOS 7系统后,如果启动centOS 7系统直接进入命令行模式,没有进入操作系统桌面模式,那么应该是没有配置安装GUI图形界面的程序包所致,启动系统会默认进入命令行模式的界面。
如果首次使用,不习惯命令行的模式,如何切换到图形化界面模式去应用?
Second, the solution
针对上述问题,其实centOS 7可以将命令行模式转换为图形化界面模式启动,只需要联网状态下下载CentOS 7系统所需的GUI模式的程序包进行安装和配置即可。
Third, the implementation steps
Command-line mode is switched to the graphical desktop core steps:
- After the first installation, start centOS 7 system, log in as root user to the command line
- View centOS default startup mode 7 (command line mode display: multi-user.target)
- CentOS modify the default startup mode 7 (graphical interface displays: graphical.target)
- NIC configuration information centOS 7 systems, virtual machines and the external network to maintain Unicom
- Yum command obtained by mounting a graphical interface and package GNOME
- After successful installation, reboot the CentOS 7 system, testing GUI interface effects
Fourth, the implementation details
End by VMware installation centOS 7 system, log in as root
View centOS default startup mode 7, the command line, type: systemctl get-default
View Results default startup mode display
#命令行启动模式
multi-user.target
#图形化界面启动模式
graphical.target
View centOS 7 supported by the system startup mode
# View profile
cat / etc / inittab
centOS 7 system can set default startup mode
#设置为图形化界面模式
systemctl set-default graphical.target
#设置为命令行模式
systemctl set-default multi-user.target
Set centOS 7 default graphical interface to start
NIC configuration information, so that the virtual machines to communicate with the external network
#进入系统网卡配置文件
cd /etc/sysconfig/network-scripts/
#找到ifcfg-ens33文件,进行编辑
vi ifcfg-ens33
#修改启动设备参数为yes
ONBOOT=yes
#增加DNS配置信息
DNS1=8.8.8.8
DNS2=4.2.2.2
#编辑后保存退出
:wq
Restart card services, ping outside the network can communicate
Note: First make sure the virtual machine network can access the Internet
#重启网卡服务
systemctl restart network
#ping外网测试连通性
ping www.baidu.com
Check the yum command support
#检查yum命令
yum -h
Yum command obtained by mounting a graphical interface and package GNOME
#通过yum命令获取资源并安装图形化界面包,直到complete!
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
Check the default start-up mode, restart centOS 7
#查看默认启动方式是否是图形化界面
systemctl get-default
#重启centOS 7
reboot
After the restart the desktop mode, set the account password to log
Uploading ... re-upload canceled
Successful login into the desktop interface
The system can be set according to their own language
Select "Region & Language" - click on "Language"
Select "Chinese (China)" - "Done
After configuring the set directly click "restart ..."
Restart prompted to log out "logout" current account, log back in to display Chinese interface
In summary, to achieve the command line interface to the changeover of the graphics patterns on the VMware centOS 7 system.