如何禁用图形界面?

没有找到相应的配置,同时 telinit 3 也无效

/etc/init.d/lightdm stop

直接
apt-get remove lightdm
reboot
用着了再装回来