News for hackers. Stuff that matters.
Re:Microsoft Adds an OpenSSH Client to Windows 10 by rsync on Tuesday December 12, 2017 @12:31PM (#15907483)
"Now that Windows has this, switching back is something that I'm giving serious consideration to."

It's not clear to me that Windows has this ...

I, like you, adopted the MacOS ecosystem because it was UNIX underneath ... but there's a big difference between underneath and alongside.

Although it is not commonly done, you can control and interact with your OSX system with UNIX commands ... there's one single filesystem namespace and you can interact with it from the command prompt as well as kill GUI apps or set preferences or ifconfig, etc.

It's my understanding that the Ubuntu subsystem in recent windows is sort of a parallel environment ... but is not meant to control the system directly or as an alternate path of interaction with Windows, correct ?

Re:Microsoft Adds an OpenSSH Client to Windows 10 by Mister_Snuggles on Tuesday December 12, 2017 @12:51PM (#15907723)
Alongside is an apt description. It feels a bit like running Linux in a Docker container.

The Windows Subsystem for Linux (WSL) has it's own directory in the Windows filesystem that corresponds to /. It's uses some NTFS magic to store the Linux file attributes that don't directly correspond to NTFS file attributes.

It also, within the Linux environment, mounts your host drives under /mnt.

For what I generally use the OSX terminal for, WSL probably hits about 80-90% of my use cases. A lot of lower level utilities have weird issues - e.g., 'ip addr' seems to present the Windows network interfaces as though they were typical Linux ones, 'ss -a' gives a bunch of netlink errors, dmesg says "dmesg: read kernel buffer failed: Function not implemented", 'tcpdump' doesn't work, etc. On the other hand, curl, scp, ssh, etc do exactly what you'd expect.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by mjevans on Tuesday December 12, 2017 @05:55PM (#15910258)
My limited experience with WSL gave me the impression that anything that needed /low level/ packet constructs either wasn't mapped correctly or might have required administrative privilege blessing on the Windows side of the environment ACLs.

I hope that these get filled out, at least with more constructive error returns, at some later date.

For now, I'm happy that they have enough of the low hanging fruit ripened sufficiently to make it possible to do 'normal' things from within WSL. I'd honestly rather they make the local (and network) filesystem more performant and robust; maybe they have.

My use case for WSL is coming around in the calendar year again so I'll be revisiting it soon.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by gshulegaard on Tuesday December 12, 2017 @12:39PM (#15907587)
> It's my understanding that the Ubuntu subsystem in recent windows is sort of a parallel environment ... but is not meant to control the system directly or as an alternate path of interaction with Windows, correct ?

I am not so sure about this. I think Dustin Kirkland sheds some more light here:

http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.htm...

And he seems to be relatively excited about it so he benched it more recently:

https://www.linux.com/learn/howdy-ubuntu-windows-how-fast-it

It seems more like an inverse Wine than a parallel environment.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by Joeri on Tuesday December 12, 2017 @02:13PM (#15908491)
The windows drives are mounted as /mnt/c, /mnt/d, etc...

You can call executables in both directions, even use windows executables in a bash script and pipe its output to awk.

https://docs.microsoft.com/nl-be/windows/wsl/interop#invokin...

Re:Microsoft Adds an OpenSSH Client to Windows 10 by ChuckMcM on Tuesday December 12, 2017 @02:32PM (#15908694)
One of the interesting things is that if Linux developed support for NTFS ACLs you could probably make it pretty seamless. One of the more convoluted parts of the NetApp filer code was the code that allowed for 'mixed' UNIX and CIFS volumes.
Re:Microsoft Adds an OpenSSH Client to Windows 10 by scooley on Tuesday December 12, 2017 @04:26PM (#15909637)
We're working on improving integration between Windows and Linux distros on WSL. Stay tuned for progress. The release notes on the WSL doc site [1] are basically our changelog. Highly recommended for the latest updates.

[1] https://docs.microsoft.com/en-us/windows/wsl/release-notes

Full disclosure, I work at Microsoft on WSL.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by FussyZeus on Tuesday December 12, 2017 @03:58PM (#15909400)
To be completely fair to both sides though, the ability to tweak MacOS from terminal has always felt like it was opposed by Apple. They don't seem to support it officially in any capacity, and in many respects, actively fight it (i.e. changing the preference keys in every single release of MacOS, for literally no reason).

You can do some things to and with MacOS from CLI. Honestly though, it's all stuff I wouldn't miss awfully.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by slededit on Tuesday December 12, 2017 @02:39PM (#15908756)
In the early days there was less interaction but it's getting pretty seamless now.

It's the same kernel underneath so it's not really two parallel systems.

Re:Microsoft Adds an OpenSSH Client to Windows 10 by rmwaite on Sunday December 17, 2017 @01:40AM (#15944535)
macOS is Unix. That's the big difference for me.