Linux character interface and graphical interface

Source: Internet
Author: User

Ubuntu graphical interface and character interface switching

Ubuntu, like other Linux systems, has a graphical interface and character interface, as well as the ability to set the default boot interface.

Linux display interface is divided into command line character interface and graphical interface , we can set the Linux default boot display interface. You can then manually switch back and forth.
Ubuntu in the graphical interface can use Ctrl+alt+t to open a new terminal, but in the character interface need to open more than one command line, the specific operation is:
CTRL+ALT+F1 a terminal ctrl+alt+f2 a second terminal .... Until the F6.
F7 's words are to return to Xwindow.

If you want Ubuntu to boot to command prompt each time, you can enter the following command:

$echo "false" | sudo tee/etc/x11/default-display-manager

When the next boot, will start in command line mode (text mode, character interface login) but the Ubuntu system will not automatically go to the character interface, will always be stuck in the logo interface, then as long as the ctrl+alt+6 entered the character interface.

If you want to change back to the GUI start (X Windows boot), you can enter:

$echo "/USR/SBIN/LIGHTDM" | sudo tee/etc/x11/default-display-manager

If the UBUNTN is started in command-line mode, the character terminal wants to return to the graphical interface with the following command:

$startx

This part of the above is that Ubuntu specifically got a file Default-display-manager. The content of this file to determine the level of start, now know two values, one is false only start the character interface, the other is/USR/SBIN/LIGHTDM will start the graphical interface.

Switch between the CentOS graphical interface and the character interface

CentOS graphical interface and character interface start and close unlike Ubuntu, the commands in CentOS are:

3    // close the graphical interface int 5    // turn on the graphical interface

Boot default to enter the character interface settings:

Vi/etc/inittab    // Change the id:5:initdefault to Id:3:initdefault

Then save the exit and you're ready.

Linux character interface and graphical interface

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.