Linux graphical interface and character interface switching

Source: Internet
Author: User

Transferred from: http://blog.163.com/wang_ly2442/blog/static/9494340720128355054551/

1. Enter the character interface at startup and later want to switch to the graphical interface: using startx or init 5
(Note: StartX just added a graphical interface to the original RunLevel 3, the runlevel is unchanged, and init 5 is switching to RunLevel 5, so log back in.) Use the runlevel command to view the current run level and the last run level)

2. Enter the graphical interface at startup and later want to switch to the character interface:
With ctrl+alt+f1~ctrl+alt+f6, you can switch to a different character console (just six character consoles, no difference), then use ctrl+alt+f7 to switch back to the graphical interface;
If it is in virtual machine VMware, the graphical interface switches to the character interface:
Use ctrl+alt+shift+f1~ctrl+alt+shift+f6, and then use alt+f7 to switch back to the graphical interface.
(Note: The graphical interface is not closed after the above method has been switched)

3. Forcibly exit the X-window graphical interface into text mode:
Open a terminal, enter Init 3, and then enter the text interface.
(Note: The graphical interface is completely closed after the above method has been switched.) If a file is not saved in the window, it will be lost. With init 5 You can return to the graphical interface, but the original process is dead. Use STARTX to load the graphical interface on the current level 3)

4. Error when switching:
The current runlevel is 5, and an error occurs when you switch to the character interface and then enter the STARTX system via CTRL+ALT+F1.


5. Modify the Linux default boot level (mode)
As root vi/etc/inittab, find Id:5:initdefault: The row (where the ID may be another number). Modify ID Value:3 is the text mode ,5 is the interface mode . The document shall be reboot after it is held.

Linux graphical interface and character interface switching

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.