Linux-Noob Forums

Full Version: Getting started with the Windows Subsystem for Linux (WSL)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-37844800-1525938546.png" data-fileid="1417">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-37844800-1525938546_thumb.png[/img]</a>

 

Reboot when prompted.

Step 2. Open the Microsoft Store and search for Linux

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-71642000-1525937727.png" data-fileid="1413">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-71642000-1525937727_thumb.png[/img]</a>

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

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-25356200-1525937963.png" data-fileid="1414">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-25356200-1525937963_thumb.png[/img]</a>

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

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-89553600-1525938065.png" data-fileid="1415">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-89553600-1525938065_thumb.png[/img]</a>

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.

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-24209800-1525938312.png" data-fileid="1416">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-24209800-1525938312_thumb.png[/img]</a>

Step 6. Launch the Distro

On first launch you'll see the Distro is installing

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-35368200-1525938852.png" data-fileid="1418">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-35368200-1525938852_thumb.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-03767100-1525939205.png" data-fileid="1419">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-03767100-1525939205_thumb.png[/img]</a>

 

and it's done !

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-08881200-1525939299.png" data-fileid="1420">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-08881200-1525939299_thumb.png[/img]</a>

 

it even has vi !

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2018/post-1-0-88432600-1525939334.png" data-fileid="1421">[img]<fileStore.core_Attachment>/monthly_05_2018/post-1-0-88432600-1525939334_thumb.png[/img]</a>

 

 

Further reading

 

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


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 :)