LinuxSir.cn,穿越时空的Linuxsir!

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

xsession出错

[复制链接]
发表于 2005-7-13 20:26:45 | 显示全部楼层 |阅读模式
前几天开始玩DEBIAN(Sarge),感觉很不错,但一个问题一直困扰着我。
登陆DEBIAN的时候老是提示我xsession出错,那么我只好选择不是默认的gnome/kde登陆,用户名用root(非root就是进不去,死活提示xsession出错)。下面是我的.xsession-error和/etc/gdm/PreSession/Default里的详细信息,大家帮忙看看如何解决~~~先谢了:)
.xsession-error文档的信息:
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/X11R6/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "root"
/etc/gdm/Xsession: Beginning session setup...
SESSION_MANAGER=local/elephant:/tmp/.ICE-unix/5622
libhal.c 767 : org.freedesktop.DBus.Error.ServiceDoesNotExist raised
"Service "org.freedesktop.Hal" does not exist"


** (gnome-volume-manager:5727): WARNING **: manager.c/1099: seems that HAL is not running


/etc/gdm/PreSession/Default信息:
#!/bin/sh
#
# Note that any setup should come before the sessreg command as
# that must be 'exec'ed for the pid to be correct (sessreg uses the parent
# pid)
#
# Note that output goes into the .xsession-errors file for easy debugging
#
PATH="/usr/X11R6/binPATH:/bin:/usr/bin"
OLD_IFS=$IFS

gdmwhich () {
  COMMAND="$1"
  OUTPUT=
  IFS=:
  for dir in $PATH
  do
    if test -x "$dir/$COMMAND" ; then
      if test "x$OUTPUT" = "x" ; then
        OUTPUT="$dir/$COMMAND"
      fi
    fi
  done
  IFS=$OLD_IFS
  echo "$OUTPUT"
}

XSETROOT=`gdmwhich xsetroot`
if [ "x$XSETROOT" != "x" ] ; then
        # Try to snarf the BackgroundColor from the config file
        BACKcolor=`grep '^BackgroundColor' /etc/gdm/gdm.conf | sed 's/^.*=\(.*\)$/\1/'`
        if [ "x$BACKCOLOR" = "x" ]; then
                BACKcolor="#76848F"
        fi
        "$XSETROOT" -cursor_name left_ptr -solid "$BACKCOLOR"
fi


SESSREG=`gdmwhich sessreg`
if [ "x$SESSREG" != "x" ] ; then
        # some output for easy debugging
        echo "$0: Registering your session with wtmp and utmp"
        echo "$0: running: $SESSREG -a -w /var/log/wtmp -u /var/run/utmp -x \"$X_SERVERS\" -h \"$REMOTE_HOST\" -l \"$DISPLAY\" \"$USER\""

        exec "$SESSREG" -a -w /var/log/wtmp -u /var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" -l "$DISPLAY" "$USER"
        # this is not reached
fi

# some output for easy debugging
echo "$0: could not find the sessreg utility, cannot update wtmp and utmp"
exit 0
 楼主| 发表于 2005-7-13 22:12:15 | 显示全部楼层
自己顶一下!
回复 支持 反对

使用道具 举报

发表于 2006-10-3 13:34:48 | 显示全部楼层
I encounter that too.
回复 支持 反对

使用道具 举报

发表于 2006-10-4 22:10:28 | 显示全部楼层
缺少Dbus与Hal?安装一下试试?
回复 支持 反对

使用道具 举报

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

本版积分规则

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