enable centos 5.5 for remote-to-local X display

General support questions including new installations
Post Reply
patfla
Posts: 17
Joined: 2010/07/31 19:17:23

enable centos 5.5 for remote-to-local X display

Post by patfla » 2011/09/01 18:57:38

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

User avatar
TrevorH
Forum Moderator
Posts: 29985
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2011/09/01 21:07:52

Why not just ssh to the remote machine and enable X11 forwarding?

logan
Posts: 64
Joined: 2008/08/01 16:40:34

enable centos 5.5 for remote-to-local X display

Post by logan » 2011/09/01 21:12:06

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.

patfla
Posts: 17
Joined: 2010/07/31 19:17:23

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

Post by patfla » 2011/09/01 23:52:04

Yes - I found the ssh solution in the meantime.

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

Pat

Post Reply

Return to “CentOS 5 - General Support”