Live data from Hacker News

Bash on Ubuntu on Windows

blogs.msdn.microsoft.com

111–120 of 434 posts

Re: Bash on Ubuntu on Windows

#111

Man i do think this is a big step for windows , it's 2016 and still complex to pull a du -sh or df on windows. Things we take for granted on *nixes. Much love.

According to http://stackoverflow.com/a/868290/259130

    function directory-summary($dir=".") { 
      get-childitem $dir | 
        % { $f = $_ ; 
            get-childitem -r $_.FullName | 
               measure-object -property length -sum | 
                 select @{Name="Name";Expression={$f}},Sum}
    }
I could get a shorter non exact version if I was on windows.

Re: Bash on Ubuntu on Windows

#112
post #45
post #41

Earlier quoted context omitted.

I'm using it on my tablet instead of previously using a VMWare image and msys+mingw+cygwin. The main advantage over a VM is no resource partitioning: on a 4GB RAM tablet with 64GB eMMC, you can't allocate more than 2GB RAM to a VM without trouble, and putting 20GB of disk aside for it is also a pain., and much improved power efficiency (even an idle VM drastically reduces battery life, while Ubuntu for Windows doesn'…

since you are already up and running may I ask what friends have been asking me? Can you apt-get install zsh ?

Doesn't look like zsh is fully working yet:

root@localhost:~# zsh compaudit:105: wait failed: invalid argument compdef:95: wait failed: invalid argument localhost# exit zsh: you have running jobs. localhost#

Will have to try again after the next build.

Re: Bash on Ubuntu on Windows

#114

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..…

> 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.

Yes and I fucking hate it, way to cut of useful functionality at the knees.

Re: Bash on Ubuntu on Windows

#116
post #111

Man i do think this is a big step for windows , it's 2016 and still complex to pull a du -sh or df on windows. Things we take for granted on *nixes. Much love.

According to http://stackoverflow.com/a/868290/259130 function directory-summary($dir=".") { get-childitem $dir | % { $f = $_ ; get-childitem -r $_.FullName | measure-object -property length -sum | select @{Name="Name";Expression={$f}},Sum} } I could get a shorter non exact version if I was on windows.

that's almost as easy as just typing "du -sh"

Re: Bash on Ubuntu on Windows

#117
post #24

Earlier quoted context omitted.

I guess you prefer experiment, excite, extinguish, by Google.

Which Microsoft loves to do just as much – XNA, Silverlight, TxF, …

Maybe, personally I look at some of those as transient technologies, MS usually provides a migration path, as painful that might be, to better solutions.

Re: Bash on Ubuntu on Windows

#118
post #43

Earlier quoted context omitted.

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 t…

I wonder how hard it would be to implement PowerShell Remoting for this environment

Re: Bash on Ubuntu on Windows

#119
post #80

Smart move by Windows. I guess that developer usage of an OS ultimately results in developer developments for the OS, though I don't have any number for this. It seems to me that a lot of developers, especially at startups, have switched to OS X with its shiny GUI and UNIX compatibility. I'd hazard the guess that this will ultimately result in OS X becoming more of a developer target over time. Initially for develope…

Is it that smart? Being developer friendly sounds like just plain common-sense, not some genius breakthrough. The question should be more why has it taken them so long to get to this point.

Re: Bash on Ubuntu on Windows

#120
post #7

What a time to be alive! I'm holding out on upgrading to Win10 until I buy a new PC since my 7 -> 10 upgrade ties to hardware, but I hope to have that done by the end of next month. I can't wait to try this out. edit: Specifically, I want to understand to what extent - if any - will it allow some of the horror problems you have working with certain Python libraries (compiling Numpy on Windows is like pulling teeth) t…

It's already a thing of the past. Since numpy & co got packaged as binaries in .whl wheels, you can just pip install them on windows.

You have to find the .whls though, you can't compile from source. That's fine, but it's a second class solution.

Moreover, getting stuff like OpenCV to work is a pain, and I find that the deep learning packages (e.g.: theano) get even worse.

Post reply on HN