Windows 10 comes with the Windows Subsystem for Linux (WSL), which allows different Linux distributions to run under Windows. Currently Ubuntu, openSUSE and SUSE Linux Enterprise Server are available in the Microsoft Store, with Fedora expected to become available soon. When I started considering the option of ceasing the development of GeekoCFD, I have started exploring the possibility of using WSL for my development work. I am still testing this, and my virtual machine with openSUSE is still there. However, WSL looks promising. Thus, I thought of sharing the steps I have followed to set up my test environment, with a few tweaks to improve the experience. I have divided the instructions in parts because they are quite long:
- Installing WSL on Windows 10 Fall Creators Update
- Installing OpenFOAM on WSL
- Enabling support for graphical applications in WSL with Xming
- Editing code from Windows and compile it in WSL
This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks. Alberto Passalacqua is not associated to OpenCFD Ltd.