![Ubuntu:您可以从访客帐户切换到管理员帐户吗](https://linux22.com/image/1554023/Ubuntu%EF%BC%9A%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BB%8E%E8%AE%BF%E5%AE%A2%E5%B8%90%E6%88%B7%E5%88%87%E6%8D%A2%E5%88%B0%E7%AE%A1%E7%90%86%E5%91%98%E5%B8%90%E6%88%B7%E5%90%97.png)
笔记本电脑的屏幕熄灭了,我连接了第二个外部屏幕。Ubuntu 直到登录后才识别第二个屏幕。超时后,我使用 Ubuntu 作为默认双启动,并想编辑 Grub 启动加载程序以默认为 Windows,我想我记得它在登录前识别第二个屏幕,我想禁用主屏幕,看看我是否可以在外部屏幕上登录。
在 Ubuntu 客户端中,我无法编辑 Grub。有办法解决这个问题吗?还是我无计可施?有没有办法以客户端身份登录以显示屏幕,然后切换到非临时工作区sudo
?su
errors:
su setgid: Operation not permitted
sudo: unable to change to root gid: Operation not permitted
sudo: unable to initialize policy plugin
答案1
- 您可以使用单用户模式或附加
init=/bin/bash
到启动项以登录到 root shell(https://askubuntu.com/questions/132965/how-do-i-boot-into-single-user-mode-from-grub) ctrl+alt+F1
并启动 TTY > 使用 sudo 权限登录你的账户(http://www.stuckngo.com/how-to-run-sudo-command-from-guest/)- 使用 liveCD linux 并编辑 Grub。http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd