Enable VNC on Raspberry Pi via SSH

sudo vncpasswd -service
# use -weakpwd for simple passwords
sudo echo ‘Authentication=VncAuth’ > /etc/vnc/config.d/common.custom
sudo service vncserver-x11-serviced stop
sudo service vncserver-x11-serviced start