Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: Start screen sharing remotely in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Start screen sharing remotely in Terminal
Authored by: dmarkow on Sep 11, '09 07:18:54AM
In Snow Leopard (10.6), you need to do this to the file /private/etc/ScreenSharing.launchd instead of /Library/Preferences/com.apple.ScreenSharing.launchd

[ Reply to This | # ]
10.6: Start screen sharing remotely in Terminal
Authored by: mael on Jan 03, '10 03:00:58AM
Not for me in 10.6.2. It still is
sudo sh -c "/bin/echo -n enabled > /Library/Preferences/com.apple.ScreenSharing.launchd"
here...

[ Reply to This | # ]
10.6: Start screen sharing remotely in Terminal
Authored by: hiawatha on Jul 14, '10 03:49:19PM

I verified on Mac OS X Server version 10.6.3 that dmarkow's comment was accurate. A file named "/private/etc/ScreenSharing.launchd" with text "enabled" as its contents was required to get screen sharing working.



[ Reply to This | # ]
10.6: Start screen sharing remotely in Terminal
Authored by: dogfacedboy on Oct 15, '10 07:59:00AM

Thank you! Have used this page for ages to remind myself of how to turn it on under 10.5, then a headless 10.6 server became unresponsive to ScreenSharing a couple of days ago. Would've saved myself a lot of trouble (and probably the reinstall) if I had scrolled through the comments sooner!

Thanks! :-)



[ Reply to This | # ]
10.6: Start screen sharing remotely in Terminal
Authored by: zacht on Nov 30, '10 08:29:36PM

This was a major help to me. Thank you!

(My wife's laptop's screen broke, but other than that the computer works fine, so I wanted to set it up as a home server. I could SSH into it. Now with this hint I've been able to use the SSH command-line session to start Screen Sharing; and from there everything is much easier.)



[ Reply to This | # ]
10.6: Start screen sharing remotely in Terminal
Authored by: covisp on Jun 20, '11 02:25:33PM

Neither of these locations works for OS X Lion, sadly. It appears that a binary plist is created at /Library/Preferences/com.apple.RemoteManagement.plist, but the contents of it do not seem to change when he setting in Sharing=>Remote Management are changed, nor when Sharing=>Screen Sharing is turned on, but the file's time stamp is changed.

[raw]
<dict>
<key>ARD_AllLocalUsers</key>
<false/>
<key>LoadRemoteManagementMenuExtra</key>
<false/>
<key>ScreenSharingReqPermEnabled</key>
<false/>
<key>VNCLegacyConnectionsEnabled</key>
<false/>
</dict>
[/raw]

There is also /Library/Application Support/Apple/Remote Desktop/Client/Tasks/tasks.plist which is touched, but not actually changed. I suspect all these settings now are 'hidden' in some defaults write area or a database?

Haven't found it yet.


---
http://www.covisp.net



[ Reply to This | # ]
10.6: Start screen sharing remotely in Terminal
Authored by: MatteoC on Aug 03, '11 02:39:33PM
for me the following did the job:


cd /System/Library/LaunchDaemons/
sudo launchctl load -w com.apple.screensharing.plist

where

sudo launchctl unload -w com.apple.screensharing.plist would disable it. Worked for me in Lion. Might work in older Versions too.

[ Reply to This | # ]

10.6: Start screen sharing remotely in Terminal
Authored by: mishamazor on Nov 08, '11 10:24:42AM
Great, this is the only one that worked for me under 10.6.6:
sudo sh -c "/bin/echo -n enabled > /private/etc/ScreenSharing.launchd"
How do I rewrite this code to disable screensharing? None of the options on this thread work as yet. Thx, Misha

[ Reply to This | # ]