VNC 屏幕上没有窗口框架

Dim*_*ims 5 gnome vnc headless x11 upstart

我正在尝试在我的无头无头 Ubuntu 14.04 服务器上配置好的虚拟桌面。

不幸的是,我在打开远程屏幕时看到以下图片:

在此处输入图片说明

即窗口没有框架和标题。

我使用以下/etc/init/Xvnc4.conf(新贵脚本?)运行 VNC :

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
Run Code Online (Sandbox Code Playgroud)

我有以下内容 /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 &
Run Code Online (Sandbox Code Playgroud)

/etc/vnc/xstartup 缺席

/root/.Xresources 缺席

这里有什么问题?

A.P*_*.P. 2

尝试gnome-session像这样运行:

\n\n
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then\n    eval `dbus-launch --sh-syntax \xe2\x80\x93exit-with-session`\nfi\ngnome-session &\n
Run Code Online (Sandbox Code Playgroud)\n\n

正如评论中指出的,跑步gnome-wm可能gnome-session会产生更好的结果。

\n