10 ms·
Wine on Windows 10
- sieabahlpark 7y agoI don't know what this achieves over booting up a VM of an old OS to run your programs.
- deleted 7y ago[deleted]
- vbezhenar 7y agoWSL is VM. So it's pretty pointless to run application on Linux VM emulating WinAPI, indeed. But at least you don't need to care about licenses, that might be one reason.
- petters 7y agoWSL is not a VM. The upcoming WSL2 might be, though.
- faissaloo 7y agoI'm pretty sure WSL2 is going to use a user mode kernel
- lloeki 7y agoIIRC the NT kernel can run multiple kernels-or-something side by side. It could probably be used to co-run Linux kind of like CoLinux does. IIRC also, MS can use the Windows HyperV infrastructure to run the Linux kernel too, like they do on Xbox One to segregate games "Exclusive" OS from apps "Shared" OS. In that sense it won't be user mode either like user-mode linux is. My bet is on the latter. https://en.wikipedia.org/wiki/Architecture_of_Windows_NT https://en.wikipedia.org/wiki/Architecture_of_Windows_NT https://en.wikipedia.org/wiki/Xbox_One_system_software https://en.wikipedia.org/wiki/Xbox_One_system_software https://en.wikipedia.org/wiki/Cooperative_Linux https://en.wikipedia.org/wiki/Cooperative_Linux https://en.wikipedia.org/wiki/User-mode_Linux https://en.wikipedia.org/wiki/User-mode_Linux
- aasasd 7y agoWell I'll be damned, someone knows about CoLinux.
- pjc50 7y agoThe WSL2 install command is ( https://docs.microsoft.com/en-us/windows/wsl/wsl2-install https://docs.microsoft.com/en-us/windows/wsl/wsl2-install ) Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform which suggests it's a virtual machine.
- Cu3PO42 7y agoWSL2 is already available in the Windows Insiders Fast Ring. It is, indeed, a VM running on top of HyperV.
- KibbutzDalia 7y agoWSL is not a VM.
- mschuster91 7y agoFirst and foremost, security. Also convenience - no need to mess around with shared folders, NAT-based VM networking, OS updates, user accounts/passwords etc.
- sieabahlpark 7y agoAnyone who is using that old of software through a VM to conduct business is wasting more money maintaining that setup than if they migrated somehow. I don't believe this is a good business strategy.
- mschuster91 7y agoIt's not just for business, it's also relevant for old games fans - and will become ever more important for those of us who refuse to buy the "new" games that require a whole ssd for space, are plagued with drm and bugs and to top it off are pay2win upon paying 40€+.
- sieabahlpark 7y agoBut for those games you don't really need to setup the works of a business layout. Just keep your stuff within the VM no need to share folders.
- deleted 7y ago[deleted]
- cyborgx7 7y agoHilarious. Props to author for not trying to give a reasonable looking motivation for this beyond "It would be funny". That's more than enough.
- lmkg 7y agoPhysics is like sex: sure, it may give some practical results, but that's not why we do it. -Richard Feynman (disputed)
- bambax 7y agoDidn't know that quote but it's amazing how it applies to many things. Fixing something in the house for instance.
- ChrisSD 7y agoBut there is a reasonable motivation. Some old games and some other software often don't run well on modern Windows (or sometimes at all). It can be possible to patch them to work but not always and even this relies on motivated and talented fans.
- davidgerard 7y agoOP here: you and I both know that's an excuse, and the actual reason is "because we can and shouldn't"
- jeroenhd 7y agoThis can be very helpful in the future for playing games with strange 16-bit-mixed-with-32-bit installers that fail to run properly on modern Windows, even 32-bit versions. I hope WSL2 comes out soon. Now that installing wine in Linux on windows is possible, the next step becomes clear. We must compile and run cygwin on wine in Linux on Windows.
- frabert 7y agoExactly. I used a similar approach to install Space Empires III on a Windows 10 x64 machine which would not run its 16bit installer but would run the 32bit game itself just fine.
- julienfr112 7y agoDoes WSL work on wine ?
- std_throwaway 7y agoMaybe by using qemu? (Windows on qemu on Wine on Linux on Windows)
- jeroenhd 7y agoNo. WSL is a part of the NT kernel (part of their modular architecture, quite cool to read about) and can't be replicated with an alternative program loader like Wine. You'd need to run a whole new copy of the kernel to get a second instance of WSL, which can already be done through virtualization.
- makomk 7y agoNope. WSL is basically a reimplementation of the Linux kernel's syscall layer (or at least the original version of it was - WSL 2 is an actual Linux kernel running in a VM). If you do a Linux syscall from within a Wine app it calls into the actual underlying Linux kernel and Wine itself makes heavy use of this within its libraries. WSL on Wine isn't possible and doesn't really make sense. I guess it might be possible to add support for WSL 2 since that's just a VM, but I'm not sure why you'd ever want to since it is just a VM.
- jraph 7y agoI feel like it would be useful to add "(using WSL)" to the title. I admit I would not have opened the link though, had the title spoiled this part of the story, and the article is funny to read. > Running Wine on Windows has been a fever dream of those responding to the siren call of "we do what we must, because we shouldn't" since at least 2004, when someone tried compiling Wine in Cygwin and trashed the registry of the host system. […] > But I want to stress again: this now works trivially. I'm not some sort of mad genius to have done this thing — I only appear to be the first person to admit to it in public.
- davidgerard 7y agoWSL is part of Windows 10, so I didn't feel the title was leaving out something important.
- jraph 7y agoWell, you are right but I expected to find an article speaking about Wine running on native Windows without WSL, which would make it interesting in another way. I would not expect Wine not to run on WSL. What I learned from the article though is that WSL1 does not run 32 bit binaries (and that someone botched their registry trying to run Wine on Windows back in 2004, which I found funny).
- coldpie 7y ago> Well, you are right but I expected to find an article speaking about Wine running on native Windows without WSL While it isn't all of Wine, it is a fairly well-known usecase to build certain Wine modules and run those on Windows. It's been used to support ancient games that depend on certain old quirks that have changed in more recent Windows. It's also used by graphics driver developers, because Wine's implementation works on both Windows and Linux, so they can study differences at the driver level on both platforms.
- nailer 7y agoWSL2 is in beta now if anyone on HN feels like getting 32 bit apps to work.
- jmkni 7y agoAm I correct in thinking WSL2 needs Hyper-V to be enabled? What's the advantage of it versus running Ubuntu in a VM and using putty?
- unicornfinder 7y agoIt's only virtualising the kernel - not the entire OS, so in theory performance should be a lot better.
- giancarlostoro 7y agoThis right here. Plus you can virtualize multiple distros and not eat up all your RAM.
- slacka 7y agoFrom the comments, WSL2 is not needed: The procedure to use 32-bit under WSL-1 is the following: enable i386 architecture install multilibs install qemu-user-static register 32-bit elf magic to be executed through qemu-i386-static: $ sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff' reload binfmt: $ sudo service binfmt-support start and it executes x86 elf on WSL More info on this technique here: https://stackoverflow.com/questions/42120938/exec-format-error-32-bit-executable-windows-subsystem-for-linux https://stackoverflow.com/questions/42120938/exec-format-err...
- amelius 7y agoMicrosoft is known for its outstanding backward compatibility. Will Wine take over that role?
- giancarlostoro 7y agoI think Wine is what solidified this belief even further when we see some elaborate Wine configs out there going on about specific versions of Wine working best with specific programs. The backwards compatibility of Windows is unrivaled at least with Wine. Not sure if ReactOS is a solid exception.
- est31 7y agoThe funniest thing would be Microsoft hiring Wine developers to make programs written for old Windows run on newer versions of it.
- faissaloo 7y agoNo, the funniest thing would Microsoft making Windows 11 a Linux distro with a custom version of WINE running ontop of it so that they need to maintain way fewer parts of their operating system themselves.
- anticensor 7y agoNo, the funniest thing would be Microsoft open sourcing Windows 10 and replacing Linux by a kernel-mode compatible WSL 3.
- davidgerard 7y agoanticipated in 2005 https://www.wired.com/2005/02/microsoft-5/ https://www.wired.com/2005/02/microsoft-5/
- Phenix88be 7y agoCorrect me if I'm wrong, but this is running Wine on Linux on Windows. Not running Wine on Windows.
- kevingadd 7y agoWhen people say 'Linux' in reference to WSL1, it's a Linux Kernel API emulation layer on top of the Windows kernel that ships with Windows. The user-mode stuff on top of that is regular Ubuntu or whatever, but you can argue that Wine is running on Windows, it's just speaking the Linux system call language and using some user-space linux libraries instead of win32 libraries.
- mikekchar 7y agoSo I guess WSL1 is a bit like linux flavoured wine :-)
- Phenix88be 7y ago> When people say 'Linux' in reference to WSL1, it's a Linux Kernel API emulation layer on top of the Windows kernel I have always thought it was some kind of "low level" VM. Based on your comment, it's more like a Frankenstein monster...
- fortran77 7y agoThe Windows kernel is a true micro-kernel, unlike the monolith of Linux, and the Frankenstein mess of Mac "OS". Different API subsystems can run on top of it. There used to be a supported POSIX subsystem.
- amluto 7y agoSince when is Windows a true microkernel? NT 3.51 was a bit micro-ish, but newer versions are mostly monolithic.
- yjftsjthsd-h 7y agoNo, WSL 1 was an actual kernel layer. WSL 2 actually is a real Linux kernel on top of a VM but with some extra bits to integrate nicely with the Windows side of things.
- barking 7y agoSo, like any good geek solution, it doesn't actually solve the user's original problem at all. Brilliant!
- g051051 7y agoThis would be awesome...I have a bunch of old games that broke when I went to 64-bit Windows. Plus, VMware support for older OSes seems to be getting worse, so that's a less and less viable route.
- giancarlostoro 7y agoHave you not tried VirtualBox instead? Never really had many issues with VB. Course it depends on what games too. Windows 10 does have compatability mode as well which can be useful.
- g051051 7y agoI always try VirtualBox if VMware doesn't work. Sometimes that does the trick.
- davidgerard 7y agoOP here! Someone commented with how to make i386 work: https://reddragdiva.dreamwidth.org/607714.html?thread=8317666#cmt8317666 https://reddragdiva.dreamwidth.org/607714.html?thread=831766... not just qemu-user, but telling it the magic numbers for binfmt to work I'll give it a spin when I get home this evening. ENCARTA 97 SHALL RIDE AGAIN, maybe
- avryhof 7y agoLooks like the same procedure from https://stackoverflow.com/questions/42120938/exec-format-error-32-bit-executable-windows-subsystem-for-linux https://stackoverflow.com/questions/42120938/exec-format-err... (second answer)
- davidgerard 7y agoThanks to my anonymous commenter, we have a route to 32-bit: sudo apt install qemu-user-static sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff' sudo service binfmt-support start And now we can do: > fun@DESKTOP-7F6DU8P:~$ wine --version > wine-3.0 (Ubuntu 3.0-1ubuntu1) Encarta 97 doesn't install, though: > fun@DESKTOP-7F6DU8P:/mnt/e$ wine SETUP.EXE > wine: Unhandled page fault on read access to 0xffffffff at address 0x11df:0x00002c11 (thread 0011), starting debugger... > 0011:err:seh:start_debugger Couldn't start debugger ("winedbg --auto 15 108") (2) > Read the Wine Developers Guide on how to set up winedbg or another debugger I'll leave that bit to someone who knows what they're doing.
- davidgerard 7y agooh, and Encarta 97 works flawlessly in Wine 4.13 on Linux and continues to fail in Wine 4.13 on Windows 10 with qemu doing the win32 bits
- TazeTSchnitzel 7y agoIt's a shame WSL will be replaced soon with WSL2, which is a mere virtual machine and not native support for Linux binaries.
- utouq 7y agoLTSC 2019 contains the WSL and is supported until January 9, 2029
- hollerith 7y agoIsn't that short for "Windows 10 Enterprise LTSC 2019"? Am curious how an individual would get access to Windows 10 Enterprise.
- jsjohnst 7y agoOne easy way is to sign up for MSDN.
- yellowapple 7y agoI think that only gives you the 90-day trial versions, no?
- yellowapple 7y agoIf you're not averse to "sailing the high seas", so to speak, the ISOs are readily available online and don't require activation to be fully usable (as long as you're able to tolerate the Windows activation nag watermark and the lack of theme personalization, though I'm sure there are ways to "fix" both of those).
- nyuszika7h 7y agoI'm guessing they will keep WSL1 around for backwards compatibility for some time, currently you can convert installations between WSL1 and WSL2.
- judge2020 7y ago
- papermachete 7y agoAlready done[0] natively - dgvoodoo. Great performance and compatibility, turns Glide, directdraw, DX7-9 to DX11. [0] http://dege.freeweb.hu http://dege.freeweb.hu It's an http-only website, don't be alarmed by warnings.
- merubin75 7y agoThis made me laugh out loud. Sooooo true. "The excuse is 'what about ancient applications that don't run properly in recent Windows.' But you know the real reason is 'I suffered for my art, now it's your turn.'"
- mrleinad 7y agoParaphrasing doctor Malcolm: "Your software developers were so preoccupied on whether they could, they didn't stop and ask if they should"
- davidgerard 7y ago"they asked if they should and went HELL YEAH"
- heelix 7y agoThere are some older apps that just work on WINE and little else. I have an old Garmin GPS simulator used in some of the planes I fly. Would run on XP64, but Window 7+ could not mimic the settings well enough to get it to work even with the compatibility mode set. Ironically, this old bit of software still runs on my Linux box as it does something legacy correctly.
- CivBase 7y agoToo bad Microsoft chose to name their solution "WSL". If they'd have named it Line (Line Is Not an Emulator or LINux Emulator) then we could have called this Wine onLine!
- Noxmiles 7y agoI'm searching for a short TL;DR for the question: WHY? Why should anyone do that? The only reason I see is possibly to use win 98, 2000, XP, ... programs under win 10.
- jamesgeck0 7y agoYep. The easiest way to get some older games working on Windows 10 is already to copy the Wine version of DLL files they rely on into the game directory; this just goes all the way.
- MadVikingGod 7y agoSo with this I think we need to set the bar higher. How does this sound: running Mac on Linux on Windows on a Mac?
- brzezmac 7y agowe need to go deeper ...
- jokoon 7y agoI wish I could play the old spider solitaire, not the new one. The new one is not free and has micro transactions. That's pretty sad. I'm sure it's not even possible to find the old exe. There are js equivalent but none are really worth it.
- NeedMoreTea 7y agoPySol is a free download with spider and about 1,000 other solitaires, including mahjong. My only complaint is the tilesets could be a bit clearer conveying height for mahjong. Surprisingly small too. https://pysolfc.sourceforge.io https://pysolfc.sourceforge.io
- mixmastamyk 7y agoIf MS is now serious about cross-platform compatibility (and they have been moving in that direction), they should consider building a bridge over the filesystem divide as well. One or more of these would be useful: - Shipping a ext4 filesystem driver for Windows. - Contributing to exfat/ntfs drivers for Linux/Mac OS. Both would be even better.
- deleted 7y ago[deleted]
- bootlooped 7y agoAllegedly WSL2 allows you to access things in the WSL file system from plain Windows programs. In 5 minutes of experimenting I could not get a JetBrains IDE to work on a project stored in the WSL filesystem. You can at least use Windows explorer now though. I use WSL just about every day and I'm very optimistic about its future.
- mixmastamyk 7y agoWas writing about filesystem drivers. They're not tied to WSL, but rather improve interoperability.
- hestefisk 7y agoWindows kernels all the way down.