Over the last years, Microsoft has changed its approach to the open source community. I assume that it is a pragmatic decision - Windows is still dominating the desktops, but nowadays there are many more areas where Windows hasn't been able to compete with Linux, such as servers, smart phones and embedded systems.
Windows Subsystem for Linux
A couple of years ago, Microsoft introduced Windows Subsystem for Linux. It is a compatibility layer that makes it possible to run a Linux distribution inside a virtual machine in Windows (WSL 2). Currently, it is configured for command-line applications only, but there are web sites describing how to setup an X- server for WSL 2.
As it is possible to reach all files in Windows from the Linux VM, and also to reach the home folder from Windows, it is easy to modify files and scripts.
Installation
Microsoft has an excellent installation guide for WSL.
- Ensure that you are using a new version of Windows 10. You want to have Windows build 18917 or higher to run WSL 2.
- Enable Viritualization on the computer. In my case, those settings were already enabled.
- Enable Windows Subsystem for Windows. In Power Shell, run: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Install WSL 2 from PowerShell
- Install a Linux Distribtion of choice from Microsoft Store
- Wait for Microsoft to develop GUI support on WSL 2
Roadmap for WSL
Microsoft has announced that they intend to add support for GUI apps on WSL 2. That will be very useful.
Embrace. Extend and Extinguish?
There is a discussion about whether WSL is a way for Microsoft to embrace Linux in order to take over it. Even I have had concerns and some hostility towards Microsoft in the past, but in this case, I am not to concerned. My understanding is that Microsoft has had a change-of-hearts towards Linux.
Adding WSL/Linux is a way for Microsoft to stay relevant and prevent developers from leaving Windows entirely.
After all, WSL 2 introduced a full Linux kernel (WSL was a translation layer). This is a step towards more Linux.
Linux is still dominant when it comes to servers, embedded systems and Android. Microsoft had an attempt to enter the smartphone market but gave up its development in 2017.
UNIX/Linux has a strong position as a development environment, and as Linux distributions are getting more user friendly, and as applications are moving to web servers, Microsoft may face a challenge to keep people and developers to stay on their platform. Allowing the user to have both may be one way to keep the users. Simplifying Linux on Windows is an important step for Microsoft to stay relevant for developers.
Time will tell what influence Microsoft will have over the Linux ecosystem.
No comments:
Post a Comment