只想分享,可能对任何人都有帮助。
我安装了Ubuntu Server 12.04,后来又安装了图形界面kubuntu-desktop
现在,当我想禁用图形启动/登录时,我尝试了所有选项
/etc/default/grub
..使条目GRUB_CMDLINE_LINUX_DEFAULT="text"
代替"quiet splash"
update-grub
update-rc.d -f ldm remove
update-rc.d -f kdm remove
update-rc.d -f gdm remove
以及
echo 'manual' | sudo tee /etc/init/lightdm.override
没事。然后,我编辑了/etc/init/kdm.conf
,并向和运行级别添加了2个默认运行级别[!026]
stop on runlevel [0126]
#================================================================
#start on ((filesystem
# and runlevel [!026]
# and started dbus
# and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
# or stopped udev-fallback-graphics))
# or runlevel PREVLEVEL=S)
#
#stop on runlevel [0126]
#================================================================
有效。