[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:47147] Re: Vncserverの設定



荒井@野田です。

喜瀬“冬猫”浩さん、長南さん、ありがとうございます。

長文ごめんなさい。

まだ、試していないのですが、グラフィカルユーザーログインではない時(startx)
にtwmが起動してしまうのでしょうね。
出張で明日一杯まで留守になります。戻ったらXの設定をもう一度確認するようにしま
す。

Vncserverを初めて設定した時のxstartupは

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
です。

/usr/sbin/update-alternatives --display x-session-managerの結果は

 x-session-manager - status is auto.
 link currently points to /usr/bin/gnome-session
/usr/bin/gnome-session - priority 50
 slave x-session-manager.1.gz: /usr/share/man/man1/gnome-session.1.gz
/usr/bin/startkde - priority 40
Current `best' version is /usr/bin/gnome-session.

/usr/sbin/update-alternatives --display x-window-managerの結果は

x-window-manager - status is auto.
 link currently points to /usr/bin/metacity
/usr/bin/metacity - priority 60
 slave x-window-manager.1.gz: /usr/share/man/man1/metacity.1.gz
/usr/bin/kwin - priority 50
/usr/X11R6/bin/twm - priority 40
 slave x-window-manager.1.gz: /usr/X11R6/man/man1/twm.1x.gz
/usr/bin/wmaker - priority 50
 slave x-window-manager.1.gz: /usr/share/man/man1/wmaker.1x.gz
Current `best' version is /usr/bin/metacity.

 /usr/sbin/update-alternatives --list x-window-managerの結果は

/usr/bin/metacity
/usr/bin/kwin
/usr/X11R6/bin/twm
/usr/bin/wmaker

Wmakerは後からインストールしました。

/etc/X11/Xsession.d/50xfree86-common_determine-startupは

# $Id: 50xfree86-common_determine-startup 1437 2004-05-23 03:18:32Z branden
$

# This file is sourced by Xsession(5), not executed.

# If no X session startup program was passed to the Xsession script as an
# argument (e.g., by the display manager), or if that program was not
# executable, fall back to looking for a user's custom X session script, if
# allowed by the options file.
if [ -z "$STARTUP" ]; then
  if grep -qs ^allow-user-xsession "$OPTIONFILE"; then
    for STARTUPFILE in "$USERXSESSION" "$ALTUSERXSESSION"; do
      if [ -e "$STARTUPFILE" ]; then
        if [ -x "$STARTUPFILE" ]; then
          STARTUP="$STARTUPFILE"
        else
          STARTUP="sh $STARTUPFILE"
        fi
        break
      fi
    done
  fi
fi

# If there is still nothing to use for a startup program, try the system
# default session manager, window manager, and terminal emulator.
if [ -z "$STARTUP" ]; then
  if [ -x /usr/bin/x-session-manager ]; then
    STARTUP=x-session-manager
  elif [ -x /usr/bin/x-window-manager ]; then
    STARTUP=x-window-manager
  elif [ -x /usr/bin/x-terminal-emulator ]; then
    STARTUP=x-terminal-emulator
  fi
fi

# If we still have not found a startup program, give up.
if [ -z "$STARTUP" ]; then
  ERRMSG="unable to start X session ---"
  if grep -qs ^allow-user-xsession "$OPTIONFILE"; then
    ERRMSG="$ERRMSG no ¥"$USERXSESSION¥" file, no ¥"$ALTUSERXSESSION¥"
file,"
  fi
  errormsg "$ERRMSG no session managers, no window managers, and no
terminal" ¥
           "emulators found; aborting."
fi

# vim:set ai et sts=2 sw=2 tw=80: