Home>Article>Operation and Maintenance> How to start and switch the graphical interface in centos7

How to start and switch the graphical interface in centos7

藏色散人
藏色散人 forward
2020-10-09 14:59:22 16827browse

The following columncentos introductory tutorialwill introduce to you how to start and switch the graphical interface of centos7. I hope it will be helpful to friends in need!

How to start and switch the graphical interface in centos7

##Installation graphical interface

The 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

  1. How to start and switch the graphical interface in centos7
  2. Install X (X Window System) , the command is as follows:
  3. 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:
  1. 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.
  1. After the installation is completed, we can enter the graphical interface through the command startx

  2. How to start and switch the graphical interface in centos7
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
  1. Then enter the following command to view the current boot mode
  2. 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
  1. systemctl set-default graphical.target
    In the same way, if you want to boot the dos interface, enter the following command
  1. systemctl set-default multi-user.target
Switch between dos interface and graphical interface shortcut keys

Graphic 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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete