Live data from Hacker News

Bash on Ubuntu on Windows

blogs.msdn.microsoft.com

181–190 of 434 posts

Re: Bash on Ubuntu on Windows

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

Microsoft provides a du implementation in sysinternals stuff, but you have to install it and I think even accept a licence in a graphical window the first time you launch it...

They have neglected the CLI for years and powershell while I guess it has its uses for scripting is light years behind *nix stuff as an interactive shell.

Re: Bash on Ubuntu on Windows

#182
post #139
post #95

Earlier quoted context omitted.

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.

And the problem with that is what ? You are afraid that you might like it. You migrate and they will kill the project ? If yes then...well...same can happen to any kind of software / project

> You migrate and they will kill the project ?

Everyone migrates, draining valuable developer resources from projects like cygwin, mingw and colinux and others. When Microsoft kills it, they will have killed off not only their project, but also the community projects that could replace it.

Meanwhile, because the NT kernel has vastly different performance characteristics (e.g., bad forking performance), we're going to see an increase of "Linux/NT" optimized software that will perform poorly on native Linux kernels, pressuring more developers (and ops) to buy into Microsoft's effectively proprietary solution, completing a vendor lock-in that will continue to bleed the industry long after it stopped being beneficial (see also, every other instance of vendor lock-in ever).

Re: Bash on Ubuntu on Windows

#183
post #101

Earlier quoted context omitted.

Asus Zenbook UX305 series - they are well priced and run both Linux and Windows fantastically.

But battery life is only 6 hours[0]. For the new macbook it is 10 hours[1], the same for the macbook air 13'[2]. I'm aware not all reviews is equal, so pointing out errors or adding better resources would be appreciated. [0]: http://www.techradar.com/reviews/pc-mac/laptops-portable-pcs... [1]: http://www.trustedreviews.com/12-inch-macbook-2015-review-ba... [2]: http://www.notebookcheck.net/Apple-MacBook-Air-13-2015-N…

I get 9-10 hours on Linux with the UX305FA model (pre-Skylake fanless CoreM, i.e. MBA competitor). Not sure about the UX305LA model (i5/i7, i.e. MBP competitor).

Re: Bash on Ubuntu on Windows

#185
post #141

I have to say after the initial excitement, I'm a bit disappointed about how this is implemented. Apparently, there is no or little interaction between the Linux world and the Windows world in this system. I don't see the benefits over running a classical Linux-as-a-process like coLinux, or something like Cygwin or MinGW. The option to run unmodified executables is nice if you have closed-source linux binaries, but t…

Mapping the processes across implies all sorts of strange things - what happens if you try to send a Linux signal to a Windows process? Mapping the users is possible and "SFU" did this, with a couple of caveats (Windows requires group and user names to be different, while UNIX systems often have groups with the same name as users). I don't think this is a Linux or GNOME killer, but it might put a dent in Cygwin and g…

> what happens if you try to send a Linux signal to a Windows process

Performs the default action as if it were a Linux process. Mostly terminate or ignore.

Re: Bash on Ubuntu on Windows

#186

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.

It works amazingly well. Vagrant helps a lot setting everything up. I even used several VM instances at the same time trying to mimic microservices running in different servers. I edited all the files in my fave IDE running in Windows, a file change would trigger an automatic server restart on the affected service/VM. Debug worked just fine as did mobile debug using Vagrant Share. It's my workflow for web stuff. I so…

Yep. I've setup Vagrant for my development server environments, and I use the vagrant-digitalocean plugin to deploy to DO. It's easy and convenient (though my host system is also Ubuntu).

Re: Bash on Ubuntu on Windows

#187

Earlier quoted context omitted.

A fair bit. You need to become a windows insider, if you aren't one already, opt in to insider builds (which can take a couple of days) and then install the insider preview. Not worth it if you're just wanting to try it out, but if you want to test it and feed back, then knock yourself out!

Yes, easier to just wait some time until the "Windows 10 Anniversary Update" goes public for everyone. Will surely be installed automatically like the November Update.

The Anniversary Update will be an automatic probably, yes (don't see this as a bad thing), but I am a bit skeptical that this feature will be included in the general update. Probably opt-in/separate download. It's a developer feature, after all.

Re: Bash on Ubuntu on Windows

#188
post #20

Earlier quoted context omitted.

Yes

Can I use Docker?

I expect this shiny new feature was introduced for exactly this reason - serve as a backed for a docker, both local development and cloud services. So - most likely support is coming

Re: Bash on Ubuntu on Windows

#189
post #78

Earlier quoted context omitted.

Because many people like Windows and develop on/for it, but also develop server-side code which generally requires Linux... so we don't have to keep virtualising OSs or running multiple machines - we can now develop for both within a single desktop. This is exactly the type of thing that many people want.

What I wanted is to run Windows in a Virtual Machine on my Linux box. Can I do that? Not without paying Microsoft $150. You can get their trial to run for 90 days, but it sucks having it expire and shut off after a few mins.

Windows isn't free software. You can't expect to run it for free just because it's in a VM. Honestly being able to run it for 90 days for free (after which all you have to do is go back to an earlier snapshot) seems pretty good to me.

Re: Bash on Ubuntu on Windows

#190

Earlier quoted context omitted.

> Perhaps the use case is limited to people who need to run Windows/Mac-only software like AutoCAD or some Adobe software. Or many, many games.

That's where I'm sitting. Sometimes I want to jump between gaming and working on personal development projects. Even with an SSD, rebooting anytime I want to do that is just a pain.

If you run on desktop hardware you can use VM with VFIO GPU passthrough. It's much less pain in ass than reboot or work on frankenstein OS.
Post reply on HN