# Complete ROOT Installation Instructions for WSL (Ubuntu 18.04 on Windows 10)

**URL:** <https://root-forum.cern.ch/t/complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35148>\
**Category:** Howto\
**Created:** [July 12, 2019, 10:20am UTC](https://root-forum.cern.ch/t/complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35148 "2019-07-12T10:20:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [July 12, 2019, 10:20am UTC](https://root-forum.cern.ch/t/complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35148/1 "2019-07-12T10:20:09Z")

</div>

From @olifre :

1. 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.
2. 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`
3. 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 then running inside the Bash shel:  
`export DISPLAY=localhost:0.0`  
Xming needs to be running when using this setup!
4. Now, the regular Ubuntu 18.04 instructions apply, i.e. download the tarball from the ROOT webpage (with `wget`), extract it, run `source root/bin/thisroot.sh` and you can run ROOT with graphics!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [August 11, 2021, 10:57am UTC](https://root-forum.cern.ch/t/complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35148/2 "2021-08-11T10:57:10Z")

</div>

And for WSL2, see also [Install WSL on Windows 10 | Microsoft Docs](https://docs.microsoft.com/en-us/windows/wsl/install-win10)  
and [Running WSL GUI Apps on Windows 10](https://techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242)

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [January 12, 2022, 3:14pm UTC](https://root-forum.cern.ch/t/complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35148/3 "2022-01-12T15:14:24Z")

</div>

More on WSL2 (graphics troubleshooting): [ROOT on Windows 11 WSL2 / WSLg - #7 by dastudillo](https://root-forum.cern.ch/t/root-on-windows-11-wsl2-wslg/48348/7)

and some updates to the instructions above for WSLg: [Improvements to WSL instructions with WSLg](https://root-forum.cern.ch/t/improvements-to-wsl-instructions-with-wslg/47116)
