Windows now has the ability to install a linux operating system on your machine without the use of an emulator. This gives you a full-featured linux environment that can interact with your normal files.
First, please check the build version of Windows that you are using. This can be done by selecting the Windows logo key + r
on your keyboard. Once you do that, you should see the windows Run prompt:
Type the command “winver” (no quotes) into the prompt, as depicted in the image above, and hit enter. You should see a screen similar to this:
Your build version number is the one that follows the “Windows Build” text (as highlighted in the above image). Depending on whether your build number is larger or smaller than 19041, please follow the appropriate directions below:
In the start menu, search for “Powershell”, right click and select “run as administrator”.
A small blue window should open with a flashing cursor. Please type wsl --install
and hit enter:
This will take a few minutes to install everything. Once it is finished, please skip to verifying your install.
If the above installation did not work- please try to install [using these instructions][Windows version larger smaller than 19041] (even if your version is not smaller than 19041).
In the start menu, search for “Turn Windows features on or off” and open that settings window.
In the settings window, scroll down to “Windows Subsystem for Linux”, check the box next to it, and select OK
at the bottom of the window.
You will not need to restart your computer. Once you have rebooted, open the Windows Store from the start menu.
In the Windows Store, search for Ubuntu
, and select the version-less one unless you have a reason to pick a specific version.
On the Ubuntu page, select Get
to install.
In the start menu, search for and run Ubuntu
.
If a terminal window opens, you should be good to go!
This creates an entirely new operating system on your machine. Thus, things like your git configuration and SSH key for Github will not carry over! You will need to configure git again, and create a new SSH key for this operating system.
Thanks to the UC Davis DataLab’s Install Guide for providing a portion of this guide.