3 ms·
Can't access usb hardware. I do a lot of things that use usb rs232 adapters or things that look like them, and I support both linux and mac effortlessly (and e
by Brian_K_White 5y ago
Can't access usb hardware.
I do a lot of things that use usb rs232 adapters or things that look like them, and I support both linux and mac effortlessly (and even freebsd and any other unix) and none of it is possible under wsl2.
If all you want to do is write web services, there are native windows versions of all the scripting languages and web frameworks.
If you have some reason to actually use linux, then just use it. It's free and well-documented. Nothing's stopping you.
If MS actually cared about supporting developers, then they would provide a 1st class form of Wine, so that windows apps could be run from within linux.
Since they don't do that, this exposes that they don't actually care what would be convenient for you, and so, you should decline to work with people who don't work with you. That's how you can see through bullshit.
You should reject their products and sales pitches until their behaviour actually changes, and disregard all the lip service, "gifts" with strings, and excuses for dark patterns. Use their stuff when you must, but under duress and seeking other options at every turn.
- watermelon0 5y agoRegarding the USB hardware access, you can use USB-over-network solutions, to share devices with WSL2 VM. I've had good experience with https://www.virtualhere.com/usb_client_software https://www.virtualhere.com/usb_client_software.
- Brian_K_White 5y agoAttaching a small computer running some other code besides wsl2, is not an answer to the charge that wsl2 can't access usb. It still isn't accessing usb. The code on the usb server device is. That's not semantics. What I mea is: For any low level code of my own that I wrote to run on *ix, I can just as easily run that same code on an arduino or pi, and wsl2 and the usb server hardware would just be pointless extras. For any code that I didn't write and can't port (say, closed source xilinx fpga programmer) there are native windows versions which work better and are better supported than the linux version anway. So here too wsl and usb server harware would both be pointless extras and backwards. People are bamboozled and forgetting to step back and remember what the point of doing something even was in the first place. I say it's a mistake to even get sucked in to the question of how to work around any deficiency in wsl, instead of asking why you even care or want to run a linux app on windows in the first place.
- watermelon0 5y agoMost people prefer Windows over Linux, even if they work on software that is deployed to Linux, or maybe they just have a single Linux application that they need. In my experience, there are a lot of tools that are easier to use on Linux, or are Linux-only, without a proper Windows alternative. WSL(g) allows seamless experience for running such apps, with some caveats (such as USB access.)