Disable graphic interface knowledge in Ubuntu 12.04

Source: Internet
Author: User

Background
1. Ubuntu running level
The Linux system runs on a specified running level at any time, and different running-level programs and services are different. The work to be done and the purpose to be achieved are different, the system can switch between these running levels to complete different tasks.
Ubuntu system running level:
* 0: shutdown level
* 1: run scripts in the rc. sysinit and rc1.d directories at the single user level.
* 2: multiple users, but the system does not start NFS or character mode. In some linux systems, level 2 is the default mode and has network functions, such as ubuntu. debian.
* 3: multi-user, character mode, system startup with network functions, RedHat common operation level
* 4: User-Defined Level
* 5: graphic interface mode, common redhat running level
* 6: restart level
* S: run only the rc. sysinit file.
2. view the current running level and run the following command:
Runlevel
(Runlevel indicates the last running level and the current running level. "N" indicates that the previous running level does not exist .)
3. Switch the running level and run the following command:
Int [0123456Ss]
(That is, the init command is followed by a parameter. this parameter is the code of the running level to be switched to, for example, shutdown with the init 0 command and restart with the init 6 command .)

Bytes --------------------------------------------------------------------------------------------------------

Console switch under Gui
Crtl + alt + F1 ~ F7

F1 ~ F6 is the console with 6 characters. F7 returns to the graphic interface console.

Bytes --------------------------------------------------------------------------------------------------------

Ubuntu12.04 starts and directly enters the character interface:

Modify the GRUB configuration file (it is best not to change grub. conf directly)

/Etc/default/grub

Set GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash"

Replace with GRUB_CMDLINE_LINUX_DEFAULT = "text"

After saving, sudo update-grub, grub. conf will be updated.

Restart

Bytes --------------------------------------------------------------------------------------------------------

In Ubuntu12.04, the character interface starts the graphical interface:

Startx

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.