# Help a newbie, root won't draw

**URL:** <https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510>\
**Category:** Newbie\
**Tags:** graphics, hist, root\
**Created:** [August 15, 2024, 3:42pm UTC](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510 "2024-08-15T15:42:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alberto.3](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alberto.3/32/35462_2.png) [@alberto.3](https://root-forum.cern.ch/u/alberto.3)\
**Post date:** [August 15, 2024, 3:42pm UTC](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510/1 "2024-08-15T15:42:53Z")

</div>

Hi, maybe this is trivial but I’m having trouble.  
I’m working with root v 6.32.02 on Ubuntu 24.04 bash shell and I’m having trouble making graphs. I can’t produce images, even the most basic. Brief example; if I make the simple code  
tut1.C:

```auto
void tut1(){
	TH1F *hist= new TH1F("hist", "histogram", 100, 0, 100);	
	TCanvas *c1 = new TCanvas();
	hist->Draw();
}

```

On the terminal i open root:  
`root tut1.C`  
And get this

```auto
root [0] 
Processing tut1.C...
Authorization required, but no authorization protocol specified

```

And nothing else; I should get an empty histogram canvas (saw a tutorial from “Physics Matters” where he does exactly this).  
Likewise if I try to open a TBrowser in root from

```auto
root [0] new TBrowser
Authorization required, but no authorization protocol specified
Warning in <TBrowser::TBrowser>: The ROOT browser cannot run in batch mode
(TBrowser *) 0x5a8a1875df50

```

This authorization line comes up often, I don’t understand how to get rid of it.  
It looks like root opens in batch mode, even without me opening with root instead of root -b, and it can never draw images? I don’t know, and I really can’t find a fix.  
Thank you.

---

<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:** [August 15, 2024, 6:03pm UTC](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510/2 "2024-08-15T18:03:38Z")

</div>

Dear Alberto,

Thanks for your post and welcome to the ROOT Community!

I would like to point you to this post [https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30) perhaps it’s useful to go through it.

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![alberto.3](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alberto.3/32/35462_2.png) [@alberto.3](https://root-forum.cern.ch/u/alberto.3)\
**Post date:** [August 16, 2024, 2:54pm UTC](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510/3 "2024-08-16T14:54:12Z")

</div>

It did work, thank you!  
Got any idea on why that happens?  
Cause I tried working on an older ubuntu version, and there was no problem there, why on 24.04 that was happening?
