sudo apt update
sudo apt install -y \
ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal \
xfonts-base xfonts-75dpi xfonts-100dpi \
xfce4 xfce4-goodies \
tightvncserver
touch ~/.Xresources
vi ~/.vnc/xstartup
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
vncserver :1
# Prompts for the password the first time this command is run
# vnc://myserver:5901
netstat -peanut | grep vnc
# vncserver -kill :1
# vncpassword # Change the password
# sudo rm ~/.vnc/passwd # Remove the password, so the next execution of vncserver will prompt for a password