[Seek Help] 输入密码后又跳回登录界面无法进入桌面
Tofloor
poster avatar
小明Hackintosh
deepin
2021-05-29 17:40
Author

输入密码后又跳回登录界面无法进入桌面.

输入密码后提示,"AMD-Vi : Unable to read/write to IOMMU perf coun ter.",又很快跳回登录界面。

进入命令界面(ctrl+alt+F2)注释掉自己配置的系统环境变量后,返回登录界面(ctrl+alt+F1),可以正常登录 。

也不知道是不是我配置了变量的问题。

tty | egrep -q tty[1-6] && export LC_ALL=C

#别名
#alias ll='ls -la --color=auto'

#oracle 配置
export OCCI_HOME=/home/zzyy/tools/instantclient_11_2
export OCCI_INCLUDE_DIR=/home/zzyy/tools/instantclient_11_2/sdk/include
export OCCI_LIBRARY_PATH=$OCCI_HOME
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OCCI_LIBRARY_PATH

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export ORACLE_SID=XE
export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
export PATH=$ORACLE_HOME/bin:$PATH
Reply Favorite View the author
All Replies
忘记、过去
deepin
2021-05-29 20:37
#1

第一行是为了在tty用英文显示吗?可能这里有问题?

Reply View the author
小明Hackintosh
deepin
2021-05-29 23:57
#2
忘记、过去

第一行是为了在tty用英文显示吗?可能这里有问题?

那是原来的。

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin"
fi
export PATH

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
tty | egrep -q tty[1-6] && export LC_ALL=C

#别名
#alias ll='ls -la --color=auto'

#oracle 配置
#export OCCI_HOME=/home/zzyy/tools/instantclient_11_2
#export OCCI_INCLUDE_DIR=/home/zzyy/tools/instantclient_11_2/sdk/include
#export OCCI_LIBRARY_PATH=$OCCI_HOME
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OCCI_LIBRARY_PATH
#
#export ORACLE_BASE=/u01/app/oracle
#export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
#export ORACLE_SID=XE
#export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
#export PATH=$ORACLE_HOME/bin:$PATH
Reply View the author
小明Hackintosh
deepin
2021-05-29 23:57
#3

注释了我自己的就可以登录了。

Reply View the author
忘记、过去
deepin
2021-05-30 00:02
#4

建议把配置oracle写在 .bashrc 或者 .zshrc 之类的里面

Reply View the author
wukong_android
deepin
2021-06-04 22:18
#5

我这边也出现了,,怎么解决@ deepin_z

Reply View the author
相信
deepin
2021-06-14 22:26
#6
wukong_android

我这边也出现了,,怎么解决@ deepin_z

这边也出现了,好久了,@ deepin_z

Reply View the author