sudo apt-get install vnc-server
Now enter a password. Now you will get a question: "Would you like to enter a view-only password (y/n)" I did "n"
If sudo apt-get install vnc-server is not working for you, try
sudo apt-get install tightvncserver
Now download Tight VNC viewer, for Windows
TightVNC alternatives: RealVNC / UltraVNC / JollysFastVNC(MAC OSX)
Windows install of TightVNC:
Install viewer only, you don’t need the server, because the raspberry pi is the server.
After Setup- Open TightVNC and connect with RASPBERRYPIIPADRES:5901 (5091 is the port)
Screenshot of Realvnc on my android device.
Connected to my raspberry pi.
How to automatic start of Tightvnc on boot?
sudo nano /etc/rc.local
and add “sudo vncserver” 1 line above “Exit 0”
Hit control + X to save and close the file.