Linux graphics mode and text mode and single-user mode switch, linux graphics

Source: Internet
Author: User

Linux graphics mode and text mode and single-user mode switch, linux graphics
1. The text mode is enabled by default.

If you want to enable the system to automatically enter the plain text mode,

Modify/etc/inittab

Find

Id: 5: initdefault:

This line indicates that the running level is 5 at startup, that is, the graphic mode.

3 is the text mode.

Id: 3: initdefault:

This is because the Linux operating system has six different run levels. At different run levels, the system has different states. These six run levels are:

0: Shutdown (remember not to set initdefault to 0, because this will make Linux unable to start)

1: single-user mode, just like the security mode in Win9X.

2: multiple users, but not NFS.

3: full multi-user mode, standard operation level.

4: It is generally not used. In some special cases, you can use it to do something.

5: X11, which means entering the X-Window system.

6: restart (remember not to set initdefault to 6, because this will make Linux continuously restart ).

Among them, running level 3 is the standard Console character interface mode we want to enter.

 

2. Force exit X-Window to Enter text mode

Open a terminal

Input init 3

(Note that there is a space behind init.) The GUI will be displayed soon.

After the preceding method is switched, the window mode is completely closed. If any file in the window is not saved, it will be lost.

(Init 5 can return to the GUI, but the original process is dead)

 

3. Do not exit X-Window to Enter text mode

In the X-Window Graphic operation interface, press "Alt + Ctrl + function key Fn" (n = 1 ~ 6), you can enter the text mode interface. This means that you can have both X-Window and six text mode interfaces.

Press "Alt + Ctrl + F7" to return to the X-Window Graphic operation interface from the text mode interface. In this case, seven screens are displayed in Linux by default, numbered tty1 ~ Tty7.

After X-Window is started, tty7 screen, tty1 ~ Tty6 is still a character screen. That is to say, you can use the "Alt + Ctrl + Fn" combination key to quickly switch between the character interface and the X Window Interface.

When X-Window loses response or crashes due to itself or applications, we can easily exit X-Window and go to the Console for troubleshooting.

---------------------------------------------------------------------------------

1. if you select the default format when installing: The desktop image format is:

Ctrl + alt + f1 graphics ---> text format

Alt + f7 text format = graphic interface

2. If you select the default text format during installation

Startx converts to the graphic 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.