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.
- Direct Connection
- Setup the Windows VNC Server
- Setup the Linux VNC Client
- Make the connection
- Through a Reverse SSH Tunnel
- Setup the Windows VNC Server
- Setup the Linux VNC Client
- Make the connection
Method 1: Direct connection
Part 1: Setup the Windows VNC Server
- Install tightvnc-server.
- Start the vnc server. (Start -> Programs -> TightVNC -> Tight VNC Server)
Part 2: Setup the Linux VNC Client
- Install the tightvnc-client.
- 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
- Connect the Linux box to the Internet.
- On the Windows box start the vnc server if it isn't running.
- Connect to the Linux box by right clicking on the VNC system tray icon and choosing 'Add new client'.
- Enter my linux box IP address and the port number like this:
10.10.10.10::5900
(Yes, that is two colons.)
- Press 'Enter'
- ...Work...
Method 2: Through a reverse SSH Tunnel
Part 1: Setup the Windows VNC Server
- Install tightvnc-server.
- Run it at least once. (Start -> Programs -> TightVNC -> Tight VNC Server)
- Exit the tightvnc-server. Go to the icon in the system tray and right click it. Select 'Exit' from the menu.
- Open 'regedit'. (Start -> Run; In the text field type 'regedit' and press 'Enter'.)
- Go to the key HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3
- Find or add the DWORD AllowLoopback and set it to 1.
- Close 'regedit' and run the tightvnc server again.
- Now start Putty.exe
- In the host box, the top one next to the 22, enter my IP address.
- On the left, you should see an entry toward the bottom called 'Tunnel'. Click it once.
- In the new boxes on the right, check the boxes for 'Local ports accept...' and 'Remote ports do same...'.
- Now, in the bottom two lines, enter 5900 for local port...
- and 192.168.0.2:5900 for remote.
- Select the 'Remote' radio button on the bottom.
- Click the 'Add' button.
- Now, save the profile by going back to the first page, 'Session' I think in the list on the left.
- 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
- Create an account for Jason.
- Start the sshd daemon.
- Install the tightvnc-client.
Part 3: Make the connection
- Connect the Linux box to the Internet.
- On the Windows box start the vnc server.
- Run putty and make the connection setup before. In the list box choose the saved session and press the 'Load' button on the right.
- Login to the remote Linux computer.
- On the Linux computer, start the VNC client:
vncviewer localhost:5900
- ...Work...