发新话题
打印

Ubuntu Server 20.04 Desktop 去掉Xwindow

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 编辑 ]

TOP

发新话题