How to start and switch the graphical interface in centos7
藏色散人forward
2020-10-09 14:59:2216973browse
The following column centos introductory tutorial will introduce to you how to start and switch the graphical interface of centos7. I hope it will be helpful to friends in need!
##Installation graphical interfaceThe default is not A graphical interface will be installed, so you need to install it manually. The steps are as follows:
Open the system and enter as root
Install X (X Window System) , the command is as follows:
yum groupinstall "X Window System"
There are about more than 200 softwares, and complete will appear after the installation is completed! words. Then install the graphical interface software, GNOME (GNOME Desktop), the command is as follows:
yum groupinstall "GNOME Desktop"
Since this software group is much larger than the first one (containing about 800 software), the installation process It will be slower. Complete will appear when the installation is complete! words.
After the installation is completed, we can enter the graphical interface through the command startx
Start the graphical interface after booting up
First use ctrl alt f2 switches to the command line mode. If it is the command line mode, just follow the steps below
Then enter the following command to view the current boot mode
systemctl get-default
graphical.target represents boot Start the graphical interface when booting
multi-user.target represents starting the dos interface when booting
Finally enter the following command to set the graphical interface to boot up
systemctl set-default graphical.target
In the same way, if you want to boot the dos interface, enter the following command
systemctl set-default multi-user.target
Switch between dos interface and graphical interface shortcut keysGraphic to dos: ctrl alt f2
dos Go to the graphics: Enter startx or on the command input init 3 command to switch to the dos interface Enter init 5 command to switch to the graphical interface
The above is the detailed content of How to start and switch the graphical interface in centos7. For more information, please follow other related articles on the PHP Chinese website!