Tutorial for Setting Up Remote Connection Using VNC

  • Required softwares


  • Setting up the VNC server

    1. Open PuTTY

      PuTTY icon

    2. Connect to one of the linux host (i.e. tank.engr.smu.edu) port 22 using SSH protocol
      Click open

      PuTTY connect

      If security alert is asked, click yes



    3. Login using your Unix Engineering login and password

      Login screen

    4. Type vncserver -depth 24 -geometry 800x600 to start the VNC Server on the host
      Replace 800x600 with desired resolution. If this is the first time starting vncserver, you'll be asked to setup the password that will be use to connect to the vncserver.

      vncserver setup

      Take note of the number in the phrase "New 'X' desktop is tank:1"

    5. Right-click on the PuTTY title bar and choose Change Settings...

      PuTTY Change Settings

      • Select Connection/SSH/Tunnels
      • Add 5900 to the number in 4. and put it in Source port (in this case 5900 + 1 = 5901)
      • Type localhost:5901 into Destination (use the same number as Source port after localhost: )
      • Click Add
      • Click Apply

      PuTTY add Tunnels

    6. Open UltraVNC Viewer

      Ultra VNC icon

      Type in the Destination as configured in PuTTY (localhost:5901) then click Connect

      UltraVNC connect

      Type in the password created when running vncserver then click Log On

      VNC password

    7. Enjoy

      VNC Desktop

    8. When finished, close UltraVNC Viewer and type vncserver -kill :1 (change the number to correspond the number in 4.) in PuTTy to terminate vncserver

      Kill vncserver


Last Update: April 20, 2006 6:40 PM
by pongsak@engr.smu.edu
SMU Home  |  Engineering Help  |  Job Opportunities  |  Legal Disclosures
Send comments to: webteam  |  © 2006 SMU, all rights reserved