Turning on screen sharing (VNC) via a terminal connection

For some reason my Mac Mini running OS X Leopard tends to drop its VNC server. Here’s how to turn it back on via the terminal:

sudo sh -c “/bin/echo -n enabled > /Library/Preferences/com.apple.ScreenSharing.launchd”

I think this will also work for Tiger, not sure about previous versions.

Tagged with: ,

Leave a Reply

Your email address will not be published. Required fields are marked *