CentOSx. x disable Gui logon

Source: Internet
Author: User
After the current linux installation is complete, the system runs at the 5th system running level by default, that is, the system directly enters the graphic interface after the system is started, you do not need to use startx or xinit to start the GUI after logging on in character mode, which looks very convenient. But what are the disadvantages? Once you change... after the current linux installation is complete, the system runs at 5th system running levels by default, that is, the system directly enters the graphic interface after it is started, you do not need to use startx or xinit to start the GUI after logging on in character mode, which looks very convenient. But what are the disadvantages? Once you have changed some settings and displayed problems, the system keeps sending tokens between graphics and characters. it is very troublesome for new users to learn how to deal with them, and for those who study Linux, this is not conducive to understanding and learning some underlying Linux things. Old users who have used Linux for a long time know that in the past, Linux such as redhat6.0 had a default running node of 3. even if RedHat9.0 was later installed, they can select the default character logon or graphical logon. However, the current fcseries and most other versions directly allow users to directly log on to the GUI regardless of November 21. Although Linux is becoming easier for most Cainiao, there is a lot of fun and new users cannot experience it. Maybe you don't believe that there are many problems when you log on to the system directly using graphics. we recommend that you set the default running level of the system to 3rd after the system is installed. after logging on to the character terminal, then manually enter the startx command to start the graphic interface. Usually 0-6 levels: 0 shutdown, 1 single user, 2 multi-user without network, 3 multi-user with network, 4 reserved, you can customize a GUI for user 6. you can use the following method to modify the restart system: make a backup before modifying the/etc/inittab file in the editor: cp/etc/inittab/etc/inittabbak vi/etc/inittab # Edit the/etc/inittab File id: 5: initdefault: # and change it to id: 3: initdefault: in the future, if you want to change the image to 5: wq! # After saving the file, reboot restarts and the system starts to the character interface by default. The difference between different running levels lies in the differences between the services started by default by the system. for example, runtime level 3 does not start the X graphical interface service by default (you can start it with startx ), running Level 5 is started by default. There is no difference in nature, and it doesn't matter whether the functions of different levels are strong or not. Users can define different levels of default services on their own. At any running level, you can use the init command to switch to another running level.
Related Article

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.