The blog post Getting Linux on Windows 10 with WSL - Some basic installation instructions pitfalls and comments https://microcollaborative.atlassian.net/wiki/spaces/DSC/pages/102334523/Using+Windows+Subsystem+for+Linux# provides some references for getting started with the Windows Subsystem for Linux (WSL), with an emphasis of getting R running on Ubuntu. However, having R on a local machine is not necessary when working with resources like Teton.
This How-To, therefore, is going to focus on just the first part of the blog, related to getting WSL running on Windows, and provide some more explicit steps for getting you up and running. If you've played around with Linux on Windows before, you are probably familiar with partitioning for the purposes of dual-booting. WSL is not a dual-boot solution, and is remarkably simple to implement (much more so than a dual boot scenario, in my experience). It's also nice, because this means you can interact with a Linux environment, while staying in Windows, as opposed to having to boot into a Linux partition, and thus not having access to the same Windows resources you might be used to. The Linux environment associated with WSL is also not associated with a graphical user interface – everything is done via the terminal / command line.
Approximate time to complete tutorial: 5-20 minutes. You will have to restart your computer to complete this tutorial. You will need Windows 10 to finish this tutorial. Specifically, you will need Windows 10 version 1709 (Fall Creator's Update) or later. |
Open the 'Control Panel'
Click on 'Programs and Features'
Click on 'Turn Windows features on or off'
Check the 'Windows Subsystem for Linux' box
Restart your computer
Search the Microsoft store for 'Linux'
Click on the 'Get the App' Button associated with the 'Linux on Windows?' app
Select your preferred type of Linux, we will use Ubuntu for this tutorial
Click on the 'Get' button
Click on the 'Launch' button
Wait while Ubuntu (or whichever verson of Linux you picked) installs
Enter a username
Enter and verify your pass (it is important you do not lose your password)
You are done installing a Windows Subsystem for Linux
To access Ubuntu after you've closed the terminal (command line), you can search for
it in the Windows search bar
Once the terminal is open, you can access Teton just like you would with a Linux or
Mac computer
Creating Aliases in Windows Subsystem for Linux