# Working through ROOT primer

**URL:** <https://root-forum.cern.ch/t/working-through-root-primer/50426>\
**Category:** Newbie\
**Created:** [June 15, 2022, 8:06pm UTC](https://root-forum.cern.ch/t/working-through-root-primer/50426 "2022-06-15T20:06:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moaningsalmon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@moaningsalmon](https://root-forum.cern.ch/u/moaningsalmon)\
**Post date:** [June 15, 2022, 8:06pm UTC](https://root-forum.cern.ch/t/working-through-root-primer/50426/1 "2022-06-15T20:06:32Z")

</div>

Hello, I’ve just finished installing ROOT. I think I’ve done it successfully… Anyway, I’m trying to work my way through the ROOT Primer, and I’m already running into problems with the .Draw function. I put in this:

```auto
TF1 f1("f1","sin(x)/x",0.,10.);
f1.Draw();

```

and the message I get is

```auto
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1

```

My understanding is that a pop-up window of this graph should’ve been created, but nothing happened. Am I missing something?

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [June 16, 2022, 4:56am UTC](https://root-forum.cern.ch/t/working-through-root-primer/50426/2 "2022-06-16T04:56:08Z")

</div>

What ROOT version? Is it installed on Linux? Windows (directly or with Visual Studio, or with Linux and WSL1/WSL2?)? and running locally or remotely (which command did you use to connect and run…)?

---

<div class="post-metadata">

**Author:** ![moaningsalmon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@moaningsalmon](https://root-forum.cern.ch/u/moaningsalmon)\
**Post date:** [June 16, 2022, 1:52pm UTC](https://root-forum.cern.ch/t/working-through-root-primer/50426/3 "2022-06-16T13:52:22Z")

</div>

Looks like version 6.22, installed on Windows using WSL. Unless I have a gross conceptual error about WSL, I’m running locally… I open my command prompt, run bash, and then root.

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [June 16, 2022, 7:27pm UTC](https://root-forum.cern.ch/t/working-through-root-primer/50426/4 "2022-06-16T19:27:52Z")

</div>

Read all the posts and solutions in this thread

> [@Complete ROOT Installation Instructions for WSL (Ubuntu 18.04 on Windows 10)](https://root-forum.cern.ch/t/complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35148):
>
> From @olifre : Install WSL ( [https://aka.ms/install](https://aka.ms/install) ) and then Ubuntu 18.04 from the Windows Store. The first step is not needed anymore for most recent Windows 10 versions, I think. Start the freshly installed Ubuntu Bash shell and install the dependencies and some build tools: sudo apt update && sudo apt dist-upgrade sudo apt install build-essential libtbb-dev libtiff5 x11-apps git Now there’s no graphics, since WSL does not ship any X server. You can fix that e.g. by installing [Xming](https://sourceforge.net/projects/xming/) and…

One may solve your case.
