VNC画面にウィンドウフレームがありません。

VNC画面にウィンドウフレームがありません。

ヘッドレスUbuntu 14.04サーバーで素晴らしい仮想デスクトップを構成しようとしています。

残念ながら、リモート画面を開くと、次の図が表示されます。

ここに画像の説明を入力してください。

つまり、ウィンドウにはフレームとタイトルはありません。

/etc/init/Xvnc4.conf次のコマンドを使用してVNC(upstartスクリプト?)を実行します。

description "VNC screen for Dims"

start on (local-filesystems and started dbus and stopped udevtrigger)
stop on runlevel [016]

expect fork

script

     /usr/bin/Xvnc4 :0 -geometry 1280x1024 -PasswordFile /root/.vnc/passwd &
     cd /root
     export HOME=/root
     export DISPLAY=:0
     export LANG=en_US.UTF-8
     export LANGUAGE=en_US:en
     ~/.vnc/xstartup
end script

私は以下を持っています/root/.vnc/xstartup

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/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 &
# mwm &
gnome-session &

/etc/vnc/xstartup欠席

/root/.Xresources欠席

ここに問題がありますか?

ベストアンサー1

次のように実行してみてくださいgnome-session

if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax –exit-with-session`
fi
gnome-session &

gnome-wmコメントで述べたように、走るとgnome-sessionより良い結果が得られます。

おすすめ記事