Modify the Startup Mode of ubuntu 14 and disable the graphic interface for startup.

Source: Internet
Author: User

Modify the Startup Mode of ubuntu 14 and disable the graphic interface for startup.

The default runlevel of Ubuntu is 2. You can use runlevel to view the current default running level.

The runlevel is defined as follows: 0-Halt, shutdown mode 1-Single, Single user mode 2-Full multi-user with display manager (GUI) 3-Full multi-user with display manager (GUI) 4-Full multi-user with display manager (GUI) 5-Full multi-user with display manager (GUI) 6-Reboot, 2 ~ can be found after restart ~ There is no difference in level 5. Linux


The default run-level file for ubuntu is/etc/init/rc-sysinit.conf.

Prevent the default graph desktop from starting ubuntu 12.04 to open a graphical interface by default, which is implemented by the lightdm process. The first thing to do is to stop the lightdm process from starting up. Practice: (1), view the file/etc/init/rc-sysinit.conf, near line 14th: Confirm "env DEFAULT_RUNLEVEL = 2 ". 2 is the default value for the newly installed system. Make sure that it is not modified. (2) edit the file/etc/init/lightdm. conf. Near line 12th, the original sentence "and runlevel [! 06] "to" and runlevel [! 026] ".


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.