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