Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

How do I start/restart RealVNC Enterprise Server for Mac via the command line?

Perhaps also how do I tell (via command line, whether RealVNC Enterprise Server is running or not)

share|improve this question
up vote 4 down vote accepted

got this feedback from RealVNC

A) Start Service-Mode VNC Server

sudo touch /etc/vnc/service/on

This will trigger the launch of the VNC Server launch daemon and user helper launch agent

B) Stop Service-Mode VNC Server

sudo rm /etc/vnc/service/on
sudo launchctl stop com.realvnc.vncserver
launchctl stop com.realvnc.vncserver_agent

C) Restart Service-Mode VNC Server

Same as A)


share|improve this answer

The article Start VNC from command line and connect to Mac from Windows VNC client recommends:

Step 1: -- set privs

sudo /System/Library/CoreServices/RemoteManagement/ -configure -allowAccessFor -allUsers -privs -all

Step 2: -- Allow VNC clients

sudo /System/Library/CoreServices/RemoteManagement/ -configure -clientopts -setvnclegacy -vnclegacy yes

Step 3: -- Set VNC password (change it at the end of the line (i.e. don't use supersecret))

sudo /System/Library/CoreServices/RemoteManagement/ -configure -clientopts -setvncpw -vncpw supersecret

Step 4: -- Restart service

sudo /System/Library/CoreServices/RemoteManagement/ -restart -agent -console
share|improve this answer
Isn't this about the built-in VNC server? – janmoesen Oct 19 '11 at 7:39

Try the following commands:

which vncserver
which x0vncserver
man vncserver
man x0vncserver

This works on Ubuntu; OS X should be similar.

share|improve this answer
don't get a response on Mac Lion for this - I did note after posting a fall back may be to reboot remotely, but doesn't specifically address the question I posed I guess – Greg Oct 3 '11 at 11:08

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.