Thursday, May 30, 2019

Fixed: x2vnc not working with Mac OS X

(from the Wow - this was obscure department)

Hi everyone,

If you're trying to control your Mac OS X screen from your Linux box using x2vnc and the built-in Mac OS Screen Sharing server, and it's not working - or has stopped working - I finally figured out why.

It's because the Mac now adds a small security screen during an unencrypted VNC login.

To get around this, you need to bypass this screen so that VNC goes to the currently logged-in user.

This is done via this command:

sudo defaults write /Library/Preferences/com.apple.RemoteManagement VNCAlwaysStartOnConsole -bool true

Be aware that this bypasses some added security, so use this carefully.  

Cheers,
Paul

6 comments:

Jon said...

Thanks. This worked.

I also had to run the following command to get it to work:

sudo defaults write /Library/Preferences/com.apple.RemoteManagement VNCLegacyConnectionsEnabled -bool true

Sam Worm said...

Thank you for sharing this, using your command and the extra option from the comments resolved my connection problems. Greatly appreciated.

Anonymous said...

THANK YOU this works!!!! I put in both defaults writes right off the bat

Derek Williams said...

Is now saying 'Command not found' on High Sierra 10.13.6

Unknown said...

Since realised the Mac login name had changed - so it's working after all now.

Derek Williams said...

Oops, that was me above, didn't realise I had to log in anew for every single comment I add.

To reiterate, it's back up and working now.