Here is how to start VNC from command line on your macintosh (say, via ssh) and then connect to your Macintosh from a Windows VNC client
Server side (SSH to your mac):
Step 1: -- set privs
Badabing:~ rob$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Starting...
Setting allow all users to YES.
Setting all users privileges to 1073742079.
Done.
Step 2: -- Allow VNC clients
Badabing:~ rob$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -clientopts -setvnclegacy -vnclegacy yes
Starting...
Set the client options.
Done.
Step 3: -- Set VNC password (change it at the end of the line (i.e. don't use supersecret))
Badabing:~ rob$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -clientopts -setvncpw -vncpw supersecret
Starting...
Set the client options.
Done.
Step 4: -- Restart service
Badabing:~ rob$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent -console
Starting...
Stopped ARD Agent.
Stopped VNC Privilege Proxy
Stopped RFB Register MDNS
Done.
Badabing:~ rob$
Step 5: -- Client side config
Windows (Client Side)
I installed the tightVNC viewer.
Enter IP address in the VNC Server field. Click "Options" Change Encoding to Hextile. Click ok.
Click Connect.
Enjoy.
Showing posts with label SSH. Show all posts
Showing posts with label SSH. Show all posts
Monday, March 23, 2009
Subscribe to:
Posts (Atom)