Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Mac OS X (think it's Snow Leopard - 10.6.7) on a Mac mini. I'm trying to connect remotely from an iMac (this has been working fine in the past, for some time). When I click "Share Screen..." in finder on the iMac, I (eventually) see the server's desktop, but it appears to be frozen. However, I've managed to determine (from closing the window and sharing screen again, on repeat) that it IS actually receiving input, just not updating the display.

I can ssh into the server, but how can I restart the screen sharing service?

share|improve this question

I had the same trouble, and to a headless Mini also. This is what I found that worked…

sudo launchctl unload /System/Library/LaunchDaemons/  
sudo launchctl load -w /System/Library/LaunchDaemons/

I had the opportunity to install an SSD in my Mini, and did a clean install of Lion at that time, and the issue persisted.

I made an alias

alias fixscreen='sudo launchctl unload -w /System/Library/LaunchDaemons/ &&  sudo launchctl load -w /System/Library/LaunchDaemons/'
share|improve this answer
Thanks for this solution, was looking for it already for years! – t0r0X Nov 2 '14 at 19:41
Of course, you need ssh enabled on the server. – Greg Glockner Nov 9 '15 at 15:35

OK, managed to find the answer (or, at least, an answer; I'm not quite sure on all the details of this command):

$ sudo /System/Library/CoreServices/RemoteManagement/ -activate -configure -access -on -users admin -privs -all -restart -agent -menu

As always - be careful when you paste something into terminal - best to inspect the command before running it. Doubly so when sudo is involved.

share|improve this answer
I'm not clear about the relationship between ARDAgent (ie remote management) and just screen sharing. The the UI, you can tick Screen Sharing and NOT Remote Management but kickstarting ARDAgent remotely ticks Remote Management and NOT Screen Sharing (although it enables VNC). Does that make sense? – Toby Sep 29 '12 at 13:00

Rather than restart just the screen sharing service, I would suggest remote restarting the Mac Mini. You can do this via SSH by typing in:

sudo shutdown -r now

This will not only restart the screen sharing service, but may also resolve the issue that caused it to act up in the first place.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.