VNC Server
# VNC
# ubuntu server
apt update
apt upgrade -y
# install ubuntu-desktop
apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal -y
# install vnc server
apt install vnc4server -y
# config vnc server
echo 'gnome-panel &' >> ~/.vnc/xstartup
echo 'gnome-settings-daemon &' >> ~/.vnc/xstartup
echo 'metacity &' >> ~/.vnc/xstartup
echo 'nautilus &' >> ~/.vnc/xstartup
# start vnc server
vncserver :1
# stop vnc start
vncserver -kill :1