在 Ubuntu Gnome 上启动 VNC 服务器

在 Ubuntu Gnome 上启动 VNC 服务器

我正在尝试在一台 Ubuntu Gnome PC 上使用 Tight VNC Server 启动 VNC 服务器,然后从另一台使用 Remmina 的 Ubunt Gnome PC 连接到该服务器。这是我的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 &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax –exit-with-session`
    echo "D-BUS per-session daemon address is: \
    $DBUS_SESSION_BUS_ADDRESS"
fi
exec  gnome-session

但当我尝试连接时,我得到的只是以下内容:

奇怪的网格图案截图

有人知道我做错什么了吗?

相关内容