No Persistent mode:
apt-get update && upgrade apt-get install x11vnc x11vnc -storepasswd
x11vnc -ncache 10 -auth guess -nap -forever -loop -repeat -rfbauth /root/.vnc/passwd -rfbport 5900 -noncache
Persistent mode:
Step:01
Go to the below path cd /usr/local/bin
Step:02
and create the file nano sharex11vnc