Board logo

标题: Ubuntu Server 20.04 Desktop 去掉Xwindow [打印本页]

作者: linda    时间: 2021-12-30 16:59     标题: Ubuntu Server 20.04 Desktop 去掉Xwindow

systemctl stop lightdm
systemctl disable lightdm
systemctl status lightdm
update-rc.d lightdm disable
mv /etc/init.d/lightdm /root

vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="text"

update-grub

mv /usr/lib/xorg/Xorg.org /usr/lib/xorg/Xorg.org
reboot
参考/usr/bin/startx /usr/bin/Xorg

Xwindow登录时,输入用户名root及root密码,不是ubuntu\ubuntu

参考:
https://askubuntu.com/questions/16371/how-do-i-disable-x-at-boot-time-so-that-the-system-boots-in-text-mode
https://askubuntu.com/questions/19320/how-to-enable-or-disable-services

[ 本帖最后由 linda 于 2021-12-31 10:43 编辑 ]




欢迎光临 中神通公司技术论坛 (http://trustcomputing.com.cn/bbs/) Powered by Discuz! 6.0.0