[Ubuntu] 14.04 Turn off desktop

Source: Internet
Author: User

has been using Ubuntu desktop to do debugging environment, recently found that the desktop will crash, Occupy resources is also relatively large, so want to turn off the desktop, only with the command interface. My system isUbuntu14.04
CTRL+ALT+F1 can go to the command line, but not turn off the desktop Alt+f7 can go back to the desktop
Refer to a question from someone else http://askubuntu.com/questions/16371/ How-do-i-disable-x-at-boot-time-so-that-the-system-boots-in-text-mode This answer gives a detailed explanation of the different situations.

To open the command line interface using Ctrl+alt+tsudo service LIGHTDM stop

this goes into a black screen interface. However, it is possible to connect with SSH, and that is the result.
If you want to restore your desktopsudo service lightdm start
Here's one answer that's most agreeable:

For Ubuntu 11.10 and higher

Edit/etc/default/grub with your favorite editor,

sudo nano/etc/default/Grub

Find out this line:

grub_cmdline_linux_default  =  " quiet Splash " 

change it to:

grub_cmdline_linux_default  =  " text " 

Update Grub:

sudo update-grub

no need to Remove/disable lightdm  upstart Conf, it already does.

lightdm.conf

# Check Kernel command-line for inhibitors, unless we is being called        # manually         forARGinch $(Cat/proc/CmdLine);  Do            if [ "$ARG" = "Text" ];  ThenPlymouth quit|| :Stop Exit0            fi         Done

You'll still be able to the use X by typing after your startx logged in.


This article is from the "Orangleliu Notebook" blog, reproduced please be sure to keep this source http://blog.csdn.net/orangleliu/article/details/43370405

Author Orangleliu using Attribution-NonCommercial-sharing protocol in the same way

[Ubuntu] 14.04 Turn off desktop

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.