801 points · by polyomino · 7y ago · 508 comments
In the mid 2000's the Mac really took off due to being a good-enough Linux replacement on the command line, while taking care of all the hardware integration and providing a sleek desktop experience. This really helped the Mac take off among hackers. This system wasn't as open-source as Linux, but it was good enough: Most of us don't want to mess about with the desktop stack. If the stack we care about is open-source and runs across many systems, then we still have the freedom. I find it fairly easy to work on both Mac OS X, Linux and WSL2 -- but not pre-WSL Windows.
The inclusion of a Linux kernel really seems to cause a lot of confusion. No, Microsoft is not about to remove the NT kernel. No, they're not about to supplant Linux. WSL1 did what the guys from Illumos and FreeBSD have also done: since the Linux syscall interface is quite stable, the NT kernel can simply implement these syscalls and handle them appropriately. The was that the NT kernel was still sufficiently different that the filesystem performance was quite poor and complex applications like Docker required more kernel features than was provided by just the syscall API.
Including a Linux kernel is really the nuclear option: rather than trying to fit Linux applications in Windows, they're running in their own world and providing integrations into this world. This means you can now run Docker on WSL2 for instance, but it's also complicated: Kernels really like to think that they own the world, for instance they keep memory around to use for later. WSL2 dynamically grows the amount of RAM allocated to the VM, which is quite clever, but I don't know how/if they're going to handle freeing memory again -- here the NT kernel really needs to communicate with the Linux kernel.
Anyways, the upshot is that no, Microsoft is not going to take over the world, but perhaps it will be easier to use a Windows laptop which supports all the stupid Enterprise software I need but still have a Linux shell for actual work.
The thing that annoys me most on Windows is Windows itself. After using Linuxes for almost two decades now, the notion of the OS taking tens of minutes to self update when all I wanted was to quickly reboot it is unbearable.
> I don't know how/if they're going to handle freeing memory again -- here the NT kernel really needs to communicate with the Linux kernel
Usually "free" memory only happens when a Linux machine starts. During normal usage most of the memory is being used to cache things and, when some large app frees its own memory (such as when Slack quits) it'll eventually be used for other things.
Not sure how that would work. Memory doesn't stay unused in Linux for long - whatever programs free will end up being used to cache information that's slow to access.
This is definitely a problem especially considering that the shotgun approach to some Windows updates actually hurt the performance of some machines, even breaking Windows on occasion [0]. However, in fairness I would say that I've spent just as much or more time fixing rolling release issues on Arch/Manjaro, or troubleshooting the package stopping me from sudo apt upgrade. The worst experience for me was having to reformat after the update from Ubuntu 14.04 crashed.
What annoys me most about Microsoft's overarching paternalistic philosophy is is how creepy their telemetry initiatives are. Granted plenty of companies do this now, for the same profit-driven motivations, but Microsoft goes above and beyond in terms of disabling or even ignoring opt out options [1]. I've found the Winaero blog [2] to be a good source of tools to stop some of the Windows telemetry shenanigans.
[0]: https://www.forbes.com/sites/daveywinder/2019/05/19/microsof...
[1]: https://www.reddit.com/r/Windows10/comments/a4lpg0/windows_1...
[2]: https://winaero.com/
That doesn't even matter much to me. Obviously, less time spent is better, but what really matters is the timing.
When I have to spend time upgrading my linux box, I have set time aside. I decide that I have a bit of time, and if it turns out to be a bigger job than expected, I can decide to abort and continue some other time.
On Windows the upgrade is always inconvenient, because you have no way of controlling it. Microsoft decides when the best time for you to upgrade is, and once it starts you have no means of punting on it.
Although the telemetry is certainly a problem too.
Fantastic - so if any of the fstab entries are missing, the entire system effectively bricks itself. The only way to fix it was to remove the SD card, put it in another machine, and manually remove the offending entries from the fstab file. Fantastic. I Don't think I have ever managed to get windows to self-brick itself with something so simple.
But not all annoyances are created equal
I find the same thing with electric cars. Eight hours to charge when I've spent two decades filling in minutes is absurd.
A tangential point but a relevant one nonetheless. I owe most of my tech. skills to the fact that it was hard to get a Linux distribution running on a cheap PC. I had to read up about hardware, learn how to fix installation issues, sometimes recompile the kernel with different options (and hence study them) and a number of other things simply because it didn't "just work". It gave me an intimate comfort with Linux that I just don't have with any other system (including MacOS which I used for about 2.5 years).
I completely get the notion that when one is a professional he or she shouldn't need to meddle with system level quirks to get a productive environment and a desktop and thankfully, modern Linux is more or less there. I haven't had any major trouble in a long time with it. However, during college or early years, having a system that demands some amount of work to get it working has, atleast to me, be crucial in honing my skills. I wouldn't change that even if I could. I'd vigourously defend it.
It is effectively their way to have an "integrated Linux virtual machine" inside of Windows. The WSL1 on Windows was relatively similar (but not enough for me) to Wine on Linux. The WSL2 is in some ways "more integrated" than the typical VM would be, but otherwise still similar to that.
Not enough: my greatest disappointment up to now is that the "VM-like" behavior was present even in WSL1, if I understood correctly, the files "inside" were more special than the files inside Cygwin folders would be.
Another disappointment was: it was not easy to install WSL on previous Windows 10 versions. Specifically, it was "in app store" but you weren't supposed to "click to install" -- it resulted in something weird. There were recipes what to do from the command line with hoops to take care of, so at the end... I've installed Cygwin, which I knew will work. Does anybody know, did WSL get better now?
(Edit: in the last sentence: s/ it / WSL /)
Yesterday I:
1. Enabled the Windows Subsystem for Linux option from the control panel
2. Downloaded Ubuntu from the windows store
3. Open Ubuntu and it worked.
https://www.reddit.com/r/bashonubuntuonwindows/comments/7smf...
Regarding the problems between the "different filesystems" it was like:
https://www.reddit.com/r/bashonubuntuonwindows/comments/9dkl...
Which was especially bad: what's the point in having it "there" if you aren't allowed to access the files inside.
Also problems with making a backup of that etc. In that aspects using a real VM (e.g. VirtualBox) the situation was much clearer.
So from my perspective it was both worse than Cygwin and worse (or at least not better) than real VMs... I would really like to read if/how WSL improved.
The similar experience was when I've tried to "just install ssh server". The things I've expected to "just work" didn't. Again at the end I've just used Cygwin.
I'm disappoint to "VM-like" behavior too, so I don't expect they would be totally replaced by WSL.
But this is similar in the other direction. Many applications just rely on such "VM-like" behavior, even though they can be (re)built for Win32 and/or they do not need a real VM for functionality. Note WSL1 can already do something more, e.g. hosting programs as X clients working with VcXsrv. I don't think WSL2 will be necessarily better than WSL1 in many of such cases. (In particular, when I have to reserve VT-x for some other hypervisors, I have no other choice.)
I really like Cygwin. With the MinTTY terminal, it was very nice. Slower than native Linux (or Windows), but enough of an environment to make me happy and productive.
No we do not.
Cygwin really helped me with the Windows part of that for many years. I switched to a Powerbook about a year before the Intel switch & haven't looked back since. Linux has never been a good enough desktop all-rounder to make me switch to it as a desktop OS. Maybe I should take another look.
nit picking but it was more of a good enough bsd/unix than linux.
Who are you to claim this?
The closed off nature of Apple is very dangerous to trust, and I don't know any 'hackers' who are willing to risk unchecked/vulnerable OSes.
I have no idea if Apple has a backdoor to the FBI. We do know on Linux there is no hidden backdoor.
What I really appreciate about WSL is that you get the accessibility of a bunch of OSS projects and a machine which has legit drivers for all of its component bits. What this means to me is that searching for a "linux laptop" won't be a chore, if it runs the latest Windows it will run Linux. And I can do development on the Linux side while communicating with senior management in power point on the Windows side :-). If they come up with a better/credible USB allocation scheme it will be icing on the cake.
I also think they should buy one of the X server vendors and bundle it (comments about X.org from Redhat not withstanding) I use Xwin32 on my laptop with WSL and its pretty seamless in terms of things that want to pop up a GUI.
1. You can't connect to a port listening on WSL localhost like in WSL1, you have to figure out the WSL IP address and use that.
2. From WSL you can't connect to a Windows TCP port on localhost, you must figure out the Windows IP (cat /etc/resolv.conf) and use that.
3. The WSL remote interpreter on PyCharm is not working anymore. The suggested workaround is "use SSH remote interpreter" but given #1 you can't connect to localhost (and the WSL IP changes every time you restart it)
In order to use the SSH remote interpreter in my favorite IDE I'm using this script (on Windows):
import subprocess
import re
output = subprocess.check_output('wsl.exe ifconfig')
match = re.search(r"\sinet\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s", output.decode('utf-8'))
if match:
ip = match.group(1)
with open(r"C:\Windows\System32\drivers\etc\hosts") as i:
content = i.read()
new_content = re.sub(r"(172.\d+\.\d+\.\d+)\s+wsl", f"{ip} wsl", content, re.M)
if new_content != content:
try:
with open(r"C:\Windows\System32\drivers\etc\hosts", "w") as o:
o.write(new_content)
except PermissionError:
print(new_content)
First I use the Windows Scheduler to start SSH (wsl service start ssh) on logon. Then this script is executed on logon with elevated privileges to update the hosts file. Instead of "localhost", I use "wsl" and it works well enough for me while I wait for the fixes.Despite the above, the combo Windows 10 + WSL2 is the best "Linux Desktop" for me.
Doesn't solve the speed issue, but at least you're never blocked by a software that only work with a local/non-network path.
The existence of c:\Windows\System32\drivers\etc\hosts cracks me up. Supposedly [citation needed] Windows uses/used part of the BSD network stack.
[0] https://chrome.google.com/webstore/detail/secure-shell-app/p...
That'd suck! is there no way to nail it down?
Seems like there could be a market for that where it's combined with recent enhancements in efficiency targeted toward people like you that want more compatibility. What do you think?
Microsoft puts itself in the middle of that by certifying a driver through a vendor sign up / certification process, and since it doesn't require the vendor to release source, the vendor can keep that information secret. As a result you have more drivers for more hardware created under the "Made for Windows" driver development plan than you do from enthusiastic reverse engineering efforts in the Linux camp.
To the extent that you can capture the value of Microsoft's oversight without having to pay the 'tax' of a Microsoft OS, you add value for the end users.
The drawback being whatever in middle interfaces the Windows interface to the non-Windows VM's might introduce bugs. It must be correct and compatible.
https://www.usenix.org/legacy/events/osdi04/tech/full_papers...
https://os.inf.tu-dresden.de/Studium/KMB/WS2012/06-Drivers.p...
Well, a mix of Windows and Linux drivers where we use Linux whenever it works well enough. Windows when it doesn't. Might also be able to tie that in Windows Embedded to trim as much fat out of the driver VM as possible.
WSL 2 is a lot like that -- it's a VM in the sense that it uses Hyper-V, but it's super lightweight. And in fact, when WSL 2 is enabled, both Windows AND Linux are running in the same type of VM (separate, obviously), so it's near-native performance in a lot of ways. There are still some I/O issues that the team is actively working on, but early benchmarks are quite promising.
Is there a way to suspend windows? From what you say, there is nothing technical preventing this.
You can learn more about the architecture of WSL2 in this video from Build https://youtu.be/lwhMThePdIo
=/
Hoping to run my R code on WSL 2. Glad I got the answer. I wish you guys well on I/O issues.
Is there any performance hit for WSL2 in regard to process forking? I recall that how window and unix deal with process is different (my R code uses mclapply parallel package for unix). I'm curious if there will be any performance hit that stands out versus running on a unix system for parallel/concurrency code.
I can't find that exact thread right now, but here's another one comparing WSL with Windows:
https://www.reddit.com/r/bashonubuntuonwindows/comments/c1r6...
Many of my colleagues use macOS, some use Windows, some Linux. I have a work-issued Mac and a work-issued Surface Book, because it’s important to test compatibility, especially when it comes to CLI stuff, across different platforms. I have Linux VMs and docker containers and WSL configured too.
[1]: https://twitter.com/tara_msft/status/1125888319974400000?s=2...
does this mean there will be issues using VirtualBox if WSL 2 is enabled?
It's a shame and makes me sad for modern computing.
1- We have 4/5 mainstream OSes today: Win/OSX/iOS/Android + Linux. In the case of iOS/android: Some users alread switch between the 2.
2- If it have apps is almost all people need. Drivers are not THAT significant IMHO.
3- Chromebook is a thing, despite it sound stupid: A OS that is just a browser.
Web is the 6 truly mainstream "OS".
4- What people need on drivers? USB (and with usb-c), hdmi, bluetooth (maybe?) + wifi. With this alone and you get even better than iPad: Monitors, wireless mouse, keyboards, external storage, and by extension you catch the rest.
5- Printers? By proxy of iOS it can work full wireless with no drivers on device.
So I think a true desktop OS could launch with less worry about legacy hardware.
Where IS the problem is the apps. It need to be better than chromebook, have very great first party apps that cover basics and hopefully, a VM layer so you could run linux and catch the rest.
Not sure if this will mean new architectures, operating systems & better tools.. but one can dream!
+ FreeBSD
+ OpenBSD
+ NetBSD
+ DragonFlyBSD
+ Minix
+ Haiku
+ Redox
+ Plan 9
+ SeL4
+ Fuchsia
And many more.Edit:
Here is the link to the Microsoft provided VMs:
https://developer.microsoft.com/en-us/windows/downloads/virt...
Given Microsoft's zeal for legacy support I'd say there's a snowball's chance in hell for this, but a man can dream.
This is what happens in the case of WSL 2; both Linux and Windows (the host OS) run in very (very) lightweight VMs.
(I also want to just be about to plug in my HDMI to my laptop and have it work. Literally the only two things I care about)
The first version of WSL is just another process in task manager, with all the syscalls and filesystems emulated.
There seems to be an assumption that Linux is the ultimate in OSes. But most of the value comes from the large ecosystem and momentum, rather than specific technical advantages.
The value of Linux (to many) rests on its FOSS value system.
This gloomy world of palpable beige-yellow-purple is the world of Microsoft Windows. As a product, it caters exclusively to that clientele, in that environment. To be blunt, above all other design considerations, Windows was built to accommodate the lackluster office drone -- or, more precisely, their bean-counting overlords who wanted to save on user workstations.
Despite attempts to undo this, the design has proven impossible to build upon. How many legitimate improvements in the cutting edge of either academic or industrial compsci have been built on Windows technology, for any reason other than "MS signs my paycheck so I'm contriving this to appear like I'm happy to be using PowerShell"?
MS was able to paper over the deficiencies for a while through sheer force (pushing .NET as a semi-unified computing environment, Ballmer screaming "DEVELOPERS!", etc.), but Windows was in no way prepared for the revolution brought by virtualization in the mid-aughts, and any shred of a hope that MS would somehow recover was utterly and entirely obliterated by the widespread proliferation of containerization. Good luck getting a real version of that working on Windows.
I've said it before and I'll say it again: in about 5 years, I wouldn't be surprised at all to see the new version of "Windows" plumbed end-to-end atop a nix-like kernel, and driven by a hybrid userland comprised of a spit-polished copy-paste from WINE + a grab bag of snippets from the proprietary MS-internal Win32.
The flexibility of the nix model is the indisputable, indomnitable winner here, and it stunned and killed the Goliath in its tracks. This is the ultimate surrender to the open-source model. Windows's top-down, "report to your cube by 8:26am sharp and don't question the men in the fancy suits" approach to computing resulted in a rigid operating system that was unable to keep pace with the technological demands of the many pantheons of loyal corporate drones that comprised their user base. Even strictly-Microsoft shops are forced to give developers MacBooks now, or they're unable to get anyone competent to sign on.
It really couldn't get more poetic than MS desperately integrating Linux into their OS so that people won't switch to the more flexible nix-like systems for their workstations, although I anxiously await MS accidentally linking in a GPL module and thus becoming required to disclose the Windows source code. :)
Meanwhile, per usual, nix-like OSes have been humming for 50-ish years now and show no signs of slowing down. IMO, that's all the objective, borne-out proof one needs to say that for all practical purposes, Windows couldn't stand the test of time.
Please note that this is not about Linux per se, but the overarching design theory and development processes in use in major operating systems, and the massive success it represents for open-source, research-driven systems.
The chapter on "The Windows Way" has been written, and whatever its benefits may be in theory, they don't bear out as sustainable in practice.
It'd be fun to do a macro-scale timeline comparison to Sun. These invincible tech behemoths that cater to their narrow niche become rotting, hollowed-out fossils as the free systems continue to develop and evolve the cutting edge. Microsoft is right on time here, and I fully expect to see them struggle through the next decade or so until Larry Ellison finally puts them out of their misery.
No one can fight against free beer, regardless how bad it might taste, people still go for it.
Windows revenue grew $925 million. Not to $925 million. By $925 million.
https://www.microsoft.com/en-us/annualreports/ar2018/annualr...
I would say this move by Microsoft is the exact opposite, because it maintains Windows at the centre of the picture.
Microsoft is basically saying, look you can have all your Linux goodness and best of all you can access all that goodness using your current Windows desktop.
Using WSL2 the between Windows/Linux are very blurred.
Linux's driver architecture and even app distribution is a fucking nightmare.
[1] https://en.m.wikipedia.org/wiki/Embrace,_extend,_and_extingu...
So for all that just want a local nix enviroment for dev (and to most these means linux), Microsoft has actually beat Apple at this.
I see WSLv2 as more of a concession that a *nix-style interface is what developers want, and that the NT kernel can't deliver that.
The only thing that NT really lacks is a Unix-style TTY subsystem. The interplay in Unix between TTYs, process control, and signals is complex and deep, and none of it lends itself toward abstractions--it's all quintessentially Unix. For almost everything else, NT provides interfaces that can be used to efficiently implement Unix semantics.
Microsoft isn't interested in supporting a modern POSIX environment natively as that would merely accelerate the migration of the software ecosystem away from Windows APIs. IMO, it's why they killed WSL1. WSL1 was de facto a modern, native Unix personality on NT. They may not have managed 100% Linux compatibility, but they could've simply relabeled it Windix or something, used a small team to round things out, and received UNIX V7 certification in a jiffy.
WSL is about managing the shift toward a Linux-based cloud world, capturing as much of that business as they can without unnecessarily risking their existing footprint. WSL2 neatly allows them to maintain Windows API lock-in while also providing substantial value for those needing to develop Linux-based software. WSL1 fell short on both accounts, though standing alone I think it was much cooler technology.
(But it's more aimed at services, so doesn't do GUI etc.)
Edit: To those questioning if this really counts as Linux on the Desktop. Yes, I understand what you're saying, I too am a bit of a blowhard about Linux and prefer to use the real deal, not some kernel on a kernel bs. But I think this is still a huge deal in terms of the accessibility of Linux, think of how many young programmers will be able to dip their toes in the Linux pool on their gaming rigs without having to go through an Ubuntu install process (I write, thinking in the back of my mind that I had to go through that, and so maybe they should too.) Yes there is something of an ideological compromise here, because the Linux they're running is sitting on a binary blob and not truly free... but Linux still exists in it's gloriously free form for them to use when they decide that's important to them, I see no harm in them reaping some of the other benefits of Linux without the freedom, it will hopefully become an on ramp to more Linux adopters and programmers.
Maybe more importantly redefining the goal isn't helping Linux much. I remember everyone raving about Android, but now look at the lack of vanilla graphics drivers for embedded platforms.
That said, I have nothing against WSL.
Maybe I just have less time and patience nowadays :-)
In fact I would recommend it for anyone who only uses their computer for general, basic use.
>For most purposes, it has been ready for years.[...] Most people, however, could switch to one of many Linux distributions and be just as productive if not moreso.
If "most people" includes non-technical users, I doubt they could switch to Linux without difficulties.
E.g. a typical non-geek user might be my friend that runs Windows. Some examples of showstoppers that makes Linux totally a non-option:
- Intuit Quicken which she's been using for 20 years. Yes Linux Mint was a possible alternative but its early releases (inside of your 15-year time period) didn't have reliable online downloads from financial institutions. Mint's later partnership with Yodlee api for transaction downloads still didn't make it equal to Quicken. Yes, Quicken is terrible and buggy software but early Mint was even worse for online banking scenarios.
- Netflix streaming was not easy to run on Linux until recently[0]
- AAA games (including recent ones like Fortnite) don't run easily on Linux. Valve Steam Proton is a recent effort.
- iPhone sync with Apple iTunes - running on Linux requires googling for articles of running a Windows vm or Rhythmbox on Ubuntu which may not work with certain iOS updates
- sewing machine embroidery software all runs on Windows and not Linux or even MacOS. The software also requires a dongle for copy-protection and the hardware drivers for the dongles only exist for Windows. Running Windows as a vm inside of a Linux Desktop and exposing the host USB port to the client vm won't fool the dongle software. If the ultimate solution to "Windows in a virtual machine" shortfalls is to dual-boot Windows and Linux, that advanced configuration adds more complexity and it contradicts the ideal of "run Linux desktop exclusively".
For people to run Linux without issue, the person would need to possess technical skills equivalent to you (e.g. a HN poster) -- or the person has a "guardian angel" as on-call tech support (e.g. a son/daughter/friend) to get them over technical issues (like Netflix) with workarounds.
I don't doubt you've been able to run Linux exclusively and there are more examples like you. Nevertheless, it still required a very atypical usage profile to run a Linux desktop exclusively for the last 15 years.
Even today in 2019, I would not recommend the Linux desktop to any of my non-programmer and non-sysadmin type of friends & family unless I was willing to be their on-call tech support to handle their inevitable Windows compatibility issues.
For Linux to work in a mass-consumer-facing situation, it has to be an "appliance" type of installation and "invisible" such that the user doesn't realize they're running Linux. E.g. as the underlying os in Android smartphones, or the os in smart TVs, or the os in Tesla cars.
I don't see why you couldn't run x11 in the window manager with the new Linux kernel in Windows.
AMD, ARM (CPUs & Mali GPUs), Intel, VIA, Qualcomm (Adreno) all have support in kernel 5, whereas Microsoft is still stuck subsetting a small group of ARM GPUs and branding Windows 10's OpenGL ES support as DirectX 11. This is a repeat of the troubles Microsoft had with supporting Windows Phone, but now the userbase is significantly smaller despite a wider array of hardware to support.
+ Network Effects
+ Brand recognition in the general public
+ Indifference to FOSS principles
+ Resistance to changeIf this really is the year of the linux desktop, it's not what I had imagined.
Unsurprisingly, the latter case gets truer for low computer litteracy adults for who investing in a decent smartphone has a better ROI than buying a meh phone with a cheap laptop.
Anecdotally we bought our aging parents each an ipad two years ago.
They were decent but not that proficient at Windows, but got comfortable very fast at viewing/saving photos, printing, email/messaging and browsing on the ipad.
From there they gave up on their budget “my carrier gave it for free” phone to move to the iphone Xr and started doing all of the above on their phones most of the time. The laptop is now a third rank device they use to check their savings once a month.
And just as the Mac Mini is a laptop without screen and keyboard, the latest Macbooks are more and more iPads with a good keyboard. Well, good keyboards is questionable even these days...
https://developer.android.com/ndk/guides/stable_apis
So it is meaningless.
https://github.com/termux/termux-packages/tree/master/packag...
https://www.theregister.co.uk/2001/06/02/ballmer_linux_is_a_...
It's just progressed very far, and their latest moves are only desperate efforts to "embrace the cancer" before it completely consumes the market.
Microsoft brings integration not possible in VM. You can actually make Linux tools part of your complex heterogeneous workflow.
How is their WSL2 integration is different from something like shared folders?
Also, while I think it is useful. I imagine much of the hype here is also from the weirdness of it all. Would you agree that it is noteworthy that Microsoft is publishing a Linux-kernel for Windows? It think it is.
The next step is fully locked down hardware that requires a signed OS. Linux will not run on it, but MS will pretend to support you by allowing linux apps to run on their kernel. Then, once no hardware will allow you to run linux natively they will depreciate it and get people to migrate to better supported APIs of their own.
People are just walking right into this as if none of Microsofts history ever happened.
The only OK scenario is that MS becomes a larger version of Redhat and migrates users the other direction. Is that happening? No. It's all about bringing your toys to their house.
It's not very sane to run anything on Windows.
Using Linux on a personal machine is primarily so you can trust your machine to serve you and no one else. This is defeated if Windows or backdoored firmware is running below Linux.
Note that the no lock-in benefit also exists on the desktop and because of that it makes sense to switch to Linux on a machine that requires proprietary firmware as an intermediate step to moving to a better machine like those from https://puri.sm/
Chrome and Windows using the Linux kernel as a POSIX support layer is only going to diminish the Linux desktop community and the quality of its modern hardware support.
Maybe if ms makes an nvidia driver too. :/
As a long-time Mac user working at Microsoft (with Azure), this is the perfect storm. I can do everything I need on WSL 1 (except some networking stuff, obviously) and WSL 2 is going to let me get rid of Docker Desktop’s virtualization for Linux containers.
I'm sure there's far more complexity involved than I could imagine, but I've always loved the idea of having a bunch of different subsystems running without the need for virtualization.
This article[1] has a good overview of the design goals, which mainly was to let unmodified binaries run.
[1] https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subs...
However, the one problem I have with switching to Windows, even with a flawless WSL (2), or full Linux/BSD/whatever OS under the hood, the whole Apple ecosystem integration, seamless syncing between all my devices and accounts will be hard to let go unless something from MSFT / Windows and company can provide that same convenience. From what I have researched, it's close, but still not there.
It's too convenient. I know people will say they have problems with it (iCloud/macOS/iOS syncing/integration), but my experience and all my fellow constituents and family haven't. So, I have not witnessed nor experienced these issues people bring up in threads on HackerNews, Reddit, etc that I have seen (yet can't seem to find exact examples of at the moment with links).
I really admire this work. I hope MSFT continues down the path they have been. I've always had a soft spot for them. I'm rooting for them.
However, WTF. Why has the "Microsoft" directory got a leading capital. I mean every.other.directory.in.linux.is.lower.case!!!!!! Look around folks! Every other vendor in that tree has their name lowercase, please respect the local customs!
On a serious note, you should make a github issue.
If I could avoid spending time getting nvidia drivers working on my laptop, that would be a massive help. And yeah, I know, I'm supposed to buy AMD stuff so I can use open source etc. But all the best hardware is nvidia, and so top hardware ships with nvidia. I've got to use this thing for my work as well, so it's not really an option, and I don't have the technical chops to quickly debug my drivers or wm or whatever.
[1] https://wpdev.uservoice.com/forums/266908-command-prompt-con...
[2] https://wpdev.uservoice.com/forums/266908-command-prompt-con...
This is spent effort to be lazy.
Having said that, it is technologically worth studying.
I'm still sure as ever Microsoft is no friend of free (as in Freedom, not price) software and can't help but shake my head at this latest publicity stunt. I wouldn't trust their software any further than I throw it.
I don't see how that's anything but reasonable unless you take the position that all software ought to be open source regardless the creators wishes.
[1] https://opensource.org/osd
In particular, if the software or "work" was never made freely available by its lawful owner, it is not open source.
> There is a viable alternative to the problems raised by Bill Gates in his irate letter to computer hobbyists concerning "ripping off" software. When software is free, or so inexpensive that it's easier to pay for it than to duplicate it, then it won't be "stolen".
—Jim Warren, July 1976
It is about earning money. RedHat does it. Microsoft does it.
Does this let users do more? Does this give users more options? This is a good, practical feature. I'm excited to, hopefully soon, fully ditch Linux on desktop for something that actually works.
These words are not made up by journalists, these are the exact words Microsoft used internally.
They do this, every. Single. Time.
Everyone keeps falling for it, talking proudly about how MS changed so much and they are now somehow totally turned around. Yes.. ok, whatever you need to believe in. Just be warned, they will utterly drstroy everything they come into contact with.
Or should I say: denial is the most predictable of all human responses. But, rest assured, this will be the umpteenth time we have destroyed it, and we have become exceedingly efficient at it.
The new Microsoft may finally let me go back to windows. Mac is too expensive.
(1) Node.js of course runs natively on Win; however my apps makes particular assumptions wrt file paths, shared-reading/locking semantics, and spawning external shell scripts
Users first need to enable the WSL optional feature in their windows install, then they can install their favorite distro's userland from the windows store.
More detailed instructions here: https://aka.ms/wslinstall
You then open/unzip the '.appx' package with any archiver such as 7Zip and place the files in a folder of your choosing; simply launching the distro executable ('ubuntu1804.exe' for example) to install and register the distro.
You can then use that same executable to launch WSL for that distro in its own window, which makes it easy to add the icon as a shortcut to your taskbar for quick access like you would any Windows program, without having to open command line first.
Added benefit is that you can store all your distros as folders (with individual rootfs and config files) in a parent location of your choosing such as a fast external array, without having to use the MS Store or an MS Account.
[0] https://docs.microsoft.com/en-us/windows/wsl/install-manual
Still, the same until they:
1. Will give up FAT and exFAT patents
2. Stop racketeering Android vendors for their patented "inventions"
Also, what happened with NTFS-3G[1] project? Seems dead for many years, while still not supporting some of the NTFS features. They should at least upload it to GitHub.
The current WSL is pretty good, but version 2 is going to be a massive upgrade.
I also refuse to give Apple money for their overpriced garbage products.
It is for Windows users.
> All of the tools I want to use are very well supported on OSX and I don't have much use for Microsoft software like Office these days with Google Sheets et cetera.
Sure, OS X is a good solution for people or institutions who can afford those computers, who don't want to or can't use Linux, and don't mind paying that much.
> Is this being geared more towards corporate customers who have chosen to standardise all of their IT on Microsoft products, but who need easier access to dev tools/environments?
Yes, definitely, or just individual developers who want to use Windows. I don't know any devs who do this, but Kenneth Reitz was tweeting a lot about how much he was enjoying working on Windows and thought people's complaints about it were overblown.
I understand some need Windows only app to work but otherwise what does Windows offer better for third party apps that Mac doesn't for developers that WSL targets? I just can't think of one but I can think quite several the other way around.
They'd also save on kernel development AND get docker and a lot of other goodies.
https://www.theregister.co.uk/2017/09/12/microsoft_downplays...
apparently a bash on linux in wsl can deliver a payload to the windows environment.
if windows is going to ship with its wsl turned on by default, bashware has to be addressed.
Conceptually it amounts to having England and France whose people speak their own languages and now there is an European Union language translator program that allows them to talk to each other in their own language. No?
If I could do COM calls from Linux to a Windows hosted Excel.Application, now that would be amazing...
And I think currently they are just patching their own Linux together like any distro does
Microsoft is leveraging the same technology they use to run Windows on Xbox alongside the game OS, so it's really like an OS with 2 kernels
And if you do not know Dave Cutler... Well he is a VMS veteran (a system which was also ground up virtualized) who designed the Windows NT Kernel. He is essentially a legend in the field of operating systems and engineering. There is a nice documentation around him.
With this kernel we could use unix commands in somekind of terminal? Maybe node executations will run faster?
MS really playing the “we’ll go wherever the developers are” game really well.
I work at Microsoft and was issued a Lenovo, then got a Surface Pro 4 and finally a Laptop. Everyone in my team who got the Book instead is a little sad because it’s a huge lumbering beast compared to the Laptop and tends to be top-heavy compared to the X1s and Yogas we had. Those of us with Pros (tablets) and Laptops love the portability, even if you only get one USB port.
Also, all the Surface trackpads are MacBook-grade (although the software handling might need some tweaking for you to get exactly the same feeling - but I’m happy with mine now).
This makes me nervous. This is a win-win now, but who can say they won't just do what they do and destroy desktop Linux as we know it when theirs gets the traction necessary? If I were a nefarious assembly of MS execs, my long-term plan would be to use Windows' UI friendliness and compatibility to attract Linux users (embrace) and, when there would be a critical mass of users, extend MS Linux to break compatibility with true Linux (extend and extinguish).
What about the memorable MS exec quote "Linux is cancer"? For MS, Linux is cancer. For the consumer, MS is the cancer. Don't use their products. What's a company got to do to be shunned by the market?
[0] https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguis...
I don't see how this is a win-win. It incentivizes people (like developers who might otherwise stick to linux) to run a proprietary operating system.
Of course, to repeat myself, I don't think Windows is a good thing.
Arguably. It's hard to say Linux won on technical merits of networking compared to FreeBSD or OpenBSD, or on storage compared to FreeBSD+ZFS, or say that generally when devs chose MacOS X.
I suggest Linux won for being: the most popular out of the things which cost $0.
BSD lost for not being popular, commercial Unix, Windows and MacOS lost for costing money.
https://en.wikipedia.org/wiki/Worse_is_better
Also the first versions of the kernel was released at the right time.
It is decent enough, free, open source and was around at the right time. The internet was just becoming a thing, the PC ecosystem had "won" and it was pretty open in that anyone could manufacture a PC. There was an AT&T lawsuit wasn't happening in the 90s IIRC against the BSD Code. If Linus had created his kernel a little later or a litter earlier than it may have never received the interest it did.
Unix compatibility is worth quite a bit on its own, Linux wouldn't have gotten half as far without it. And Unix is historically proprietary and closed-source.
"Unix" the brand name, maybe, but "Unix" the source code less so. BSD was based on Unix. The story of why Linux became popular instead of BSD is that BSD was mired in a copyright fight with AT&T over that relationship at the time.
Per http://www.catb.org/esr/writings/taoup/html/ch02s01.html who was active at the time (and before he became today's wingnut)
"It would take another two years and the great Internet explosion of 1993–1994 before the true importance of Linux and the open-source BSD distributions became evident to the rest of the Unix world. Unfortunately for the BSDers, an AT&T lawsuit against BSDI (the startup company that had backed the Jolitz port) consumed much of that time and motivated some key Berkeley developers to switch to Linux.
> Code copying and theft of trade secrets was alleged. The actual infringing code was not identified for nearly two years. The lawsuit could have dragged on for much longer but for the fact that Novell bought USL from AT&T and sought a settlement. In the end, three files were removed from the 18,000 that made up the distribution, and a number of minor changes were made to other files. In addition, the University agreed to add USL copyrights to about 70 files, with the stipulation that those files continued to be freely redistributed. -- Marshall Kirk McKusick
The settlement set an important precedent by freeing an entire working Unix from proprietary control, but its effects on BSD itself were dire. Matters were not helped when, in 1992–1994, the Computer Science Research Group at Berkeley shut down; afterwards, factional warfare within the BSD community split it into three competing development efforts. As a result, the BSD lineage lagged behind Linux at a crucial time and lost to it the lead position in the Unix community."
Same with Google/Microsoft and privacy...
This privacy policy[1] is insane:
> Together, diagnostics and feedback are how you and your Windows 10 device tell Microsoft what's really going on. As you use Windows, we collect diagnostic information, and to make sure we're listening to you, our customer, we've also built ways for you to send us feedback anytime, and at specific times, like when Windows 10 asks you a question about how something is working for you.
> There are two levels of diagnostic data: Basic and Full. [...] This data is transmitted to Microsoft and stored with one or more unique identifiers that can help us recognize an individual user on an individual device and understand the device's service issues and use patterns.
> Specific data items collected in Windows diagnostics are subject to change to give Microsoft flexibility to collect the data needed for the purposes described. For example, to ensure Microsoft can troubleshoot the latest performance issue impacting users’ computing experience or update a Windows 10 device that is new to the market, Microsoft may need to collect data items that were not collected previously. For detailed info about the data that Microsoft collects at the Basic level, see Basic level Windows diagnostic events and fields. For more info about the data that Microsoft collects at the Full level, see Diagnostic data for full level.
> We use the Basic level of diagnostic data to improve Windows. We use the Full level of diagnostic data to improve Windows and related products and services.
> Some of the data described above may not be collected from your device even if your Diagnostic data setting is set to Full. Microsoft minimizes the volume of data we collect from all devices by collecting some of the data at the Full level from only a small percentage of devices (sample). By running the Diagnostic Data Viewer tool (available on newer versions of Windows), you can see an icon which indicates whether your device is part of a sample and also which specific data is collected from your device. Instructions for how to download the Diagnostic Data Viewer tool can be found at Start > Settings > Privacy > Diagnostics & feedback.
> You can view diagnostic data for your device in real time by using the Diagnostic Data Viewer. Note that you will only be able to view data that is available while the Diagnostic Data Viewer is running. The Diagnostic Data Viewer does not allow you to view your diagnostic data history.
If you click the feedback panel on the right edge, you get sent to another Microsoft privacy policy[2]:
> We also use the data to operate our business, which includes analyzing our performance, meeting our legal obligations, developing our workforce, and doing research. In carrying out these purposes, we combine data we collect from different contexts (for example, from your use of two Microsoft products) or obtain from third parties to give you a more seamless, consistent, and personalized experience, to make informed business decisions, and for other legitimate purposes.
> We share your personal data with your consent or to complete any transaction or provide any product you have requested or authorized. We also share data with Microsoft-controlled affiliates and subsidiaries; with vendors working on our behalf; when required by law or to respond to legal process; to protect our customers; to protect lives; to maintain the security of our products; and to protect the rights and property of Microsoft and its customers.
> You can also make choices about the collection and use of your data by Microsoft. You can control your personal data that Microsoft has obtained, and exercise your data protection rights, by contacting Microsoft or using various tools we provide. In some cases, your ability to access or control your personal data will be limited, as required or permitted by applicable law.
1. https://support.microsoft.com/en-us/help/4468236/diagnostics...
2. https://privacy.microsoft.com/en-US/privacystatement
[edited to give excerpts from the second privacy I encountered trying to provide feedback to the first one!]
In any generic platform privacy policy, the same lines you quoted from their privacy statement would be summed up as "We collect [insert here] as required for operational and security reasons", "We use your data to perform business functions" and "Your data may be shared with third-party service providers such as payment processors". It's nothing scary and is what's required for Microsoft to operate as an entity.
I'd also be careful how you interpret it. Microsoft's privacy statement applies to literally every single product and service they offer and acts as a catch-all, and from there they have independent statements that cover individual products in more detail.
In this case, the diagnostics and feedback page describes all of the scenarios that they collect and use the information, and therefore the global statement isn't relevant.
Though everything can be done in Windows, it's not easy to do so.
I specifically remember trying to install Redis on Windows and had to give up after the end of the day. Ended up creating a server and installing Redis on that on AWS.
Also, people are complaining that Microsoft once said "Linux is Cancer" at some point. A lot has changed since then. Ubuntu was released after that which IMO helped to adopt Linux by an end user.
MacBook userspace is derived from NetBSD. The kernel is so far removed from BSD UNIX it's not worth even mentioning.
This link you commented on points to the kernel used in WSL2 which gives you a full Linux under Windows. Unlike Mac where you probably will use homebrew to install Unix packages, this is a full, unadultered Linux machine. Even WSL1 allowed you to install anything from Ubuntu although some (very, very few!) didn't run, most importantly (for us) some debuggers.