Posts Tagged ‘vnc’

Enable ARD / VNC on command line

November 5, 2009 1 comment

This is a handy OSX tip if you’re working away from home and have only SSH access, but would find it useful to open a VNC session through the SSH tunnel.

# Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC)
$ sudo /System/Library/CoreServices/RemoteManagement/ -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all

# Disable Remote Desktop
$ sudo /System/Library/CoreServices/RemoteManagement/ -deactivate -configure -access -off -stop

Tags: ,