You need to set the authentication global variable to VncAuth:
- Just issue the following command from cli and you will be prompted to enter a new password twice, that will be used to connect to your Raspberry PI from vnc:
$ vncserver Authentication=VncAuth-Authentication VncAuth
- After you have set your password, just kill every running vncserver session using
$ vncserver kill :X
where X is the session number starting from 1. Alternatively, just restart your Raspberry PI. - Then, just start vncserver eg from cli with executing
$ vncserver
(in certain cases you might need to issue$ vncserver -Authentication VncAuth
to force the vncserver to start with VncAuth) and connect to your session using the 5901 default port from your other desktop. If you are on OS X, eg on MacBook, then you can use thevnc://<RPI IP or hostname>:5901
url without any additional program.