WSL

From Center for Cognitive Neuroscience
Jump to navigation Jump to search

Windows Subsystem for Linux

Installation

To download Windows Subsystem for Linux, follow the instructions provided by Microsoft. The rest of these instructions will assume that Ubuntu 20.04 LTS was chosen for installation.


GUI apps

To open GUI apps from WSL, you will need a Windows X Server running under Windows. A free one can be downloaded from here.


Display may also need to be setup. Run a quick test by issuing this command in terminal:

echo $DISPLAY

An IP address should be printed. If nothing appears, then follow the instructions below to set it up (under "export appropriate display variables"):

https://skeptric.com/wsl2-xserver/

It also goes over how to setup your firewall for the apps.


Neurodebian

To download neuroscience-related software tools, the NeuroDebian repository can be added to the package manager (specify OS, server location, and whichever software component you want, then follow the instructions): https://neuro.debian.net/

After this repository is added, you should be able to download any software tool they provide. For example, to download mricron, issue the following command:

sudo apt update
sudo apt install mricron

Once it's been installed, you can test the app by opening the Xserver on windows then typing the command mricron in your Linux terminal. The app should then open as a separate window.

To mount Hoffman from WSL, follow the instructions here.