参考:
https://blog.csdn.net/july_young/article/details/81063242
https://www.cnblogs.com/lvdongjie/p/9804438.html
代码:
apt-get update -y
apt-get upgrade -y
sudo apt-get install -y gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal vnc4server x-window-system-core gdm ubuntu-desktop xfce4 xfce4-goodies tightvncserver vim
#启动:
vncserver :1
#停止:
vncserver -kill :1
编辑启动文件
vim ~/.vnc/xstartup
在xstartup文件中输入下面内容:
#!/bin/sh
def
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &