1) Search for Section "Screen"
- Add the following three lines in this section
- Option "SecurityTypes" "VncAuth"
Option "UserPasswdVerifier" "VncAuth"
Option "PasswordFile" "/home/yourusername/.vnc/passwd"
- Change yourusername to your user name
- Add following line to this section
- Load "vnc"
- run vncpasswd command (vncpasswd)