News for hackers. Stuff that matters.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by filereaper on Saturday October 09, 2021 @04:35PM (#28813048)
I had to get a coworker set up under WSL because of a goofup with IT and instead of shipping a Mac this coworker ended up with a Windows machine and all of our tooling was Unix based.

I had had them setup with WSL as a way of moving forward, here's a few things I noticed:

- different home directories, the different distros are accessed as network shares. It can get confusing where "Home" is unless you explicitly stumble a few times and verify always where files are.

- Issues with CR/LF. You need to be careful using native windows tooling and having saved files in Windows line endings vs Unix. For non-savvy users the content looks correct but on Unix the tooling will fail in weird ways.

- Visual Studio Code integration was actually excellent, my coworker ended up using VS Code to do Filesystem operations more so than using Windows Explorer.

- The new Windows Terminal is fantastic, hopefully its bundled with Win 11.

I'm really grateful for the technical capabilities that WSL brings out. I hope the dev teams are focused on fixing the subtle UX issues that trip up users.

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by tyingq on Saturday October 09, 2021 @08:42PM (#28814728)
Also BOM marks, which Powershell loves to output. Took a while for me to figure out what was putting 2 extra bytes into files.

Edit: 3 bytes, not 2 (thanks!)

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by metaphor on Sunday October 10, 2021 @05:34AM (#28817071)
If you think that's fun, just wait until you encounter the clowns who copy-paste random shit directly out of Word docs containing C1 control codes mascarading as "smart quotes" into your UTF-8 source.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by GordonS on Sunday October 10, 2021 @05:47AM (#28817120)
I've done that before, but copying from web pages that have randomly used smart quotes (or whatever they are actually called) in command line samples.

Very annoying!

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by ploxiln on Saturday October 09, 2021 @09:47PM (#28815064)
The useless utf-8 BOM is 3 bytes ... were you also getting utf-16 encoded text?
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by barosl on Sunday October 10, 2021 @02:15AM (#28816199)
The UTF-8 BOM still has some uses, unfortunately. I had to convince Excel to parse a CSV file as UTF-8 and inserting a BOM at the beginning of the file was the easiest solution.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by ChrisSD on Sunday October 10, 2021 @04:54AM (#28816890)
Powershell has stopped doing that in that newer version. I think since 6 or 7. On Windows 10 you do have to install it separately though.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by fartcannon on Saturday October 09, 2021 @04:43PM (#28813114)
You needed a unix, so you tried WSL? You would have been much better served by Linux.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by tehbeard on Saturday October 09, 2021 @06:27PM (#28813900)
> a goofup with IT and instead of shipping a Mac this coworker ended up with a Windows machine

That kinda implies this isn't a small shop, so "breaking" a windows machine IT provisioned to put Linux onto it might be out of the question, both in terms of requisition, access to the UEFI, or even network configuration.

Or said coworker is more familiar with Mac/Windows than <Insert Linux Distro and particular window manager here>, so this is best of a bad situation.

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by gerdesj on Saturday October 09, 2021 @07:14PM (#28814201)
You can secure boot Linux with UEFI. For a laugh I do it on my Arch lappie but my Home Assistant Debians do it out of the box and so do my Ubuntu LTS servers. I gather that SuSE does too and probably many others.

You can domain join via Winbind or SSSD. Exchange via Evolution or Kmail and other work arounds exist. TPM 2.0 has been supported for quite a while so all good for encryption and other attestation tasks. We have rather a lot of host based firewalls (sore point 8) but it looks like the latest effort might stick for a while longer than the past ones.

...

Oh, you use that ... vendor ... SSL VPN. OK, can't do that and that's generally where it falls apart. We do have several.

I can and do operate solely on Linux but I have the benefit of owning the company. Some of my customers insist on their gear/setup for their environment and that's fine: they get to buy it too.

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by eightysixfour on Saturday October 09, 2021 @10:07PM (#28815161)
Most business IT over a few hundred employees looks nothing like this. They’re going to be managed laptops with locked UEFI and, if you got past that, you or your manager would get a call from IT asking you why it isn’t showing up in the management system anymore and to ship it back for a restore.

At a larger enterprise organization (that isn’t tech/FAANG) it could be considered a fireable offense.

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by kyriakos on Sunday October 10, 2021 @12:54AM (#28815849)
It's extremely frustrating that IT policy in large corporations is the same for say clerical stuff and software engineering. Down to buying the same hardware for ease of management when it makes no sense because of the use cases being so different.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by eightysixfour on Sunday October 10, 2021 @08:32PM (#28823284)
Most of the places I have been at least separated out the hardware for different use cases.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by weikju on Saturday October 09, 2021 @08:56PM (#28814805)
You'll be stopped long before SSL VPN. Right about the "you're running an unsupported/unauthorized OS on your company-owned laptop, send it back so we can restore to Windows"
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by darthrupert on Sunday October 10, 2021 @02:03AM (#28816144)
And then you send the laptop and your two week notice. People seem to forget or not take advantage of the employees' market that's been going on for several years in this field.

Use it to make the world a better place.

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by pjmlp on Sunday October 10, 2021 @04:17AM (#28816721)
People seem to forget there is this thing called offshoring when employees get too picky, and that's been going on for several years in this field.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by tfigment on Saturday October 09, 2021 @07:43PM (#28814363)
I think they meant bios/uefi is locked out by IT. That is case for me. Also TPM is only available on some distros. You can use linux as long as it is Ubuntu or RedHat and maybe Arch if you are lucky.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by tehbeard on Sunday October 10, 2021 @03:33AM (#28816520)
You entirely missed the point.

From the original comment, it's likely an IT department, meaning a large org, meaning slow changing policies in place about how the machines are setup, often in order to meet even slower changed compliance laws.

Your seven different "vendors" solution to bodge domains/outlook wouldn't be supported by IT, which is a problem when then machine breaks or an audit happens...

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by phendrenad2 on Sunday October 10, 2021 @02:23AM (#28816229)
Sadly, corporate IT usually mandates Mac/Windows, so nuking it and installing Linux is probably a no-go.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by cerved on Sunday October 10, 2021 @02:48AM (#28816332)
yes, and it's imperative you have HP Wolf Security installed!
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by smileybarry on Sunday October 10, 2021 @04:49AM (#28816865)
> - The new Windows Terminal is fantastic, hopefully its bundled with Win 11.

It is, and it's even the default prompt in the Win+X menu

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by zz865 on Saturday October 09, 2021 @11:11PM (#28815427)
> Issues with CR/LF.

Is this still really a thing? even notepad can handle LF. I guess the default could still be crlf for some apps.

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by Mogzol on Sunday October 10, 2021 @01:36AM (#28816029)
I think one of the main problems is that when you install git for windows, the default setting is to convert LF to CRLF when checking out code. This can cause a bunch of issues if you later try to work with those files within WSL (especially when doing any git-related stuff). I don't really understand why that's the default, or even why it's presented as an option during installation, it's been ages since I actually had issues reading/editing Unix-style files in Windows.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by mey on Sunday October 10, 2021 @01:48AM (#28816076)
It is insane to me that git doesn't checkout/in as-is by default on Windows.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by fiddlerwoaroof on Sunday October 10, 2021 @02:04AM (#28816148)
The biggest gotcha on Mac is using git on the default case-insensitive volume. I always create a separate case-sensitive APFS volume for all my git repos to avoid subtle mismatches between the filename git knows about and the filename macOS knows.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by cerved on Sunday October 10, 2021 @02:54AM (#28816362)
because of crap like notepad
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by stinos on Sunday October 10, 2021 @03:26AM (#28816486)
I always wondered. Source?
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by cerved on Sunday October 10, 2021 @03:49AM (#28816603)
notepad is the default text editor in windows, it doesn't support Unix line endings until insider build whatever
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by zz865 on Sunday October 10, 2021 @09:30AM (#28818270)
Notepad changed 3 years ago so now this isn't a problem. Git should default everything to LF. https://devblogs.microsoft.com/commandline/extended-eol-in-n...
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by cerved on Sunday October 10, 2021 @11:09AM (#28818997)
that's a Windows 10 insider build, git for windows presumably wants to be more backwards compatible

just change it to input and be happy

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by Mogzol on Sunday October 10, 2021 @04:28PM (#28821677)
The new notepad version was released to non-insiders in Windows 10 1809, so it's still been around for almost 3 years now. I do understand that git wants to maintain the best compatibility, but at this point I would argue that converting to CRLF on checkout is causing more issues than it solves.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by stinos on Sunday October 10, 2021 @06:12AM (#28817229)
Sure, but is that really the reason why autocrlf is the default in git?
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by cerved on Sunday October 10, 2021 @11:07AM (#28818985)
it's the default in git-for-windows

I see no other reason that maximum platform compatibility

Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by stinos on Monday October 11, 2021 @02:12AM (#28825295)
Would be weird if platfrom compatibility is measured by making sure once single program works, a program which most of the people using git probably don't even use
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by int_19h on Monday October 11, 2021 @07:47PM (#28834382)
It's usually the other way around these days - most Windows apps can handle LF just fine, but Unix apps often cannot handle CR LF. So if you use Windows to generate a text file, things break when you try to use it from WSL.
Re:Part of Windows 11 is a revamped Windows Subsystem for Linux by Notanothertoo on Saturday October 09, 2021 @11:32PM (#28815518)
I would not work until you got me a Mac. This poor soul.