Graphical Applications with VNC (Windows)
Graphical applications in Linux are based on X windows. VNC is an alternative to X11 forwarding and X11 emulation.
This tutorial will guide you through setting up a VNC (Virtual Network Client) session and connecting to it from a Windows computer.
This guide uses Putty, an ssh client for windows (tutorial here), and UltraVNC viewer (available ).
- Launch putty.exe and login to a server.
- Type vncserver to start the VNC Server on the host
- The first time starting vncserver, you'll be asked to setup the password that will be used to connect to vncserver. Note: this password is for vncserver only and does not relate to any other password you may have.
- Take note of the number in the phrase "New ... desktop is genuse50.engr.smu.edu:9." That number will vary!
![vncserver setup](/-/media/site/oit/services/genuse/vncserver-start-example.png?w=667&hash=17CE19830054C36F02376A3B75BD600A)
- Setup tunnel to route traffic between vncserver and vnc viewer
- Right-click on the PuTTY title bar and select Change Settings...
- Select Connection/SSH/Tunnels
- Add 5900 to the display number (from step 2). and enter Source port (in this example: 5900 + 9 = 5909)
- Type localhost:5909 into Destination (use the same number as Source port after localhost: )
- Select Add
- Select Apply
![PuTTY Change Settings](/-/media/site/oit/services/genuse/putty-change-settings.png?w=667&hash=08C2ACB084783C54E8FB3132731B6675)
![PuTTY add Tunnels](/-/media/site/oit/services/genuse/putty-example-port-tunnel-5909.png?w=456&hash=5DAB66F9ED38F779871E3E99A191D4BF)
![putty tunnel select apply](/-/media/site/oit/services/genuse/putty-example-port-tunnel-apply.png?h=442&w=452&hash=221A6A1589ADD6A802BDA0F3A13CE00E)
- Launch UltraVNC Viewer
- Type in the Destination as configured in PuTTY (localhost:5909) then click Connect
- Type in the password created when running vncserver then click Log On
![UltraVNC connect](/-/media/site/oit/services/genuse/uvnc-connection-example.png?w=374&hash=F19DFA265F2D0990EB7EB145147AB81F)
![VNC password](/-/media/site/oit/services/genuse/uvnc-password.png?w=357&hash=90BEC0A85F1BBBC9BCD5B3A83B203D6B)
- Configure desktop and launch application
- Probably want to change the theme for icons to appear correctly. win95 work well.
- Select IceWM -> Settings -> Theme -> win95
- Terminate or minimize firefox, then launch application in xterm.launch application in xterm
![VNC Desktop](/-/media/site/oit/services/genuse/vncserver-change-theme.png?w=800&hash=7BE29119F9FD267E4E524D7496185F43)
![launch application in xterm](/-/media/site/oit/services/genuse/vncserver-example-launchapp.png?w=800&hash=A73C970D5927F1C6346559BA7830DE5E)
- When finished, close UltraVNC Viewer and terminate vncviewer
- Type vncserver -kill :9 in putty terminal window. (change the display number to number from step 2)
![Kill vncserver](/-/media/site/oit/services/genuse/vncserver-kill.png?w=667&hash=87DE9D08E34A586E093C03D3914D7C42)