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

Posted on 2009-02-17
Medium Priority
Last Modified: 2012-05-06
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 ?
Question by:ndidomenico
  • 3
  • 2
LVL 27

Accepted Solution

Nopius earned 1500 total points
ID: 23687718
> 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).


Author Comment

ID: 23691390
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".
LVL 27

Expert Comment

ID: 23691683
> 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.

Author Comment

ID: 23692191
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.

Author Comment

ID: 23735495
Since I'm not getting any other recommendations, I will close this post.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month13 days, 14 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question