ubuntu 16.04,vnc方式连接,桌面环境是xfce,各种软件的安装,这里就不说了,可以参考:
https://help.aliyun.com/knowledge_detail/59330.html
https://www.cnblogs.com/wangyuehan/p/9807791.html
https://blog.csdn.net/m0_37041325/article/details/80516041
https://blog.csdn.net/pingis58/article/details/79289565
xstartup 配置文件,很多都不行,通过自己的实验,亲测可用哈(同时也解决了连接之后,屏幕只有灰色幕布的问题):
#!/bin/sh
# Uncomment the following two lines for normal desktop
#export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
#unset DBUS_SESSION_BUS_ADDRESS
#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" &
startxfce4 &
#x-window-manager &
#export DESKTOP_SESSION=Ubuntn
#export GDMSESSION=Ubuntn
#export STARTUP="/usr/bin/gnome-session --session=Ubuntn"
#$STARTUP
#gnome-panel &
#gnome-setting-daemon &
#metacity &
#nautilus &
#gnome-terminal &