Linux text interface to graphic interface

Source: Internet
Author: User

Run telinit 5 with Root

You can also use VI to modify the/etc/inittab. Let's take a closer look at the comments. That's help ..

 

1. the first step after installation is to log on to the GUI by default. If you enter the text interface after installation, run the following command: # redhat-config-xfree86 (but using this in RedHat as4.0 is not successful !) It takes effect after you press Enter!

2. to convert the file, you must modify the VI file. Open the terminal window on the desktop and run the following command:

# Vi/etc/inittab (enter)

Move the cursor to the '5' position of 'id: 5: initdefault: ', and press the r key and the 3 key respectively to change the value to ID: 3.

Press ESC in the upper left corner to exit, and then press SHIFT +:. After:, enter 'wq' to save and exit! (In the VI Editor, 1. from command mode to input mode, type A, I. o. All three can be entered, which means that you can enter another mode by using one of the commands. Sometimes a prompt is displayed for you to choose. For example, '(e) editor' appears in command mode, which means you must press the e key to edit it. 2. After the operation is complete, return to the command mode and Press ESC. 3. if the operation takes effect, the command mode is changed to the unlined mode. Press 'shift +: 'and enter 'wq' (enter) to save the operation and exit the operation; 'q! '(Enter) indicates that the operation does not take effect; 'q' (enter) indicates that the operation is opened and no changes are made, provided that the content is not changed! If yes, Q! Yes, too! These are the most commonly used in VI)

Finished! Run the following command to verify that the terminal is entered on the desktop:

1. # init-6 (enter) can also be entered

# Shutdown-R now (enter)

#/Sbin/telinit 3 (available in redhat9.0)

After you press enter, you can restart and enter the text interface.

2. Enter

# Init-5 (enter) to the GUI. You can also enter # startx (enter) to return to the GUI.

3. # After reboot (enter) is restarted, the text interface is displayed!

Use the shortcut key:

1. From desktop to text: Press FN (n = F1-F12) + CTRL + ALT at the same time

2. From text to table: Press F7 + Alt at the same time (the premise is that the text can be converted back to desktop only when the desktop is converted to text !)

3. Text to text: FN + ALT (terminal window switching for multiple users in text)

By the way, (# init-0 and # shutdown-H now) are shut down, but they can be suspended in the virtual machine!

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.