切入到字符终端,只有一个光标跳动,输入都没有反应

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
caijyi1
帖子: 28
注册时间: 2011-09-29 11:53
联系:

切入到字符终端,只有一个光标跳动,输入都没有反应

#1

帖子 caijyi1 » 2011-12-08 14:54

各位大大们好,我是个小菜鸟,刚接触ubuntu不久,用的是11.04版本。
平时查点资料什么的一些小问题也都能解决了..
我也不知道平时折腾了什么东西,今天CTRL+ALT+F1切入到字符终端时,只有一个光标在跳动,输入字符都没有反应,跪求各位大大们帮忙,我系统这是怎么了?
明明那么喜欢,偏偏越走越远。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#2

帖子 eexpress » 2011-12-08 14:57

把 ~/.bashrc 改名
● 鸣学
头像
caijyi1
帖子: 28
注册时间: 2011-09-29 11:53
联系:

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#3

帖子 caijyi1 » 2011-12-08 15:28

好几个~/.bashrc 的文件,没有改名的选项,怎么改名呢?
上次由 caijyi1 在 2011-12-08 15:31,总共编辑 1 次。
明明那么喜欢,偏偏越走越远。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#4

帖子 leeaman » 2011-12-08 15:31

什么可能好几个,这个名字的一个用户一个,不会多的,你也可以检查看看里面有什么错误
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
caijyi1
帖子: 28
注册时间: 2011-09-29 11:53
联系:

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#5

帖子 caijyi1 » 2011-12-08 15:39

leeaman 写了:什么可能好几个,这个名字的一个用户一个,不会多的,你也可以检查看看里面有什么错误
有两个bash.bashrc的文件,一个还上锁了。还有两个dot.bashrc的文件,一个也上锁了。搜~/.bashrc就没搜到。
小菜鸟一个,错误之处请勿骂我....
明明那么喜欢,偏偏越走越远。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#6

帖子 leeaman » 2011-12-08 15:41

bash.bashrc是在/etc/下面的,/home/你的用户名/.bashrc,这个是你要找的,改名字或者查找里面的错误看看
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
caijyi1
帖子: 28
注册时间: 2011-09-29 11:53
联系:

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#7

帖子 caijyi1 » 2011-12-08 15:50

leeaman 写了:bash.bashrc是在/etc/下面的,/home/你的用户名/.bashrc,这个是你要找的,改名字或者查找里面的错误看看
谢谢,已经找到了这个文件了。只是不知道怎么看有没有错误,我先改改名字试试好了。传不上.bashrc的文件.. :em20
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
明明那么喜欢,偏偏越走越远。
头像
caijyi1
帖子: 28
注册时间: 2011-09-29 11:53
联系:

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#8

帖子 caijyi1 » 2011-12-08 15:59

重命名过了,还是不行...不知道怎么了。
明明那么喜欢,偏偏越走越远。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#9

帖子 leeaman » 2011-12-08 16:25

换个终端试试?xterm?
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
caijyi1
帖子: 28
注册时间: 2011-09-29 11:53
联系:

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#10

帖子 caijyi1 » 2011-12-08 17:16

leeaman 写了:换个终端试试?xterm?
不是按CTRL+ALT+F1进入字符终端,切换全屏的那种么?终端我是可以进去的。xterm输入后弹出另外一个终端,再按ctrl+alt+f1或者f2还是全屏只有一个光标跳动,输入都是没反应的。
明明那么喜欢,偏偏越走越远。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#11

帖子 leeaman » 2011-12-08 17:18

这个...不会是系统有什么问题吧?没见过 :em06
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
caijyi1
帖子: 28
注册时间: 2011-09-29 11:53
联系:

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#12

帖子 caijyi1 » 2011-12-08 17:43

leeaman 写了:这个...不会是系统有什么问题吧?没见过 :em06
我也觉得可能被我平时瞎折腾,给折腾坏了...
一般的进入字符终端,除了光标应该还是有点其他的文字的吗?输入帐户,起码应该是有字的把。我的就光突突的一个光标...是因为开启了3D的缘故么?
明明那么喜欢,偏偏越走越远。
头像
monk
帖子: 19507
注册时间: 2010-01-28 10:45

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#13

帖子 monk » 2011-12-08 18:06

被折腾坏了

*********宁静致远*********
如果我说的有什么不对,请看签名第一行
头像
SilverZhao
帖子: 115
注册时间: 2010-10-09 23:37
来自: NJU

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#14

帖子 SilverZhao » 2011-12-12 18:04

代码: 全选

cat /etc/inittab
查看下面的有没有被 # 号注释掉:

代码: 全选

c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
妾发初覆额,折花门前剧。郎骑竹马来,绕床弄青梅。同居长干里,两小无嫌猜。
头像
caijyi1
帖子: 28
注册时间: 2011-09-29 11:53
联系:

Re: 切入到字符终端,只有一个光标跳动,输入都没有反应

#15

帖子 caijyi1 » 2011-12-15 17:33

谢谢各位,我重装了...汗~
明明那么喜欢,偏偏越走越远。
回复