Set Up VNC on Mac OS X

Need to control an Apple computer running OS X 10.4 Tiger or OS X 10.5 Leopard from a remote location? That's the purpose of VNC!

Steps

Understanding VNC

  1. Definition: VNC stands for Virtual Network Computing.
  2. Purpose: VNC allows you to remotely send keyboard and mouse input across a network or the internet from one computer to another and even view exactly what is on the screen of the other computer. This allows you to control a computer like you were sitting in front of it from another room, another building, or even another country depending on the setup.
  3. How it works: In the most basic of terms when you connect to a remote machine through VNC you see in a window the screen of the remote machine and you are able to control it as if you were sitting in front of it. Any actions taken through the window directly affect the remote machine.
  4. The components:
    • The Server: The VNC server is the computer whose screen you want to share, this computer runs the server software allowing other computers to connect and control it.
    • The Client: A VNC client is any computer connecting to and taking control of a server.
    • The Protocol: The protocol used is the method of communication between the client and the server. The protocol is determined by the software and generally the user cannot change it so for the purpose of this document it will suffice to say that it is there but you do not need to worry about it.

Mac OS X 10.4 or 10.5 - Setup as Server

Mac OS X 10.4 and 10.5 include the server component out of the box so all we need to do is turn it on.

  1. Open your System Preferences from your blue apple menu.
  2. Click the Sharing icon under the 'Internet and Network' category.
  3. Highlight the Apple Remote Desktop component in the list of items.
  4. Click Start to fire up Apple Remote Desktop service.
  5. If you are NOT connecting with JollysFastVNC or ScreenSharing you need the following steps:
    • Click Access Privileges to open the more advanced options.
    • Check on VNC viewers may control screen with password and define a password.
  6. You can close the System Preferences. You're done!

Mac OS X 10.4 - Setup as Client

To connect to your new VNC server from a remote machine you will need a VNC Viewer but luckily there are a number of free options out there.

  • The steps for setup will depend on the viewer you choose follow the documentation closely and you will have no problems creating a connection.
  • JollysFastVNC is currently the fastest and actively developed VNC client including many features not available in any other client.
  • Chicken of the VNC is an older client that is confirmed to work with this method simply connect using the IP address of the Server computer. (On the server use Safari or Firefox and goto www.whatismyip.com)

(Chicken of the VNC is no longer actively developed and has been replaced by a new one called Chicken, http://sourceforge.net/projects/chicken/ )

Mac OS X 10.5 - iChat Method

Leopard includes screen sharing built into iChat. Although it is not the best method, it is the easiest.

  1. Open iChat using a .Mac account or Bonjour if both computers are on the same network.
  2. Select your buddy in the main buddies list.
  3. At the bottom of iChat is a Screen Sharing button that looks like two squares one over the other.
  4. Select either Share My Screen With <buddy> or Ask to Share <buddy>'s Screen.
  5. iChat takes care of the rest.
    • To end the session press [Command]+[Esc] on either computer.
  • NOTE: Someone needs to be at the remote computer for this method to accept or initiate the sharing session.

Mac OS X 10.5 - Finder Method

Server

  1. Open the Sharing System Preferences pane.
    • Open System Preferences from your black apple menu.
    • Click Sharing.
  2. At the top of the Services list is Screen Sharing. Select it and turn it On.
  3. Where it says Allow access for:, choose All users.. This will make things easier.
  4. If you are not using ScreenSharing or JollysFastVNC you have to:
    • Click the Computer Settings button.
    • From the next window check on Anyone may request permission to control screen.
    • On the same window enable the VNC viewers may control screen with password option and choose a password. This allows computers running VNC software that do not support all security methods, such as Chicken of the VNC.

Client

  1. Click somewhere on the Desktop that is empty to activate the Finder.
  2. Select the Go menu at the top of the screen and then Connect to Server.
  3. On the window that opens type vnc:// followed by IP address of the computer to which you want to make a connection. (Example: vnc://10.1.1.22)
  4. Click the Connect button.
  5. If it works you will have the option to connect as a registered user or by asking for permission.
    • If you select registered user you will need to enter a username and password for an account on the server computer.
    • If you select to ask for permission someone will need to be at the remote computer and click allow.

Tips

  • If you are genuinely concerned with security, you should configure your VNC server to only accept local connections and then establish an ssh tunnel from the client machine. This way, all VNC packets between client and server will be encrypted.
  • If you are running a server, be sure to secure it by at least setting a password on the server. It is also recommended that you restrict which IP addresses can connect to the server for additional security.

Warnings

  • VNC by default is not all that secure of a protocol and can open you up to attack by someone who is determined to gain access to your system. For this reason you should disable VNC by reversing the above steps when it is not needed.

Related Articles