LinuxSir.cn,穿越时空的Linuxsir!

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

如何让debian的图形终端运行于Alt+F7下?

[复制链接]
发表于 2006-6-8 13:15:13 | 显示全部楼层 |阅读模式
题目说的有些不清楚。其实很简单,用过redhat的朋友都知道,redhat始终开启6
个字符终端,而X终端则固定运行于第七个终端上。在开启X终端后,依然可以通过Alt+Fx组合键切回到字符终端。

请各位朋友指点一下。
发表于 2006-6-8 13:40:59 | 显示全部楼层
我的debian testing就是这样的啊。。装出来就是。。。没有改过,网络安装的
回复 支持 反对

使用道具 举报

发表于 2006-6-8 14:23:13 | 显示全部楼层
cat /etc/inittab
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-8 19:09:15 | 显示全部楼层
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-8 19:15:09 | 显示全部楼层
我的testing和sid都不行,一旦起动x,就不能切回控制台了。

看了看inittab的man页,没看明白。应该怎么修改呢?
回复 支持 反对

使用道具 举报

发表于 2006-6-8 20:45:18 | 显示全部楼层
Ctrl+Alt+Fx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-8 21:25:16 | 显示全部楼层
楼上的,不行呀。
回复 支持 反对

使用道具 举报

发表于 2006-6-8 21:32:51 | 显示全部楼层
我怀疑你没装xkb-data。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-8 21:52:58 | 显示全部楼层
Post by seamonkey
我怀疑你没装xkb-data。

有呀,我已经确定过了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-8 22:16:59 | 显示全部楼层
哈哈,找到原因了。
跟我使用的窗口管理器有关系。我现在用fvwm,不知道什么地方把按键定义给修改了。进入x后,要按shift-ctrl-alt-F1~6才行。不过从控制台切换到x,只需要alt-F7。

今天太晚了,明天再好好看看有没有什么地方可以修改。
回复 支持 反对

使用道具 举报

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

本版积分规则

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