Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting started with the Windows Subsystem for Linux (WSL)
#1

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



Attached Files
.png   search for linux.png (Size: 274.73 KB / Downloads: 0)
.png   linux distros.png (Size: 378.83 KB / Downloads: 0)
.png   Get.png (Size: 315.29 KB / Downloads: 0)
.png   pin to start.png (Size: 898.72 KB / Downloads: 0)
.png   windows subsystem for linux.png (Size: 58.85 KB / Downloads: 0)
.png   ubuntu installing.png (Size: 8.02 KB / Downloads: 0)
.png   prompting for username password.png (Size: 20.57 KB / Downloads: 0)
.png   ubuntu installed.png (Size: 49.34 KB / Downloads: 0)
.png   vi is installed.png (Size: 27.39 KB / Downloads: 0)
Reply
#2

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

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)