SlideShare a Scribd company logo
1 of 22
Download to read offline
Windows 10 Linux Work
Environment
Improvements with WSL
Ifeatu Osegbo
NAME OR LOGO
Summary
We will be exploring Windows 10 and its new
features that supports Linux Admin and
developers
Introduction to
Linux
Why is Linux very
important in today’s
computing and
what companies
are doing to catch-
up
WSL
Technology
WSL Definition,
Architecture and
technologies
Demo
Demo Scenarios
2
NAME OR LOGO
Why Linux
○ The Linux Foundation
reports that Linux runs 90
percent of the public cloud
workload
○ Runs 82 percent of the
world's smartphones, 62
percent of the embedded
market
○ Development rate continues
to accelerate, as does the
number of developers and
companies
○ From 75 code changes per
hour to 85 in 2017
○ Linux Developers are much
more engaged now than ever
before
○ The Linux kernel is one of the
largest and most successful
open-source projects that has
ever come about
○ So tell me why any forward
thinking futuristic company
would not want to key into
this?
3
NAME OR LOGO
Microsoft’s Response
○ Microsoft love Linux
○ Microsoft is now a premium
sponsor of OSI
○ Microsoft has open sourced lots
of their development platforms
the .Net, Xamarin and Edge
JavaScript engine
○ Microsoft now a top contributor
at GitHub and other open
source projects
○ Microsoft Azure now supports
lots of Linux instances
○ Started including features and
tools to support Linux
development and
administration on their
platform
○ Microsoft is also focused on
creating a world class
operating system that you will
not just use, but love!
4
NAME OR LOGO
What’s New in Windows 10
○ Support for WSL – Windows
Subsystems for Linux
○ Improved Windows Console
○ Improved process management
using Pico processes and for
interaction with the NT Kernel
○ Windows Containers
○ Enhanced Session Mode - XRDP
○ Run different Linux distros
○ Different shells are available
with WSL
○ Run Bash scripts on Windows
○ Launching bash is easy from
both command line and from
File Explorer
○ Ability to run Windows and
Linux commands together in a
single command
○ Notepad support for Linux Line
Ending
5
NAME OR LOGO
What is WSL
WSL is Windows Subsystem for Linux and it is a way for you to run native
Linux applications on Windows without recompiling them and without a virtual
machine and is achieved by a driver that seats between the NT kernel and
Linux user mode which exposes virtual files and does this translation.
○ Run native Linux ELF64 binaries on Windows
○ No VM is required but it is done in Windows and on Windows
This process is accomplished by the following:
○ User session manager (LX session manager). Pico drivers (lxss.sys,
lxcore.sys)
○ Light weight emulation layer and hence does not consume ram like Virtual
machine
6
NAME OR LOGO
WSL Timeline
○ April 2016 - Product was launched at Microsoft Build as Bash on Windows
○ June 2017 - Multiple distros in the MS Store and was rebranded into WSL
○ July 2017 - Out of beta. Available on Windows Server
○ January 2018 - Background tasks, scheduled tasks
○ May 2018 - WSL on ARM
○ October 2018 - Modified configuration
7
NAME OR LOGO
Activating WSL on Windows 10
System Requirements
○ Must be a 64 bit OS and CPU Intel/AMD
○ Windows 10 x64 version running at least Windows 10 Anniversary Update
version 16xx/Build 14316 or later
8
NAME OR LOGO
Activating WSL on Windows 10
Configuration Requirements
○ Turn on developer mode(This is not required for the new update release no
1809 released on the 17th of October 2018)
9
NAME OR LOGO
Activating WSL on Windows 10
Configuration Requirements:
○ Enable Windows Subsystem for Linux feature from the Control Panel
○ You may also enable this via an elevated Powershell using this command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-
Windows-Subsystem-Linux
○ Run bash in a privileged prompt and following instructions to install, create
user and complete install
10
NAME OR LOGO
WSL Demo
Installing and configuring
WSL on Windows 10
11
NAME OR LOGO
How does WSL Work
Console Application
○ Input/output subsystem
Session Manager
○ Manages Linux instances
LXCore
○ Pico processes
○ Data structures/logic/catching
Linux Instance
○ Init process leader
○ Unmodified ELF64 binaries
NT Kernel
12
Console Application
cmd.exe, bash.exe
WSL Session
Manager
LXCore Driver
Linux instance
Init process
NT Kernel
NAME OR LOGO
Process Example
13
Kernel Mode
User Mode
Console application
cmd.exe/bash.exe
Linux instance
WSL Session
Manager
Init Process
LXCore Driver
NT Kernel
/bin/ls
NAME OR LOGO
WSL Demo
Basic Bash Examples on
Windows 10
14
NAME OR LOGO
WSL Demo
Advanced Bash Examples
on Windows 10
15
NAME OR LOGO
Windows Console
○ 2 Processes Hosts/Application
conhost vs cmd
○ Host same for all applications
cmd/powershell/bash/wsl
○ 2 modes of communication
APIs: Set/Query state
○ Streams: Read/Write
○ Linux: no APIs, control sequences
embedded in the stream {VT}
ESC[37;1;45m
16
Console
Host
Console
Application
APIs
Input/output/error
NAME OR LOGO
Windows Console Updates for Windows 10
○ Color support – from 16 to 24 bit color support which can now support vim,
fish and mc commands
○ Better VT support, more WSL compatibility
○ VT Mouse support – accepts different input sources where there are lots of
on screen text controls
○ A more user friendly experience – resizing, reflowing, copy and paste etc
○ Better font support
17
NAME OR LOGO
WSL Demo
Console Demo on
Windows 10
18
NAME OR LOGO
WSL Demo
Developer Examples on
Windows 10
19
NAME OR LOGO
WSL Limitations
Limited to live bash sessions, any running process is killed once the terminal is
exited
Not supported for live environments, it is a development tool
System D is not supported (its built on the init sysyem)
20
NAME OR LOGO
WSL Limitations
Questions/ Lets try
to break it
21
NAME OR LOGO
WSL Resources
Resources/Education:
○ https://www.linuxfoundation.org/
○ https://channel9.msdn.com/
○ https://aka.ms/wsldocs
○ https://aka.ms/wslblog
Get in touch:
Tweeter: @IfeatuOsegbo
22

More Related Content

What's hot

Introduction to .NET Core
Introduction to .NET CoreIntroduction to .NET Core
Introduction to .NET CoreMarco Parenzan
 
Last Month in PHP - February 2017
Last Month in PHP - February 2017Last Month in PHP - February 2017
Last Month in PHP - February 2017Eric Poe
 
.NET Core Blimey! Windows Platform User Group, Manchester
.NET Core Blimey! Windows Platform User Group, Manchester.NET Core Blimey! Windows Platform User Group, Manchester
.NET Core Blimey! Windows Platform User Group, Manchestercitizenmatt
 
.NET Core in the Real World
.NET Core in the Real World.NET Core in the Real World
.NET Core in the Real WorldNate Barbettini
 
How to build hybrid apps
How to build hybrid appsHow to build hybrid apps
How to build hybrid appsNikhilBabychan1
 
Lib uv node.js
Lib uv node.js Lib uv node.js
Lib uv node.js Ben Crox
 
#1 Backend Meetup - Symfony 2 - wstęp
#1 Backend Meetup - Symfony 2 - wstęp#1 Backend Meetup - Symfony 2 - wstęp
#1 Backend Meetup - Symfony 2 - wstępMaciej Grajcarek
 
What's missing from upstream kernel containers?
What's missing from upstream kernel containers?What's missing from upstream kernel containers?
What's missing from upstream kernel containers?Kirill Kolyshkin
 
Nh php may 2014 - composer
Nh php   may 2014 - composerNh php   may 2014 - composer
Nh php may 2014 - composerDavid Weingart
 

What's hot (13)

.Net Core
.Net Core.Net Core
.Net Core
 
Introduction to .NET Core
Introduction to .NET CoreIntroduction to .NET Core
Introduction to .NET Core
 
Last Month in PHP - February 2017
Last Month in PHP - February 2017Last Month in PHP - February 2017
Last Month in PHP - February 2017
 
.NET Core Blimey! Windows Platform User Group, Manchester
.NET Core Blimey! Windows Platform User Group, Manchester.NET Core Blimey! Windows Platform User Group, Manchester
.NET Core Blimey! Windows Platform User Group, Manchester
 
.NET Core in the Real World
.NET Core in the Real World.NET Core in the Real World
.NET Core in the Real World
 
Net core
Net coreNet core
Net core
 
How to build hybrid apps
How to build hybrid appsHow to build hybrid apps
How to build hybrid apps
 
Lib uv node.js
Lib uv node.js Lib uv node.js
Lib uv node.js
 
ASP.NET vNext
ASP.NET vNextASP.NET vNext
ASP.NET vNext
 
#1 Backend Meetup - Symfony 2 - wstęp
#1 Backend Meetup - Symfony 2 - wstęp#1 Backend Meetup - Symfony 2 - wstęp
#1 Backend Meetup - Symfony 2 - wstęp
 
Linux Edtitors
Linux EdtitorsLinux Edtitors
Linux Edtitors
 
What's missing from upstream kernel containers?
What's missing from upstream kernel containers?What's missing from upstream kernel containers?
What's missing from upstream kernel containers?
 
Nh php may 2014 - composer
Nh php   may 2014 - composerNh php   may 2014 - composer
Nh php may 2014 - composer
 

Similar to Windows 10 Linux Work Environment Improvements with WSL

Entwicker camp2007 calling-the-c-api-from-lotusscript
Entwicker camp2007 calling-the-c-api-from-lotusscriptEntwicker camp2007 calling-the-c-api-from-lotusscript
Entwicker camp2007 calling-the-c-api-from-lotusscriptBill Buchan
 
Introduction to Linux for Windows Users
Introduction to Linux for Windows UsersIntroduction to Linux for Windows Users
Introduction to Linux for Windows UsersRobert McDermott
 
Linux Operating System (Graduate Level CIS Term Paper)
Linux Operating System (Graduate Level CIS Term Paper)Linux Operating System (Graduate Level CIS Term Paper)
Linux Operating System (Graduate Level CIS Term Paper)Carla Bennington
 
Unix and Linux Operating Systems
Unix and Linux Operating SystemsUnix and Linux Operating Systems
Unix and Linux Operating SystemsManish Chopra
 
Hillel kobrovski Linux security overview for ciso
Hillel kobrovski   Linux security overview for cisoHillel kobrovski   Linux security overview for ciso
Hillel kobrovski Linux security overview for cisoHillel Kobrovski
 
Linux and Samba in 75 Minutes
Linux and Samba in 75 MinutesLinux and Samba in 75 Minutes
Linux and Samba in 75 Minuteswebhostingguy
 
Linux's principles and philosophy
Linux's principles and philosophyLinux's principles and philosophy
Linux's principles and philosophyMahra Alshowab
 
Microsoft Really Loves Linux – a Virtual Love Story
Microsoft Really Loves Linux – a Virtual Love StoryMicrosoft Really Loves Linux – a Virtual Love Story
Microsoft Really Loves Linux – a Virtual Love StoryChristian Heitkamp
 
Interopability with Suse Linux: MoonLight Project
Interopability with Suse Linux: MoonLight Project Interopability with Suse Linux: MoonLight Project
Interopability with Suse Linux: MoonLight Project Alessandro Binhara
 
System software 2
System software 2System software 2
System software 2fatinsmile
 
System software
System softwareSystem software
System softwarefatinsmile
 
Microsoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New UpdateMicrosoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New UpdateAdam John
 
Future of .NET - .NET on Non Windows Platforms
Future of .NET - .NET on Non Windows PlatformsFuture of .NET - .NET on Non Windows Platforms
Future of .NET - .NET on Non Windows PlatformsAniruddha Chakrabarti
 
Uklug2011.lotus.on.linux.report.technical.edition.v1.0
Uklug2011.lotus.on.linux.report.technical.edition.v1.0Uklug2011.lotus.on.linux.report.technical.edition.v1.0
Uklug2011.lotus.on.linux.report.technical.edition.v1.0dominion
 

Similar to Windows 10 Linux Work Environment Improvements with WSL (20)

Entwicker camp2007 calling-the-c-api-from-lotusscript
Entwicker camp2007 calling-the-c-api-from-lotusscriptEntwicker camp2007 calling-the-c-api-from-lotusscript
Entwicker camp2007 calling-the-c-api-from-lotusscript
 
Introduction to Linux for Windows Users
Introduction to Linux for Windows UsersIntroduction to Linux for Windows Users
Introduction to Linux for Windows Users
 
linux introduction
linux introductionlinux introduction
linux introduction
 
Linux Operating System (Graduate Level CIS Term Paper)
Linux Operating System (Graduate Level CIS Term Paper)Linux Operating System (Graduate Level CIS Term Paper)
Linux Operating System (Graduate Level CIS Term Paper)
 
Unix and Linux Operating Systems
Unix and Linux Operating SystemsUnix and Linux Operating Systems
Unix and Linux Operating Systems
 
Lotus on Linux Report 2010
Lotus on Linux Report 2010Lotus on Linux Report 2010
Lotus on Linux Report 2010
 
Hillel kobrovski Linux security overview for ciso
Hillel kobrovski   Linux security overview for cisoHillel kobrovski   Linux security overview for ciso
Hillel kobrovski Linux security overview for ciso
 
Linux and Samba in 75 Minutes
Linux and Samba in 75 MinutesLinux and Samba in 75 Minutes
Linux and Samba in 75 Minutes
 
Linux's principles and philosophy
Linux's principles and philosophyLinux's principles and philosophy
Linux's principles and philosophy
 
Windows 10
Windows 10Windows 10
Windows 10
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
 
Microsoft Really Loves Linux – a Virtual Love Story
Microsoft Really Loves Linux – a Virtual Love StoryMicrosoft Really Loves Linux – a Virtual Love Story
Microsoft Really Loves Linux – a Virtual Love Story
 
Interopability with Suse Linux: MoonLight Project
Interopability with Suse Linux: MoonLight Project Interopability with Suse Linux: MoonLight Project
Interopability with Suse Linux: MoonLight Project
 
System software 2
System software 2System software 2
System software 2
 
SYSTEM SOFTWARE 2
SYSTEM SOFTWARE 2SYSTEM SOFTWARE 2
SYSTEM SOFTWARE 2
 
System software
System softwareSystem software
System software
 
Microsoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New UpdateMicrosoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New Update
 
Future of .NET - .NET on Non Windows Platforms
Future of .NET - .NET on Non Windows PlatformsFuture of .NET - .NET on Non Windows Platforms
Future of .NET - .NET on Non Windows Platforms
 
Uklug2011.lotus.on.linux.report.technical.edition.v1.0
Uklug2011.lotus.on.linux.report.technical.edition.v1.0Uklug2011.lotus.on.linux.report.technical.edition.v1.0
Uklug2011.lotus.on.linux.report.technical.edition.v1.0
 
Operating system collaboration
Operating system collaborationOperating system collaboration
Operating system collaboration
 

Recently uploaded

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Recently uploaded (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

Windows 10 Linux Work Environment Improvements with WSL

  • 1. Windows 10 Linux Work Environment Improvements with WSL Ifeatu Osegbo
  • 2. NAME OR LOGO Summary We will be exploring Windows 10 and its new features that supports Linux Admin and developers Introduction to Linux Why is Linux very important in today’s computing and what companies are doing to catch- up WSL Technology WSL Definition, Architecture and technologies Demo Demo Scenarios 2
  • 3. NAME OR LOGO Why Linux ○ The Linux Foundation reports that Linux runs 90 percent of the public cloud workload ○ Runs 82 percent of the world's smartphones, 62 percent of the embedded market ○ Development rate continues to accelerate, as does the number of developers and companies ○ From 75 code changes per hour to 85 in 2017 ○ Linux Developers are much more engaged now than ever before ○ The Linux kernel is one of the largest and most successful open-source projects that has ever come about ○ So tell me why any forward thinking futuristic company would not want to key into this? 3
  • 4. NAME OR LOGO Microsoft’s Response ○ Microsoft love Linux ○ Microsoft is now a premium sponsor of OSI ○ Microsoft has open sourced lots of their development platforms the .Net, Xamarin and Edge JavaScript engine ○ Microsoft now a top contributor at GitHub and other open source projects ○ Microsoft Azure now supports lots of Linux instances ○ Started including features and tools to support Linux development and administration on their platform ○ Microsoft is also focused on creating a world class operating system that you will not just use, but love! 4
  • 5. NAME OR LOGO What’s New in Windows 10 ○ Support for WSL – Windows Subsystems for Linux ○ Improved Windows Console ○ Improved process management using Pico processes and for interaction with the NT Kernel ○ Windows Containers ○ Enhanced Session Mode - XRDP ○ Run different Linux distros ○ Different shells are available with WSL ○ Run Bash scripts on Windows ○ Launching bash is easy from both command line and from File Explorer ○ Ability to run Windows and Linux commands together in a single command ○ Notepad support for Linux Line Ending 5
  • 6. NAME OR LOGO What is WSL WSL is Windows Subsystem for Linux and it is a way for you to run native Linux applications on Windows without recompiling them and without a virtual machine and is achieved by a driver that seats between the NT kernel and Linux user mode which exposes virtual files and does this translation. ○ Run native Linux ELF64 binaries on Windows ○ No VM is required but it is done in Windows and on Windows This process is accomplished by the following: ○ User session manager (LX session manager). Pico drivers (lxss.sys, lxcore.sys) ○ Light weight emulation layer and hence does not consume ram like Virtual machine 6
  • 7. NAME OR LOGO WSL Timeline ○ April 2016 - Product was launched at Microsoft Build as Bash on Windows ○ June 2017 - Multiple distros in the MS Store and was rebranded into WSL ○ July 2017 - Out of beta. Available on Windows Server ○ January 2018 - Background tasks, scheduled tasks ○ May 2018 - WSL on ARM ○ October 2018 - Modified configuration 7
  • 8. NAME OR LOGO Activating WSL on Windows 10 System Requirements ○ Must be a 64 bit OS and CPU Intel/AMD ○ Windows 10 x64 version running at least Windows 10 Anniversary Update version 16xx/Build 14316 or later 8
  • 9. NAME OR LOGO Activating WSL on Windows 10 Configuration Requirements ○ Turn on developer mode(This is not required for the new update release no 1809 released on the 17th of October 2018) 9
  • 10. NAME OR LOGO Activating WSL on Windows 10 Configuration Requirements: ○ Enable Windows Subsystem for Linux feature from the Control Panel ○ You may also enable this via an elevated Powershell using this command: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft- Windows-Subsystem-Linux ○ Run bash in a privileged prompt and following instructions to install, create user and complete install 10
  • 11. NAME OR LOGO WSL Demo Installing and configuring WSL on Windows 10 11
  • 12. NAME OR LOGO How does WSL Work Console Application ○ Input/output subsystem Session Manager ○ Manages Linux instances LXCore ○ Pico processes ○ Data structures/logic/catching Linux Instance ○ Init process leader ○ Unmodified ELF64 binaries NT Kernel 12 Console Application cmd.exe, bash.exe WSL Session Manager LXCore Driver Linux instance Init process NT Kernel
  • 13. NAME OR LOGO Process Example 13 Kernel Mode User Mode Console application cmd.exe/bash.exe Linux instance WSL Session Manager Init Process LXCore Driver NT Kernel /bin/ls
  • 14. NAME OR LOGO WSL Demo Basic Bash Examples on Windows 10 14
  • 15. NAME OR LOGO WSL Demo Advanced Bash Examples on Windows 10 15
  • 16. NAME OR LOGO Windows Console ○ 2 Processes Hosts/Application conhost vs cmd ○ Host same for all applications cmd/powershell/bash/wsl ○ 2 modes of communication APIs: Set/Query state ○ Streams: Read/Write ○ Linux: no APIs, control sequences embedded in the stream {VT} ESC[37;1;45m 16 Console Host Console Application APIs Input/output/error
  • 17. NAME OR LOGO Windows Console Updates for Windows 10 ○ Color support – from 16 to 24 bit color support which can now support vim, fish and mc commands ○ Better VT support, more WSL compatibility ○ VT Mouse support – accepts different input sources where there are lots of on screen text controls ○ A more user friendly experience – resizing, reflowing, copy and paste etc ○ Better font support 17
  • 18. NAME OR LOGO WSL Demo Console Demo on Windows 10 18
  • 19. NAME OR LOGO WSL Demo Developer Examples on Windows 10 19
  • 20. NAME OR LOGO WSL Limitations Limited to live bash sessions, any running process is killed once the terminal is exited Not supported for live environments, it is a development tool System D is not supported (its built on the init sysyem) 20
  • 21. NAME OR LOGO WSL Limitations Questions/ Lets try to break it 21
  • 22. NAME OR LOGO WSL Resources Resources/Education: ○ https://www.linuxfoundation.org/ ○ https://channel9.msdn.com/ ○ https://aka.ms/wsldocs ○ https://aka.ms/wslblog Get in touch: Tweeter: @IfeatuOsegbo 22