Connect to a listening Vnc viewer from the linux RHEL 4.5 console

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 ?
ndidomenicoAsked:
Who is Participating?
 
NopiusConnect With a Mentor Commented:
> However, I can't find how to connect a vnc viewer in listen mode to my console session (display #0).

The problem with diplay #0 is that it runs Xorg server, not Xvnc, so you can't configure it with 'vncconfig',
but you can connect to it directly with 'vncviewer w.x.y.z' if 'vino' server is running (that is Gnome VNC server that is Remote Desktop).

0
 
ndidomenicoAuthor Commented:
Thanks for the Xorg vs Xvnc clarification. I don't have any problem connecting to display #0 from a vncviewer. I would like to initiate the connection FROM the Xorg vino server running on display :0 TO a listening vncviewer (port 5500), but can not find if this is possible with vino-server, and which command to use, similar to "vncconfig -display :1 -connect  w.x.y.z".
0
 
NopiusCommented:
> I would like to initiate the connection FROM the Xorg vino server running on display :0 TO a listening vncviewer (port 5500).

Do you mean you don't like to have local X11 display at all? If yes, disable running Xorg with 'init 3', then configure Xvnc on :0 the same way as you have done with :1 and :2.

BTW. Why do you need so complex configuration. May be there are some other tool for that.
0
 
ndidomenicoAuthor Commented:
Let me explain what I'm trying to do, this might help clarify my question.

I need to assist someone that is working on the RHEL console. This server is behind a firewall, which obviously blocks port 5900, and we do not want to open/redirect port 5900 for security reasons.  Because of this, I cannot vnc to the console session from the outside. If the vnc session could be initiated from the inside (console session), then I could view display :0 and assist the operator.

As I mentionned, this reverse connection works perfectly with Vnc Servers running on displays #1 and 2, using the "-connect" option from the vncserver command line, but I don't know how to do this using the vino server which handles display #0.
0
 
ndidomenicoAuthor Commented:
Since I'm not getting any other recommendations, I will close this post.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.