-
Notifications
You must be signed in to change notification settings - Fork 3
Setting up WSL2
Ryan Godwin edited this page May 7, 2024
·
8 revisions
Follow these instructions to setup Windows Subsystem for Linux to use the tools created by the UAB Perioperative Data Science Team:
- Inside Windows Features, make sure "Virtual Machine Platform" and "Hyper-V" are enabled.
- Restart
- In an elevated Power Shell prompt, run
wsl --install - After Ubuntu installs, you will be prompted to enter a User Name and Password for the new Linux installation - Remember these as they will be used for root access
- Restart again
- Confirm WSL and Ubuntu installation with the command
wsl -l -vin Power Shell. You should see Ubuntu listed with version 2. - If not, run
wsl --set-default-version 2followed bywsl --update
You may need to launch Ubuntu from the start menu between steps 3 and 4 to get WSL to see the installation (which happens by default with step 2). If Ubuntu does not automatically install, it can also be installed from the Windows Store (preferably the most recent LTS version).
