Slicer can be built and runs well on Windows Subsystem for Linux (WSL2)

Some information for Windows developers who want to develop/test Slicer on Linux. On current Windows 10 versions, it is very easy to install Linux and run Linux GUI applications such as Slicer, by using Windows Subsystem for Linux (WSL2).

Ubuntu 20.04 shows up as an app in Microsoft Store. If you install and run it you get a linux terminal. By copy-pasting 10-20 lines you can install kubuntu desktop and you can connect to it using Windows remote desktop as explained here.

Slicer build instructions for linux work flawlessly and Slicer runs well (both the locally built version and downloaded releases):

Build speed is good, Slicer performance is near native, there is no problem with networking, file system access, etc. (issues that kept coming up when using VirtualBox, HyperV, etc.). GPU volume rendering works, but it is a software renderer. There is some GPU virtualization support that works for CUDA; and Microsoft is working on improving GUI application support, so probably GPU-accelerated rendering will be available at some point.

1 Like