How to start and switch the graphical interface in centos7
藏色散人
Release: 2020-10-09 14:59:22
forward
16916 people have browsed it
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"
Copy after login
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"
Copy after login
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 upFirst use ctrl alt f2 switches to the command line mode. If it is the command line mode, just follow the steps belowThen enter the following command to view the current boot mode
systemctl get-default
Copy after login
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
Copy after login
In the same way, if you want to boot the dos interface, enter the following command
systemctl set-default multi-user.target
Copy after login
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!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn