# Error in TUnixSystem::SetDisplay: Can't figure out DISPLAY, set it manually

**URL:** <https://root-forum.cern.ch/t/error-in-tunixsystem-cant-figure-out-display-set-it-manually/59674>\
**Category:** Newbie\
**Created:** [June 18, 2024, 6:17am UTC](https://root-forum.cern.ch/t/error-in-tunixsystem-cant-figure-out-display-set-it-manually/59674 "2024-06-18T06:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Closedbook](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/closedbook/32/36641_2.png) [@Closedbook](https://root-forum.cern.ch/u/Closedbook)\
**Post date:** [June 18, 2024, 6:17am UTC](https://root-forum.cern.ch/t/error-in-tunixsystem-cant-figure-out-display-set-it-manually/59674/1 "2024-06-18T06:17:44Z")

</div>

As a simple case

```auto
TH1F *h = new TH1F("h", "Test Histogram", 100, -4, 4);
h->FillRandom("gaus", 10000);
h->Draw();

```

The result is:

```auto
Error in <TUnixSystem::SetDisplay>: Can't figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========> ssh -Y
Error in <TUnixSystem::SetDisplay>: Can't figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========> ssh -Y
Error in <TGClient::TGClient>: can't open display "", switching to batch mode...
 In case you run from a remote ssh session, reconnect with ssh -Y
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1

```

By the way, with “gROOT-\>IsBatch()”, it returns false  
_ROOT Version:_ 6.22/00  
_Platform:_ Ubuntu  
_Compiler:_ c++

* * *

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [June 18, 2024, 6:55am UTC](https://root-forum.cern.ch/t/error-in-tunixsystem-cant-figure-out-display-set-it-manually/59674/2 "2024-06-18T06:55:56Z")

</div>

Hi,

This is odd. Sorry to read you are experiencing these issues.  
Can you try to connect with “ssh -XY” ?

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![Closedbook](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/closedbook/32/36641_2.png) [@Closedbook](https://root-forum.cern.ch/u/Closedbook)\
**Post date:** [June 18, 2024, 8:50am UTC](https://root-forum.cern.ch/t/error-in-tunixsystem-cant-figure-out-display-set-it-manually/59674/3 "2024-06-18T08:50:12Z")

</div>

Thank you, I will try this after rebuliding ROOT.
