Live data from Hacker News

Bash on Ubuntu on Windows

blogs.msdn.microsoft.com

91–100 of 434 posts

Re: Bash on Ubuntu on Windows

#91
post #39
post #16

So 2016 is _finally_ the year of Linux on the Desktop?

This brings many of the parts that make up Ubuntu to Windows, but the Linux kernel isn't one of them. That being said, I'm typing this comment my workstation running Linux and I for one am getting very tired of this year of the Linux desktop joke. What OS you run is an individual choice, stop trying to declare a single winner.

>> I for one am getting very tired of this year of the Linux desktop joke

You != masses.

There might not be a clear single winner, but there is a clear single loser. Statistically speaking.

Re: Bash on Ubuntu on Windows

#92
post #28
post #20

Earlier quoted context omitted.

Can I use Docker?

I would be shocked. As I mentioned above, I wouldn't expect wireshark to run either. From what we gathered so far, this is a syscall translation layer and > No new system calls are added for cgroups - all support for querying and modifying cgroups is via this cgroup file system. Per https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.t...

No cgroups = no systemd.

Windows: a better linux than linux.

Re: Bash on Ubuntu on Windows

#93
Can anyone comment to how nice or awful running some sort of Linux VM (maybe under Hyper-V) and using Putty to SSH to it for development on Windows would be? This work is promising, but doesn't appear "quite there", yet. I run OSX now, but don't really ever develop directly on the machine and am mostly SSH'ed to Linux hosts for development.

Re: Bash on Ubuntu on Windows

#94

Will this be enabled by default ? The ability to do 'curl some-site.com | bash' or ssh 'curl some-site.com | bash' without having to worry about platform compatibility would be amazing.

I doubt it, and part of me hopes not. This seems like a new possible vector for malware.

Microsoft went to great lengths to disallow these kind of one-liners in PowerShell (you need to explicitly add -executionpolicy bypass to even run a script), so apparently they are concerned about users executing random scripts off the net.

OTOH, yes, being able to assume bash on a user's installation would be amazing of course...

Re: Bash on Ubuntu on Windows

#95
post #47

I do not get the hate. This is superb

Many (including me) feel that this is just the start of a new EEE cycle by a panicked Microsoft, and will be killed off by Microsoft once they managed to reverse their current downward trend – just like other supposedly community-/interoperability friendly projects before, e.g. this project's direct predecessor SFU.

Re: Bash on Ubuntu on Windows

#96
post #89

Will this be enabled by default ? The ability to do 'curl some-site.com | bash' or ssh 'curl some-site.com | bash' without having to worry about platform compatibility would be amazing.

Why would you ever want to do 'curl please-pwn-my-computer-so-hard | bash'?

maybe he's actually curling https://please-pwn-my-computer-so-hard.own-domain.com/script... ?

Re: Bash on Ubuntu on Windows

#97
post #89

Will this be enabled by default ? The ability to do 'curl some-site.com | bash' or ssh 'curl some-site.com | bash' without having to worry about platform compatibility would be amazing.

Why would you ever want to do 'curl please-pwn-my-computer-so-hard | bash'?

Same reason you want to `brew please-pwn-my-computer-so-hard` or `apt-get please-pwn-my-computer-so-hard` or `please-pwn-my-computer-so-hard.exe`.

There's little practical distinction between piping a shell script from a random site or downloading a binary from it.

Re: Bash on Ubuntu on Windows

#99
post #43

Earlier quoted context omitted.

Command prompt should run the windows version and bash should run the linux version. Why would there be an issue here?

So will the bash prompt not see any tools like windows python in the windows system path? That seems like an odd decision if so.

You will find windows executables mounted just like the rest of the windows file system, so in bash you can find /mnt/c/windows/notepad.exe but you can't execute it from the bash subsystem (I presume).

The opposite is also true: the linux subsystem files are mounted under a regular directory in windows, so you can see all the files but from the normal windows subsystem you can't execute the linux binaries.

It means there is a big wall between the two systems, and you can't really automate windows things with bash instead of PS if you wanted. At this point though I find that to be a benefit - It would be fantastically confusing if you typed "find" or "python" and had to wonder whether a linux program or a windows program would actually execute.

Re: Bash on Ubuntu on Windows

#100

They sure seem to deliver. Unfortunately I am not a windows insider. I will probably wait until the anniversary update. I guess this bash on ubuntu on windows won't be available for Windows 7?

https://insider.windows.com/ — Becoming an insider is just a registration away, takes no longer than 5 minutes.

Use preview builds at your own risk, though.

Post reply on HN