TBrowser and Histogram cannot be displayed

Hi,

when I connect with a remote ssh session like this:

[color=#BF40FF]pb-d-128-141-137-177:~ jennyc$ ssh -Y lhep@aegisfact1[/color]

I also tried -X, and -X -Y, but none of them worked. Then if I open root, I will get this error:

[color=#4040FF]lhep@aegisfact1 ~/aegissw/fact/DAQ/FTroot/jiayi $ root -l
*** DISPLAY not set, setting it to pb-d-128-141-137-177.cern.ch:0.0
Error in TGClient::TGClient: can’t open display “pb-d-128-141-137-177.cern.ch:0.0”, switching to batch mode…
In case you run from a remote ssh session, reconnect with ssh -Y[/color]

If I try to open a new TBrowser:

[color=#8040FF]root [1] TBrowser a
root [2] [/color]

I wouldn’t even get an error or warning, but the TBrowser would not show up. Also, Histogram cannot be drawn I think it might be the same reason with TBrowser. Could you please help me? Thank you~

Best,
Jiayi

Hi Jiayi,

And can you start a xterm?

Cheers, Bertrand.

[quote=“bellenot”]Hi Jiayi,

And can you start a xterm?

Cheers, Bertrand.[/quote]

Hi Bertrand,

I only have OS X system in my computer…

Jiayi

Hi Jiayi,

OK, fine, but I meant first: [color=#0000FF]ssh -Y lhep@aegisfact1[/color]
And then (from the ssh session): [color=#0000FF]lhep@aegisfact1:~$ xterm[/color]
Or any application requiring X11. If this doesn’t work, then fix this first…

Cheers, Bertrand.

It seems to me that you overwrite the DISPLAY variable somewhere in your “.profile” or “.bash*” or “.login*”, …
When you connect to a remote machine using ssh, on the remote machine, you should get something like DISPLAY=“localhost:10.0”

[quote=“bellenot”]Hi Jiayi,

OK, fine, but I meant first: [color=#0000FF]ssh -Y lhep@aegisfact1[/color]
And then (from the ssh session): [color=#0000FF]lhep@aegisfact1:~$ xterm[/color]
Or any application requiring X11. If this doesn’t work, then fix this first…

Cheers, Bertrand.[/quote]

Hi Bertrand,

I downloaded XQuartz~ And now I can open the TBrowser~ Thank you very much~ Have a nice day!!!

Jiayi

Hi Jiayi,

Glad you fixed the problem! And thanks, have a nice day too!

Cheers, Bertrand.