Connect to a listening Vnc viewer from the linux RHEL 4.5 console
Posted on 2009-02-17
I can't find how to connect my local console session on a RHEL server to a listening Vnc viewer (port 5500) ?
What I was able to do so far:
I have enabled Remote Desktop on the console and can vnc to the console from a pc, effectively sharing the desktop with the person working on the console (on display #0)
I also have setup Vnc on the server for display #1 and #2 and everything works fine:
- I can connect from a vnc viewer running on a pc to any of these two sessions.
- I can connect to a listening vnc viewer from my running vnc display #1 session (or even the console) by issuing the command "vncconfig -display :1 -connect w.x.y.z". Works fine also from session #2.
However, I can't find how to connect a vnc viewer in listen mode to my console session (display #0). I tried "vncconfig -display :0 -connect w.x.y.z" but I get error "No VNC extension on display :0". If i try to launch vncserver for display 0 (vncserver :0), I get the error "A VNC server is already running as :0", which is probably my enabled Remote Desktop running in session 0 ??
Any suggestions ?