在8.x的ubuntu上,很容易通过sysv-rc-conf修改设置,关闭gdm,实现启动默认进入命令行。
关闭gdm之后,要重新进入图形界面,可以使用命令:
hunterx@ubuntu:$ telinit 3
但是在ubuntu9.10里,这个方法不起作用。使用sysv-rc-conf管理gdm会发现所有启动分级下gdm都没有被设置为装载。
去google了一下,得到如下解决方案:
编辑文件 /etc/init/gdm.conf
做出如下修改
##backup by hunterx
#start on (filesystem
# and started hal
# and tty-device-added KERNEL=tty7
# and (graphics-device-added or stopped udevtrigger))
##
start on (runlevel[3]
filesystem
and started hal
and tty-device-added KERNEL=tty7
and (graphics-device-added or stopped udevtrigge
也就是给启动增加分级约束条件,只有rc.3才启动图形界面。
保存重启,哦了。
