Site hosted by Angelfire.com: Build your free website today!

VNC Server/Client Connection Setup

Jason, here are the instructions for setting up the VNC connection. There are two methods and I'll describe them each here. The first one is preferrable, but we can fall back to the other one if we need to.

  1. Direct Connection
    1. Setup the Windows VNC Server
    2. Setup the Linux VNC Client
    3. Make the connection
  2. Through a Reverse SSH Tunnel
    1. Setup the Windows VNC Server
    2. Setup the Linux VNC Client
    3. Make the connection

Method 1: Direct connection

Part 1: Setup the Windows VNC Server

  1. Install tightvnc-server.
  2. Start the vnc server. (Start -> Programs -> TightVNC -> Tight VNC Server)

Part 2: Setup the Linux VNC Client

  1. Install the tightvnc-client.
  2. Start the vnc client on the Linux box and set it up to listen on port 5900 for a connection. vncviewer -listen 5950

Part 3: Make the connection

  1. Connect the Linux box to the Internet.
  2. On the Windows box start the vnc server if it isn't running.
  3. Connect to the Linux box by right clicking on the VNC system tray icon and choosing 'Add new client'.
  4. Enter my linux box IP address and the port number like this: 10.10.10.10::5900 (Yes, that is two colons.)
  5. Press 'Enter'
  6. ...Work...

Method 2: Through a reverse SSH Tunnel

Part 1: Setup the Windows VNC Server

  1. Install tightvnc-server.
  2. Run it at least once. (Start -> Programs -> TightVNC -> Tight VNC Server)
  3. Exit the tightvnc-server. Go to the icon in the system tray and right click it. Select 'Exit' from the menu.
  4. Open 'regedit'. (Start -> Run; In the text field type 'regedit' and press 'Enter'.)
  5. Go to the key HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3
  6. Find or add the DWORD AllowLoopback and set it to 1.
  7. Close 'regedit' and run the tightvnc server again.
  8. Now start Putty.exe
  9. In the host box, the top one next to the 22, enter my IP address.
  10. On the left, you should see an entry toward the bottom called 'Tunnel'. Click it once.
  11. In the new boxes on the right, check the boxes for 'Local ports accept...' and 'Remote ports do same...'.
  12. Now, in the bottom two lines, enter 5900 for local port...
  13. and 192.168.0.2:5900 for remote.
  14. Select the 'Remote' radio button on the bottom.
  15. Click the 'Add' button.
  16. Now, save the profile by going back to the first page, 'Session' I think in the list on the left.
  17. Enter a name in the text field above the list box, and click save. The name you entered should appear in the list box.

Part 2: Setup the Linux VNC Client

  1. Create an account for Jason.
  2. Start the sshd daemon.
  3. Install the tightvnc-client.

Part 3: Make the connection

  1. Connect the Linux box to the Internet.
  2. On the Windows box start the vnc server.
  3. Run putty and make the connection setup before. In the list box choose the saved session and press the 'Load' button on the right.
  4. Login to the remote Linux computer.
  5. On the Linux computer, start the VNC client: vncviewer localhost:5900
  6. ...Work...