# Suggesting to add complete ROOT Installation Instructions for WSL (Ubuntu 18.04 on Windows 10)

**URL:** <https://root-forum.cern.ch/t/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132>\
**Category:** ROOT\
**Tags:** windows, installation\
**Created:** [July 11, 2019, 8:48pm UTC](https://root-forum.cern.ch/t/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132 "2019-07-11T20:48:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![olifre](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/olifre/32/19226_2.png) [@olifre](https://root-forum.cern.ch/u/olifre)\
**Post date:** [July 11, 2019, 8:48pm UTC](https://root-forum.cern.ch/t/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132/1 "2019-07-11T20:48:34Z")

</div>

Dear ROOTers,

I feel it would be useful to have installation and execute instructions for ROOT 6 in Windows Subsystem for Linux. This request is motivated by more and more students wanting to run ROOT on Windows without any special Linux VM, but still wanting to use Makefiles from their course, potentially CMake and gcc without major effort (so running “natively” on Windows would not fit).

Even though I am more than happy about any student using native Linux or even migrating to it, not all students can be easily convinced 😉. We have had great success using WSL on Windows 10 here. The basic steps are:

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!

Do you think instructions like this could be useful on the ROOT webpage?

Cheers,  
Oliver

---

<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:** [July 11, 2019, 9:46pm UTC](https://root-forum.cern.ch/t/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132/2 "2019-07-11T21:46:14Z")

</div>

Hi @olifre  
thank you for your post! I took the liberty to slightly modify the title to reflect the fact that you are _providing_ the instructions rather than asking for them. I’m sure this thread will be googled for quite a bit 😄

About adding them to the ROOT webpage, let’s see what @Axel thinks 😃

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![olifre](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/olifre/32/19226_2.png) [@olifre](https://root-forum.cern.ch/u/olifre)\
**Post date:** [July 12, 2019, 1:45am UTC](https://root-forum.cern.ch/t/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132/3 "2019-07-12T01:45:11Z")

</div>

Hi @eguiraud,

many thanks! Yes, the title is much more SEO-optimized now 😉. Indeed, let’s see what @Axel thinks - to give some addtional information, we have by now needed it in at least one course (C++ in High Energy Physics, students use ROOT for projects) and a lab course experiment (students learn how to analyze data event-by-event with ROOT from scratch) at our University. It seems WSL is becoming more and more common.

I hope the instructions will not need much changes with WSL 2.0 (which should only simplify things for the users but not change the way to use it, see e.g. [https://devblogs.microsoft.com/commandline/shipping-a-linux-kernel-with-windows/](https://devblogs.microsoft.com/commandline/shipping-a-linux-kernel-with-windows/) ) - I think the only drawback of the instructions is that Windows 10 is _always_ a moving target, but it’s not moving too fast.

Cheers and thanks,  
Oliver

---

<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/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132/4 "2019-07-12T10:20:40Z")

</div>

I have added it to the #howto:faq at [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) - thanks a lot, @olifre!

---

<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:** [July 12, 2019, 10:31am UTC](https://root-forum.cern.ch/t/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132/5 "2019-07-12T10:31:03Z")

</div>

Already [used this once](https://root-forum.cern.ch/t/best-root-version-for-multi-threading/35147/5) 😃

---

<div class="post-metadata">

**Author:** ![olifre](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/olifre/32/19226_2.png) [@olifre](https://root-forum.cern.ch/u/olifre)\
**Post date:** [July 12, 2019, 10:45am UTC](https://root-forum.cern.ch/t/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132/6 "2019-07-12T10:45:30Z")

</div>

@Axel Thanks, we will make good use of that and link to it ;😉  
@eguiraud That was fast, but confirms there are many users wanting this. When WSL 2 becomes stable, I’ll give it a go and if necessary provide upgraded instructions 😄.

---

<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:** [July 26, 2019, 10:56am UTC](https://root-forum.cern.ch/t/suggesting-to-add-complete-root-installation-instructions-for-wsl-ubuntu-18-04-on-windows-10/35132/7 "2019-07-26T10:56:40Z")

</div>

Closed on July 26, 2019, 10:56am UTC

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