Jump to content
Sign in to follow this  
anyweb

Getting started with the Windows Subsystem for Linux (WSL)

Recommended Posts

Introduction

 

The Windows Subsystem for Linux lets developers run Linux environments, including most command-line tools, utilities, and applications  directly on Windows, unmodified, without the overhead of a virtual machine.

You can...

    Choose your favorite Linux distributions from the Windows Store.

  •     Run common command-line utilities such as grep, sed, awk, etc.
  •     Run Bash shell scripts and Linux command-line applications including:

        Tools: vim, emacs, tmux

        Languages: Javascript/node.js, Ruby, Python, C/C++, C# & F#, Rust, Go, etc.

        Services: sshd, MySQL, Apache, lighttpd

  •     Install additional Linux tools using the distribution's built in package manager (apt-get, for example).
  •     Invoke Windows applications from the Linux console.
  •     Invoke Linux applications on Windows.

So let's see how this works, for this guide I tested this on a Windows 10 Insider Preview build version 10.0.17661.1001, however all you need to test this is any version of Windows 10 from Fall Creators Update (or later), and that means any version after Windows 10 1703.

Step 1. Add the WSL feature

In Windows Control Panel, select Programs and Features, select Turn Windows features on or off. Scroll down to Windows Subsystem for Linux, and enable it.

post-1-0-37844800-1525938546_thumb.png

 

Reboot when prompted.

Step 2. Open the Microsoft Store and search for Linux

post-1-0-71642000-1525937727_thumb.png

Step 3. Select a Linux Distro in the Apps list

 

Select a Linux Distro in the apps list or click on Show All to see all available

post-1-0-25356200-1525937963_thumb.png

Step 4. After selecting a Linux Distro, click on Get

post-1-0-89553600-1525938065_thumb.png

Step 5. Pin to start or Launch

 

After it is installed, you'll get a toast notification stating it's installed and ask you to Launch or Pin to Start. If you choose Pin to Start the Distro will be listed in your start menu.

post-1-0-24209800-1525938312_thumb.png

Step 6. Launch the Distro

On first launch you'll see the Distro is installing

 

post-1-0-35368200-1525938852_thumb.png

 

If you get "Installation Failed! Error: 0x8007019e", then make sure you've completed Step 1.

 

After installing the Distro, you'll be prompted to enter a username and password

 

post-1-0-03767100-1525939205_thumb.png

 

and it's done !

 

post-1-0-08881200-1525939299_thumb.png

 

it even has vi !

post-1-0-88432600-1525939334_thumb.png

 

 

Further reading

 

https://docs.microsoft.com/en-us/windows/wsl/install-win10

  • Like 8

Share this post


Link to post
Share on other sites

lol i posted this link and mention about WSL in your post under PowerShell

 

I personally have not test it yet.. i wonder if it is stable? let me know :) 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×