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

Posted on 2009-02-17
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
    LVL 27

    Accepted Solution

    > 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

    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

    > 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

    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

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    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…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now