by pjungwir · 8y ago · 0 comments
It comes with bash and all the standard tools (including ssh IIRC), so I can work on a real command line. Especially as a vi user, I'm right at home.
I find this a lot easier to manage than Cygwin: a lighter install, no packages to select, and smoother integration.
When I bought my first Mac, back in the days of MacOS 10.2, I did so because of the BSD system underneath. Having a Unix system, whether its GNU or BSD, gives me access to tools that I'm familiar with and sometimes prefer to their GUI counterparts (e.g., scp/sftp vs FileZilla).
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 ?
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.
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.
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...
You can do some things to and with MacOS from CLI. Honestly though, it's all stuff I wouldn't miss awfully.
It's the same kernel underneath so it's not really two parallel systems.
For Xming, simply set DISPLAY in shell and local GUI programs just work, as well as SSH X forwarding.
[1] https://github.com/mintty/wsltty
[2] https://sourceforge.net/projects/xming/
(EDIT: typo)
I'm on a Dell XPS 15 9560 if that matters.
It does as I've had no issues personally on as self-built desktop, an ASUS laptop, a MacBook running Bootcamp, and now a Surface Laptop.
There are also some systems where kernel support for the devices is lagging, either because they are proprietary and poorly documented or because they have insufficient market penetration to get someone interested in writing good driver support. For example support for the pen on the Surface Pro 4 line is really horrible (IMHO) on Linux.
If that's true, will those new drivers also work on a regular non-Windows Linux install? That would be really great news, and pretty ironic, if device manufacturers or even Microsoft itself were suddenly writing more/better drivers for the Linux kernel. :-)
Next up is to try running something more taxing, and then look into GPU access from within it.
I'm looking forward to them developing the subsystem further.
There's still a place for windows native tools.
I like PuTTY, and have used it a lot, but MobaXterm has been great.
I wish Cygwin performed better on Windows, git operations on Linux take minutes on Windows because it has to spin up the whole cygwin environment. This kind of still makes me want to use Linux, but MobaXTerm makes my Windows desktop very usable for administration.
MobaXterm is nice, but I don't like how heavy it is...
[1] https://gingter.org/2016/11/16/running-windows-10-ubuntu-bas...
Great wiki about set up and use here: https://github.com/msys2/msys2/wiki
However in the current version of MSYS2 (after an update a few months ago) they suddenly seem to mix the different linux-like distributions and for me it's really hard to choose which shell to use and which package to install for that shell.
Plus, the real reason you get Putty or SecureCRT if you’re lucky, is because they are actually terminal emulators and not a DOS shell.
Sorry I don’t find Mona compelling at all.
I used to use Cygwin but it became a pain to manage the packages and it couldn't update it's own setup.exe last I checked.
I recently tried out WSL and I still run into problems with the file system. My home directory is in a new place which is kind of annoying. And cloning a repo with Git changed all the line endings. autocrlf didn't do anything for me either.
Back to good ol' git.exe
I still can't run those command under Windows Subsystem for Linux.
The powershell's syntax is just too esoteric for me. I did tried that a few times.