Issue

How do I get vncviewer after unable to connect to work?

posted in Hypervisor
Monday, February 24 2014, 12:21 PM
0
All what I want is to connect via gvncviewer to HVM guest.

Here I see the port:
root@ubuntu120403:~# netstat -l | grep tcp | grep 59
tcp 0 0 localhost:5901 *:* LISTEN

But I get on screen:
root@ubuntu120403:~# gvncviewer localhost:5901
Cannot open display:
Run 'gvncviewer --help' to see a full list of available command line options

How do I get it work?

I am on the same local machine:startx work. Please, to everyone help me. I am trying this for over days and read tons of tutorials and Xen wiki, however nothing helped me out.

Many thanks for every helpfu answer.
Responses (1)
  • Accepted Answer

    Friday, February 28 2014, 09:41 PM - #permalink
    0
    Rémy,

    The error "Cannot open display" may mean that you don't have access to the X Windows System on the machine you are running from.

    You can verify this by trying to start any other graphical program at the same point that you try to invoke gvncviewer. If you have Firefox or xeyes installed, try one of them. If you get a similar error, we have an X11 traffic problem.

    If you have used sudo to get to the root "#" prompt, you should use ssh instead. Try the syntax "ssh -Y" in the command to make sure the X11 traffic is handled correctly.

    Russ
    The reply is currently minimized Show
Your Reply