ubuntu start with text mode

转自:http://blog.csdn.net/qq229596421/article/details/72084693

sudo vi /etc/default/grub 

#GRUB_CMDLINE_LINUX_DEFAULT=”quiet”

GRUB_CMDLINE_LINUX=”text”

GRUB_TERMINAL=console

sudo update-grub  

sudo systemctl set-default multi-user.target  

sudo reboot  

进入命令行模式后,可以如下命令切换回桌面模式

sudo systemctl start lightdm