转载自https://www.cnblogs.com/jeysin/p/8994327.html 自留备用
1、首先我们修改grub文件,把其中的GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"改为GRUB_CMDLINE_LINUX_DEFAULT="text",还有取消GRUB_TERMINAL=console之前的注释#。
2、然后更新我们的grub。
$sudo update-grub
3、设置开机进入字符界面。
$sudo systemctl set-default multi-user.target
4、然后我们重新启动我们的ubuntu,直接就进入字符界面了。
$sudo reboot
5、在字符界面下要登录图形界面可以使用以下的命令。
$sudo systemctl start lightdm
6、如果要回到开机启动直接进入图形界面,可以执行以下的命令。
$sudo systemctl set-default graphical.target