X11 help wanted

Peter Sabaini peter at sabaini.at
Fri Jun 5 05:57:00 UTC 2009

On Thu, 2009-06-04 at 16:23 -0700, yoji.atsumi at yahoo.com wrote:
> Hi folks,
> I just started using ubuntu 9.0.4.  I think I have pretty much all
> I wanted.  Except...
> I can't get X11 display to come my ubuntu.  For clarisy, I will
> call the machine I am talking about (running ubuntu 9.0.4)
> U.  I can issue "xclock" command from U and the clock comes
> to the screen.  No problem.
> Now, I ssh to a different host, running redhat, and I will call
> this machine R.  Here's what I have done:
> On U,
>   I issue "xhost +"
> On R,
>   I export DISPLAY variable as xxx.xxx.xxx.xxx:0.0.  Then issue
>   "xclock" command
> What I get on R is:
>   Error: Can't open display: xxx.xxx.xxx.xxx:0.0
> Of course, nothing comes to U's screen.
> Would somebody please advise me as to what cure there is,
> what stupidity I have committed, etc?
> Regards,
> Yoji

Did you use ssh X forwarding? You should! 

Something like (on U):

% ssh -X R xclock

will start xclock on R and forward the display to U

With ssh -X you do not need to set a DISPLAY and need not disable X
security with "xhost +"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090605/4fe3c4a2/attachment.pgp>

More information about the ubuntu-users mailing list