是否可以启动到终端?我试图寻找一个grub文件,但我找不到它。/boot/firmware/config.txt似乎也没有这样的选项。
问问题
6733 次
2 回答
6
感谢Rohith Madhavan和AceFace在Ubuntu-mate bitbucket 问题上:
您可以使用以下命令引导至 shell:
systemctl set-default multi-user.target --force
systemctl disable lightdm.service --force
systemctl disable graphical.target --force
systemctl disable plymouth.service --force
将禁用替换为启用以再次使用 GUI 引导。
于 2015-07-10T22:29:02.207 回答
4
提议的解决方案不适用于 Ubuntu MATE 16.04,并且“欢迎”应用程序提到了不存在的“图形”命令。以下对我有用:
#!/bin/bash
if [[ "$1" == 'enable' || "$1" == 'disable' ]]; then
if [ "$1" == 'disable' ]; then
systemctl set-default multi-user.target --force
fi
systemctl $1 lightdm.service --force
systemctl $1 graphical.target --force
systemctl $1 plymouth.service --force
if [ "$1" == 'enable' ]; then
if [ ! -h /etc/systemd/system/display-manager.service ]; then
ln -s /lib/systemd/system/lightdm.service /etc/systemd/system/display-manager.service
fi
systemctl set-default graphical.target --force
fi
else
echo 'Enables or disables GUI at boot.'
echo "Usage : $(basename) {enable | disable}"
fi
于 2017-02-14T11:08:09.020 回答