KDE,GNOME占内存高,xfce轻便占资源少
主要是修改配置文件要准确 /root/.vnc/xstartup (xfce版) 网上大多是gnome版的
vi /root/.vnc/xstartup
# 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 &
startxfce4 &
刷新服务
systemctl daemon-reload