Using Windows Subsystem for Linux

The blog post Getting Linux on Windows 10 with WSL - Some basic installation instructions pitfalls and comments 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.

Step-by-step guide

  1. Open the Control Panel.
  2. Click "Programs and Features".
  3. Click "Programs and Features".
  4. Turn Windows features on or off: Check the "Windows Subsystem for Linux" box.
  5. Restart your computer.
  6. Search the Microsoft Store for "Linux".
  7. Click the "Get the App" button associated with the "Linux on Windows?" app.
  8. Select your preferred "flavor" of Linux. We're going to use Ubuntu for this tutorial.
  9. Click the "Get" button.
  10. Click the "Launch" button.
  11. Hang out while Ubuntu installs (took less than one minute on my desktop).
  12. Enter a username.
  13. Enter and verify your password. DO NOT LOSE YOUR PASSWORD.
  14. You are done install Windows Subsystem for Linux!
  15. To access Ubuntu after you've the closed terminal / command line, you can search for it in the search bar.
  16. Once the terminal is open, you can access Teton just like you would with a Linux or Mac computer!

http://blog.revolutionanalytics.com/2017/12/r-in-the-windows-subsystem-for-linux.html

http://packaging.ubuntu.com/html/getting-set-up.html