103
Chapter 6: Secure SSH Tunneling & SDT Connector
• TosetupapersistentVNCserveronRedHatEnterpriseLinux4:
o Set a password using vncpasswd
o Edit /etc/sysconfig/vncservers
o Enable the service with chkconfig vncserver on
o Start the service with service vncserver start
o Edit /home/username/.vnc/xstartup ifyouwantamoreadvancedsessionthanjusttwm and an xterm
C. For Macintosh servers (and clients):
OSXvnchttp://www.redstonesoftware.com/vnc.htmlisarobust,full-featuredVNCserverforMacOSXthatallowsanyVNC
clienttoremotelyviewand/orcontrolMacOSXmachine.OSXvncissupportedbyRedstoneSoftware
D. Most other operating systems (Solaris, HPUX, PalmOS etc) either come with VNC bundled, or have third-party
VNC software that you can download
6.9.2 Install, configure and connect the VNC Viewer
VNCistrulyplatform-independent,soaVNCVieweronanyoperatingsystemcanconnecttoaVNCServeronanyother
operatingsystem.ThereareViewers(andServers)fromawideselectionofsources(e.g.UltraVNCTightVNCorRealVNC)for
mostoperatingsystems.TherearealsoawealthofJavaviewersavailablesothatanydesktopcanbeviewedwithanyJava-
capablebrowser(http://en.wikipedia.org/wiki/VNClistsmanyoftheVNCViewerssources).
• InstalltheVNCViewersoftwareandsetitupfortheappropriatespeedconnection
Note: To make VNC faster, when you set up the Viewer:
• SetencodingtoZRLE(ifyouhaveafastenoughCPU)
• Decreasecolorlevel(e.g.64bit)
• DisablethebackgroundtransmissionontheServeroruseaplainwallpaper
(Refer to http://doc.uvnc.com for detailed configuration instructions)
• ToestablishtheVNCconnection,rstconguretheVNCViewer,enteringtheVNCServerIPaddress
A. WhentheViewercomputerisconnectedtotheConsoleServerthroughanSSHtunnel(overthepublicInternet,oradial-
inconnection,orprivatenetworkconnection),enterlocalhost(or127.0.0.1)astheIPVNCServerIPaddressandthe
sourceportyouenteredwhensettingSSHtunneling/portforwarding(inSection6.2.6)e.g.:1234
B. WhentheViewercomputerisconnecteddirectlytotheConsoleServer(eitherlocallyorremotelythroughaVPNordial-in
connection)andtheVNCHostcomputerisseriallyconnectedtotheConsoleServer,thenentertheIPaddressofthe
ConsoleServerunitwiththeTCPportthattheSDTtunnelwilluse.TheTCPportwillbe7900plusthephysicalserialport
number(i.e.7901to7948,soalltrafcdirectedtoport79xxontheConsoleServeristunneledthroughtoport5900on
thePPPconnectiononserialPortxx).Forexample,foraWindowsViewercomputerusingUltraVNCconnectingtoaVNC
ServerwhichisattachedtoPort1onaConsoleServer,enter192.168.0.1