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더 나은 결과를 얻을 수 있습니다.

관련 정보