分页: 1 / 1

关于关闭8.10中多余虚拟控制台(tty)的问题!

发表于 : 2008-11-30 21:37
psSmile
如题!
大家都知道默认情况下开启了6个虚拟控制台,无奈我的电脑配置较差,想关掉多余的,留2个就可以了,请问在ubuntu下是如果关闭的,因为没有inittab文件,实在不好办!
谢谢!

Re: 关于关闭8.10中多余虚拟控制台(tty)的问题!

发表于 : 2008-11-30 23:04
linee
把 /etc/event.d/tty3~6 4个文件最后两行注释掉。以 tty3 为例:

代码: 全选

# tty3 - getty
#
# This service maintains a getty on tty3 from the point the system is
# started until it is shut down again.

start on runlevel 2
start on runlevel 3

stop on runlevel 0
stop on runlevel 1
stop on runlevel 4
stop on runlevel 5
stop on runlevel 6

respawn
exec /sbin/getty 38400 tty3
改成

代码: 全选

# tty3 - getty
#
# This service maintains a getty on tty3 from the point the system is
# started until it is shut down again.

start on runlevel 2
start on runlevel 3

stop on runlevel 0
stop on runlevel 1
stop on runlevel 4
stop on runlevel 5
stop on runlevel 6

# respawn
# exec /sbin/getty 38400 tty3

Re: 关于关闭8.10中多余虚拟控制台(tty)的问题!

发表于 : 2008-12-01 2:28
ryoohki
直接删除 ttyX(X为数字) 文件

Re: 关于关闭8.10中多余虚拟控制台(tty)的问题!

发表于 : 2008-12-01 15:47
anriqing
推荐2楼做法。我感觉学Linux,要养成注释,备份的习惯。

Re: 关于关闭8.10中多余虚拟控制台(tty)的问题!

发表于 : 2009-11-22 18:20
atang
:em09

Re: 关于关闭8.10中多余虚拟控制台(tty)的问题!

发表于 : 2010-02-20 8:58
pandafq
在Ubuntu 9.10(Karmic)中由/etc/init取代了/etc/event.d,特别标记一下