Ubuntu14 modify the startup mode to disable the startup graphical interface
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] ".