Linux GUI Applications on Windows Subsystem for Linux

Linux GUI

Applications on

Windows Subsystem for Linux [WSL2]

Developers Perspective

Jim McKeeth

Chief Developer Advocate Embarcadero Technologies jim.mckeeth@ @JimMcKeeth

Copyright ? 2022 by Embarcadero, an Idera company

Slides, links & replay: blogs.?p=130922

Delphi 11

Agenda

Introduction to WSL

Setup and configuration

Different Linux Distributions

Deploying and debugging Troubleshooting Advanced Options

Q&A

Copyright ? 2022 by Embarcadero, an Idera company

Slides, links & replay: blogs.?p=130922

Delphi 11

Presenter: Jim McKeeth

Chief Developer Advocate & Engineer for Embarcadero Long time software developer

Delphi, C/C++, Python, Java, JavaScript, Ruby, etc.

Invented and patented pattern and swipe to unlock

e.g. US Patents # 8352745 & 6766456

Built thought controlled drone with Google Glass and wireless EEG headset

Contributor to Internet of Things and Data Analytics Handbook Blogger, podcaster, conference speaker, webinar host, etc. Twitter, TikTok, YouTube, etc. @JimMcKeeth

Copyright ? 2022 by Embarcadero, an Idera company

Delphi 11

Windows Subsystem for Linux

Introduced in Windows 10 Trivia: Replaces Windows Services for Unix from 2004 Also available on Windows 11 and Windows Server 2019

Developed in collaboration with Canonical and others WSL2 improved performance with a real Linux kernel

Uses a subset of Hyper-V features Not as isolated or as much overhead as a VM

Performance rivals native Linux WSLg adds GUI support

Ships in Windows 11 or Windows 10 Insider 21364

Copyright ? 2022 by Embarcadero, an Idera company

Delphi 11

&

LINUX

Copyright ? 2022 by Embarcadero, an Idera company

Addressing the Elephant in the Room...

Delphi 11

Linus Torvalds

Creator of Linux kernel

Img

"The whole anti-Microsoft thing was

sometimes funny as a joke... I feel like, yes, they have changed... So I completely dismissed all the anti-Microsoft

stuff."



Satya Nadella

Microsoft CEO

Img

Copyright ? 2022 by Embarcadero, an Idera company

"a step backward in the

campaign for freedom."



Richard Stallman

Found of FSF & GNU

Img

"It's not like Microsoft is stealing our toys, it's

more that we're sharing them with Microsoft in order to give everyone

the best possible experience."



Mark Shuttleworth

Founder & CEO Canonical

Img

RAD STUDDeIOlphi 11

Benefits and Use Cases

Ability to run unmodified ELF64 Linux binaries, expand toolkit and capabilities Flexibility of combining Windows and Linux tool chain on one computer Less overhead than a traditional virtual machine means better performance Local build environment with containers, etc. Testing server applications from Windows without additional infrastructure No need to mess with dual boot or 3rd party VM installation Invoke Linux binaries from Windows and Windows executables from Linux Runs as you need it, less management Memory and drive space are dynamically shared

Copyright ? 2022 by Embarcadero, an Idera company

Delphi 11

WSL Installation Guide

Enable "Windows Subsystem for Linux" optional feature (via Admin PowerShell or Windows Features) Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Install Linux Distro of Choice Windows Store or manually via script

Launch Linux Distro to initialize it, provide password, etc. You can also build a custom distro Launch WSL 4 ways

Icon on start menu

[distro], for example ubuntu wsl.exe or bash.exe wsl [command] or bash -c [command]

Copyright ? 2022 by Embarcadero, an Idera company



Delphi 11

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download