ubuntu server 18.04安装桌面

sudo apt-get install ubuntu-desktop
切换到命令行启动
参考https://blog.csdn.net/bjarnecpp/article/details/96897234

sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_TERMINAL=console

sudo update-grub

sudo systemctl set-default multi-user.target

sudo reboot

还原

sudo systemctl set-default graphical.target

Ctrl+F6 进命令行

标签: none

添加新评论