News for hackers. Stuff that matters.
Re:WSL Getting GUI Support by rpastuszak on Saturday September 26, 2020 @09:30AM (#24598679)
A genuine question from someone who hasn’t used windows for a long time: why do this and not just dual boot? What’s the main use case?
Re:WSL Getting GUI Support by hcoura on Saturday September 26, 2020 @09:49AM (#24598843)
Not why instead of dual boot but why wsl for me.

After more than an year trying to get my laptop (very high dpi) and my monitor (high dpi) to have decent fractional scaling on Linux so that I could use both screens while working comfortably. I decided to try wsl and it is pretty much as fast (with my computer/use case), OS just delivers the problem above, so I am sticking with it...

Main cons for me right now are:

* windows updates been too aggressively

* not able to easily create/edit hot keys

Re:WSL Getting GUI Support by d3nj4l on Saturday September 26, 2020 @09:53AM (#24598872)
I really have to agree on the scaling issue. I spent an entire afternoon getting my two displays - one 4k, one 1080p - to scale at different values without having stupid issues, but I just couldn't get them to work. This is on X because I had issues getting Wayland to work (might have been my laptop nVidia 1060's fault, tbh). I can't wait for my issues with Wayland to get fixed, because I've heard the fractional scaling support is much, much better.
Re:WSL Getting GUI Support by adsjhdashkj on Saturday September 26, 2020 @11:02AM (#24599333)
I've been debating Linux vs WSL2 recently and this is exactly the type of issue that has me pausing on embracing Linux Desktop.

I've paid thousands to the Mac ecosystem over the years purely to avoid these problems. I just want the OS to work, and i've literally never had that experience on Linux. I'm sure it's much much better these days than it was the last time i tried, but - everything i hear tells me they still exist to some degree.

4k and 1080p is my exact setup btw haha. I was debating installing PopOS this weekend.

Re:WSL Getting GUI Support by SweetestRug on Saturday September 26, 2020 @11:14AM (#24599408)
If this is an issue, try using Wayland instead of X11. I run PopOS on a similar setup and it works flawlessly under Wayland. Give PopOS a try, you won't be disappointed!

Edit: there was no configuration needed. I selected Wayland from the menu and it just worked right out of the box. No bells and whistles, just a great desktop experience.

Re:WSL Getting GUI Support by d3nj4l on Saturday September 26, 2020 @12:32PM (#24600008)
GGP here - I run Pop (20.04), too, but wayland doesn't work for me. As I've said earlier, it might be because of my laptop GPU.
Re:WSL Getting GUI Support by paulsmal on Saturday September 26, 2020 @06:39PM (#24602730)
it is, once I install nvidia drivers I get no wayland support
Re:WSL Getting GUI Support by adsjhdashkj on Sunday September 27, 2020 @11:13AM (#24607221)
What's the material advantage of Wayland? I've done a tiny bit of research on what it is, but not how it materially provides a better UX to the end users. Thoughts?
Re:WSL Getting GUI Support by adsjhdashkj on Saturday September 26, 2020 @11:15AM (#24599422)
I'll give it a look. Admittedly it doesn't sound attractive, because it sounds like the exact bells and whistles of configuration that i _don't_ want haha.

The longer i'm a software engineer the less energy i have for dealing with my OS, i guess.

Re:WSL Getting GUI Support by stjohnswarts on Saturday September 26, 2020 @11:56AM (#24599713)
I never tried Pop OS, I might look into it as well since it's based off Ubuntu LTS, which I quite like. I'm too old for the rolling releases that change constantly. I've been using Ubuntu and Redhat for a long time now.
Re:WSL Getting GUI Support by stjohnswarts on Saturday September 26, 2020 @11:53AM (#24599691)
It is much better. Run it in a VM for a while and get a feel for it. Pick one of the stable versions like Redhat (Centos) or Ubuntu LTS so that you don't have to worry about constant updates as you would in Manjaro/Arch. And buy linux compatible hardware or system if you plan on using it professionally. A preinstalled machine/laptop is great for that. Dell and Lenovo have several.
Re:WSL Getting GUI Support by adsjhdashkj on Saturday September 26, 2020 @12:20PM (#24599910)
Any recommendation for linux compatible hardware? I'll be building a new machine next year and i'd like to make it work with Linux, so a buying list would be nice.

I know the CPU/Ram/GPU i want, but i imagine most of the trouble is motherboard, since so many features are there.

I'm also curious how my current hardware rates on compatibility.

Re:WSL Getting GUI Support by stjohnswarts on Saturday September 26, 2020 @02:39PM (#24601094)
I've been building my own systems for a while. As long as you don't get the absolute newest motherboards you'll probably be okay. I have never had an issue with Linux and the Asus/MSI boards I've bought. Also like someone else said go with an AMD GPU. On a self build you can always send parts back. But if you get a laptop and it doesn't work with Linux make sure they have a return policy :) . They're much more cantankerous in my experience. That said if you stick with a mainstream Linux like Ubuntu you'll probably be fine with nvidia. I just prefer AMD gpu policies because they open source the driver code. I think both have had issues with Linux in the past, so sometimes you have to try a couple of different versions of the drivers. I tend to be conservative and not always go with bleeding edge. However sometimes that's what works.
Re:WSL Getting GUI Support by d3nj4l on Saturday September 26, 2020 @12:34PM (#24600032)
Go with AMD for graphics for sure! Support is so much better overall than nVidia.
Re:WSL Getting GUI Support by adsjhdashkj on Saturday September 26, 2020 @01:50PM (#24600703)
Interesting, i've heard Nvidia is the way to go. Closed source, yes, but still great drivers. I saw some very concerning behavior from AMD GPUs, like not releasing decent drivers for ages after new cards were released, etc.

I also have an Nvidia right now, so.. hopefully it works great hah. Otherwise i'll be on Windows.

Re:WSL Getting GUI Support by chupasaurus on Saturday September 26, 2020 @09:30PM (#24603496)
tl;dr: AMD - if a particular GPU is supported by your kernel and Mesa versions, it works flawlessly, NVIDIA - way more ifs and randomness.

AMD: check in which kernel version AMD added the support for your GPU, and which Mesa version has feature parity (most of the time it's already there because there weren't any big shifts since Vega, RDNA2 might be that one) and you're good to go on any distro.

NVIDIA: Wayland support isn't there for years and foreseeable future, random issues with driver updates. Supports only 3 distros (Red Hat family, SUSE and Ubuntu without derivatives, I even made a page for devs how to add Debian flavour of it on any deb distro since Mint users were constantly struggling), Debian makes it's own decoupling of blob which works flawlessly but new version might not be there for a month because maintainers aren't there. I still remember that full support for Pascal has landed 6 months after the release.

Re:WSL Getting GUI Support by 3PS on Saturday September 26, 2020 @02:01PM (#24600780)
Not sure if you've already seen this, but I highly recommend AutoHotkey [1] for setting up hotkeys and hotstrings in Windows. It's powerful and flexible, though the language can be a little odd at times. You can even script mouse movements, or create application-specific hotkeys.

[1] https://www.autohotkey.com/

Re:WSL Getting GUI Support by nucleardog on Saturday September 26, 2020 @10:40PM (#24603781)
I don't use WSL but I use a Linux VM that I just RDP into.

I run Windows on my personal computer, and just have a Debian VM I use for work.

When it's time to work, I just click an RDP shortcut and 3/5 monitors turn into work monitors. I still have easy access to my Windows stuff on the other two for the non-work related stuff I keep open all day (Spotify, Discord, etc).

When work is done, I just close the RDP session. All my work stuff stays open. I don't need to worry about saving any state, or restoring it the next day when I start work.

Also completely obviates any sort of driver or hardware issues. Stuff that's simple on Windows (e.g., using any of the multitude of USB/thunderbolt laptop docks) is just a friggin' nightmare on Linux.

Re:WSL Getting GUI Support by zmmmmm on Saturday September 26, 2020 @05:30PM (#24602307)
The main use case for me, simplistically, is I still don't have an equivalent to Microsoft Word that I can run in Linux and that is still the standard for business / office applications. So I need a Windows desktop I can access ad hoc throughout the day interactively as I am doing things. Rebooting to do so would be prohibitively time consuming.

Of course, this is terrible, but it is what it is for now. The online office apps are slowly creeping towards viability but they are still a long way short. When (if) they get there I might be able to change this.

Re:WSL Getting GUI Support by Santosh83 on Saturday September 26, 2020 @09:32AM (#24598686)
To use both systems simultaneously? Dual boot is either one or the other, and even then, adds considerable friction. Many Linux distributions don't support secure boot. Sometimes Windows updates overwrites the Linux bootloader.
Re:WSL Getting GUI Support by efreak on Saturday September 26, 2020 @09:55PM (#24603582)
There's ways to have the windows boot loader do it, but unless something's changed that really means the windows boot loader reboots the computer. EasyBCD[0] can do this, but only on an mbr partition with bios boot, not on gpt/UEFI boot. Loading the windows boot loader from grub works better.

0: http://neosmart.net/dl.php?id=1

Re:WSL Getting GUI Support by chadash on Saturday September 26, 2020 @10:31PM (#24603743)
I generally prefer linux, but need windows for work related stuff (excel and visual studio). I have a full version of linux installed for duel-boot purposes and I still use it a bit, but WSL is getting better and better to the point where it's hardly worth it to have two OS's installed. It takes up space; it means that I have two dev environments to keep in sync with each-other; and restarting my computer to get from one to the other is a hassle. On my next computer, I might not bother installing two OS's and just stick with windows/WSL.
Re:WSL Getting GUI Support by stjohnswarts on Saturday September 26, 2020 @11:50AM (#24599667)
Why dual boot when you can do your linux work and windows work on the same machine? Imagine you write a lot of python code that has to work on both linux and windows. You want to dual boot for that? Sure for the final set of tests you would run on pure Linux but for day to day development WSL is a fine substitute.
Re:WSL Getting GUI Support by grandinj on Saturday September 26, 2020 @09:34AM (#24598717)
Until recently I was booting into Windows and then remote deskoping into Linux. But Wayland has broken that functionality so badly I have just given up on Linux. When WSL gets this update that will mean I can do development on Linux again for the cross-platform GUI I like tinkering on (LibreOffice).
Re:WSL Getting GUI Support by neodymiumphish on Saturday September 26, 2020 @09:59AM (#24598909)
Try out X410 from the Microsoft store! It shows for a really simple x server interface with WSL.
Re:WSL Getting GUI Support by barrkel on Saturday September 26, 2020 @05:27PM (#24602288)
Because rebooting kills all your running applications.
Re:WSL Getting GUI Support by recursive on Saturday September 26, 2020 @10:34AM (#24599144)
Because then you'd have to set up dual boot.
Re:WSL Getting GUI Support by efreak on Saturday September 26, 2020 @09:46PM (#24603550)
If you're dual-booting, you can go one better and virtualize your Linux distro in the windows environment. It works fairly well, the only problem is making the disk available for both types of uses; virtualbox has the ability to use a disk partition, but for hyper-v or other, you may need to work around it by mounting a disk image. (Doing something like this is really only useful if you have to actually boot windows natively for gpu acceleration or other reasons)
Re:WSL Getting GUI Support by tyingq on Saturday September 26, 2020 @10:16AM (#24599025)
It's handy for those of us that use Linux, but also need to use things like Adobe tools, Visio, a decent Outlook client, etc.
Re:WSL Getting GUI Support by 20thCB on Saturday September 26, 2020 @09:38PM (#24603519)
Dual boot takes way too much time. WSL2 literally fires up instantly and then you have an actual Linux VM running actual Ubuntu or whatever. Just no GUI. You can then use Visual Studio Code (the Windows app) to develop for Linux or Windows. If you do Linux GUI work it's obviously not ideal.
Re:WSL Getting GUI Support by jpalomaki on Saturday September 26, 2020 @10:14AM (#24599015)
Main use case for WSL is to use Windows desktop and run Linux based development tools. Many tools are mostly developed/used on Linux and Windows support can be lacking.

This enables also using Linux based IDEs and other graphical tools (could be for example some command line tool popping up image viewer) or browser.

Re:WSL Getting GUI Support by ninjis on Saturday September 26, 2020 @09:38AM (#24598745)
Develop in Visual Studio and debug your code (with the VS debugger attached) in a Linux environment.
Re:WSL Getting GUI Support by adsjhdashkj on Saturday September 26, 2020 @01:53PM (#24600731)
For me, the draw is Linux without problems using my montiors, GPUs, Bluetooth, USB, etcetc.

Which is litaraly the same reason i use(d) Mac, but am now looking to move away from. Mac has too many problems, so i may as well move on.

Re:WSL Getting GUI Support by the__alchemist on Saturday September 26, 2020 @10:43AM (#24599203)
You need to close all your programs and wait whenever you swap.
Re:WSL Getting GUI Support by maple3142 on Saturday September 26, 2020 @09:40AM (#24598766)
I use WSL over dual boot just because dual boot takes time, and it is more easier to share files between Windows and WSL.
Re:WSL Getting GUI Support by bluedevil2k on Saturday September 26, 2020 @10:16AM (#24599027)
Docker only runs on WSL
Re:WSL Getting GUI Support by efreak on Saturday September 26, 2020 @09:58PM (#24603600)
Docker is available for Windows and does not require WSL. Docker options include[0]:

> Linux containers in WSL 2 mode, Linux containers in Hyper-V mode, or Windows containers.

0: https://docs.docker.com/docker-for-windows/