We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

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

ndidomenico
ndidomenico asked
on
Medium Priority
1,637 Views
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 ?
Comment
Watch Question

system administrator
Top Expert 2007
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).

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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".
Artysystem administrator
Top Expert 2007

Commented:
> 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

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.

Author

Commented:
Since I'm not getting any other recommendations, I will close this post.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.