LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 658|回复: 2

简单的问题,怎样把默认启动改为字符模式

[复制链接]
发表于 2007-5-4 21:09:09 | 显示全部楼层 |阅读模式
装的是debian4.0,在/etc/inittab里是id:2:initdefault,改为3也不行。
发表于 2007-5-4 21:49:55 | 显示全部楼层
rcconf
去掉xdm/kdm/gdm
回复 支持 反对

使用道具 举报

发表于 2007-5-4 23:34:39 | 显示全部楼层
http://www.debian.org/doc/manual ... n.html#s-no-x-start

8.1.4 "Let me disable X on boot!"

Chasing unstable/sid is fun, but buggy xdm, gdm, kdm, or wdm started during the boot process can bite you bad.

First get the root shell by entering the following at the boot prompt:

     boot: Linux vga=normal s

Here, Linux is the label for the kernel image you are booting; "vga=normal" will make sure lilo runs in normal VGA screen, and "s" (or "S") is the parameter passed to init to invoke single-user mode. Enter the root password at the prompt.

There are few ways to disable all the X starting daemons:

    *

      run update-rc.d -f ?dm remove ; update-rc.d ?dm stop 99 1 2 3 4 5 6 .

    *

      insert "exit 0" at the start of all /etc/init.d/?dm files.

    *

      rename all /etc/rc2.d/S99?dm files to /etc/rc2.d/K99?dm.

    *

      remove all /etc/rc2.d/S99?dm files.

    *

      run :>/etc/X11/default-display-manager

Here, number in rc2.d must correspond to the runlevel specified in the /etc/inittab. Also ?dm means that you need to run the command multiple times by substituting it with all of the xdm, gdm, kdm, and wdm.

Only the first one in the list is "the one true way" in Debian. The last one is easy but only works on Debian and requires you to set the display manager again later using dpkg-reconfigure. Others are generic methods to disable daemons.

You can still start X with the startx command from any console shell.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表