[CentOS] Unablce to open VNC

Guy Boisvert boisvert.guy at videotron.ca
Sun Feb 4 01:07:11 UTC 2007


Theo Band wrote:
> Todd Cary wrote:
>> He is what I would like to do:
>>
>> Using Putty, log onto the server.  Then type in
>>
>> vncviewer server:1
>>
>> and "see" the Desktop of the server *without* having the vnc ports
>> open on the server; instead have the vnc data transferred via the SSH
>> connection.
>>
>> Todd
> Start the vncserver and verify that it works locally by doing a
> vncviewer server:1 on the same machine (this should give a nice picture
> in picture in picture..). This is what already works, right?
> From a windows machine setup the a putty session by having a tunnel
> forwarding local port 5901 to server:5901. Then start a vncviewer on
> Windows (Realvnc/Tightvnc) and go to localhost:1 (so not to server:1)
> (You tried to start vncviewer in the putty shell? This will not work)
> 
> Theo
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 

On the server (Here with term 20):
===================================
To start the server:
vncserver :20 -depth 8 -geometry 1152x864 -name MyServerName:20

To stop the server:
vncserver -kill :20

To change the VNC Password:
vncpasswd

To get Gnome instead of default TWM:
- vi ~/.vnc/xstartup
- comment out TWM
- add: gnome-session &

In PuTTY:
- Create a session
- Create a tunnel:
	L 5920
	Destination: your.server.address:5920

Once connected:
start VNC Viewer and enter "localhost:20" (without quotes) as the
connect address.
(Tested with TightVNC)


That should do the trick.

Guy Boisvert
IngTegration inc.




More information about the CentOS mailing list