You’ve been googling now for a while out of frustration that you can’t connect using TightVNC Viewer on Windows to connect to your freshly installed Ubuntu 14.04 desktop. Vino VNC server used to work out of the box but the new version of Ubuntu 14.04 comes pre-installed with settings that break authentication. The problem isn’t Ubuntu but your VNC client, but that’s another topic and we just want it to work again.
Click the Search button from the taskbar and start typing “Desktop Sharing Preferences” in the search field. Click on the “Desktop Sharing Preferences” icon and set up your preferences like the image below.
Don’t select automatically configure UPnP router to open and forward ports unless you know you need it, and always set a password!
In previous versions of Ubuntu this was all you had to do, but now when you connect via <a href="http://www.tightvnc look at these guys.com/”>TightVNC you receive the error “No matching security types!”.
So let’s fix that problem by disabling encryption for VNC.
CTRL+ALT+T to start a terminal and start the
nano text editor.
Type the following script that will be used to disable encryption, then press
CTRL+X to save the file.
#!/bin/bash export DISPLAY=0:0 gsettings set org.gnome.Vino require-encryption false
Now make the file executable.
chmod +x vino-fix.sh
Note: Test the script and make sure it executes successfully. If you get the error
No such schema 'xxxx'then you spelled the path of the setting incorrectly.
That script will disable encryption for Vino, but you’ll need to run this every time you reboot. So let’s add it to the list of “Startup Applications”
Click Add and configure as follows:
- Comment: (optional)
Reboot your system, and you are done!
This tutorial is a modified copy of Getting remote access to work on Ubuntu from libregeek.org. All credit belongs to them.