# ROOT on WSL2, Windows 11 and Ubuntu (update Sep/2024)

**URL:** <https://root-forum.cern.ch/t/root-on-wsl2-windows-11-and-ubuntu-update-sep-2024/61606>\
**Category:** ROOT\
**Created:** [September 8, 2024, 12:03pm UTC](https://root-forum.cern.ch/t/root-on-wsl2-windows-11-and-ubuntu-update-sep-2024/61606 "2024-09-08T12:03:45Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [September 8, 2024, 12:03pm UTC](https://root-forum.cern.ch/t/root-on-wsl2-windows-11-and-ubuntu-update-sep-2024/61606/1 "2024-09-08T12:03:45Z")

</div>

An update to the solution described in this thread (I cannot make edits to that thread anymore, so I had to open a new one):  
[ROOT on Windows 11 WSL2 / WSLg - #7 by dastudillo](https://root-forum.cern.ch/t/root-on-windows-11-wsl2-wslg/48348/7)  
I recently tried the same process on a new machine with ROOT 6.32/04, a fresh Windows 11 (23H2), WSL2 and Ubuntu 24.04, and got no graphics again (xeyes, etc were not working, and ROOT complained that it cannot show the TBrowser in batch mode, even though it was not running in batch mode).  
The solution is another change in the “DISPLAY” line in `.bashrc`. The lines that work are now:

```auto
export DISPLAY=:0
export LIBGL_ALWAYS_INDIRECT=1

```

The VcXsrv settings:  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/a/9/a96746e96bed0e0f3c4e7662346e1c1b6c01163e.png)

---

<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:** [September 8, 2024, 4:04pm UTC](https://root-forum.cern.ch/t/root-on-wsl2-windows-11-and-ubuntu-update-sep-2024/61606/2 "2024-09-08T16:04:52Z")

</div>

Hi @dastudillo ,

Thanks a lot for this post! I am sure it will be useful to others. I also updated the previous thread with a pointer to this one.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [September 22, 2024, 4:05pm UTC](https://root-forum.cern.ch/t/root-on-wsl2-windows-11-and-ubuntu-update-sep-2024/61606/3 "2024-09-22T16:05:00Z")

</div>

Closed on September 22, 2024, 4:05pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
