Quantcast
MacUser
News, info, and opinion by Mac users, for Mac users.

Screen sharing, terminal style

Posted by Dan Moren | Friday, August 29, 2008 9:59 AM PT

screensharing.jpgSince setting up my media vault (more to come on that, I promise), Leopard’s screen sharing has been an invaluable resource. With it enabled, I can access my Mac mini’s screen from anywhere in the whole wide world with no problem (as long as the mini doesn’t decide to log off the wireless network—but that’s another story).

But if you’ve ever forgotten to enable screen sharing or found that it was disabled for some reason, you’ll be glad to know that a quick Terminal command can turn it on or off (as long as you’ve enabled Remote Login in your Mac’s sharing preferences). No, this won’t display your remote Mac’s screen as animated ASCII art (bummer!).

Just connect to your Mac via Terminal and issue the following commands to enable the screen sharing goodness:

$ cd /Library/Preferences $ echo -n enabled > com.apple.ScreenSharing.launchd

Done and done. Want to disable the service? Here you go:

$ cd /Library/Preferences $ rm com.apple.ScreenSharing.launchd

Erm. Yeah. So that’s it. The whole post. What are you still doing here? I’m not your monkey!

Archives

Categories