Page 1 of 1

enable centos 5.5 for remote-to-local X display

Posted: 2011/09/01 18:57:38
by patfla
Hi - my local box is centos 5.5 running gnome.

I have a eucalyptus instance (vm) running an older version of centos (5.3?). As a vm it has no graphical display. I'd like to run a graphical app there so that it displays back on my local machine.

Used xhost locally and it shows the remote IP (eucalyptus instance) as enabled. On the remote side (eucalyptus instance) I set DISPLAY with:

export DISPLAY xx.xx.xx.xx:0.0

where xx.xx.xx.xx is my local ip address. Oh, I did install X in the vm instance (yum groupinstall "X Window System"). X is installed but not running there (does the point of origin of the x app need to have X running as well - and what does this mean in a vm which is a non-graphicla environment?).

Anyway, I try to run (from remote to local) xclock and get the typical

[b] Error: Can't open display.[/b]

Pat

Re: enable centos 5.5 for remote-to-local X display

Posted: 2011/09/01 21:07:52
by TrevorH
Why not just ssh to the remote machine and enable X11 forwarding?

enable centos 5.5 for remote-to-local X display

Posted: 2011/09/01 21:12:06
by logan
X could be running with the -nolisten argument. I'm not sure about CentOS, but Debian sets this in /etc/X11/xinit/xserverrc.

Have you thought about forwarding X over ssh? [i]ssh -o ForwardX11=yes [/i] or [i]ForwardX11 yes[/i] in ~/.ssh/config.

Re: enable centos 5.5 for remote-to-local X display

Posted: 2011/09/01 23:52:04
by patfla
Yes - I found the ssh solution in the meantime.

I'll take a look at /etc/X11/xinit/xserverrc

Pat