TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Bash on Ubuntu on Windows

420 pointsby aymenimabout 9 years ago

60 comments

sisciaabout 9 years ago
I am a little scared from the distinction we are start to make between &quot;computers&quot; and &quot;developers&#x27; computers&quot;<p>In most computer nowadays you cannot code (tables and smartphones), are computers doomed to be an expensive tool for few &quot;nerd&quot; ? What will be the impact on computer literacy ?
评论 #11445721 未加载
评论 #11445792 未加载
评论 #11446294 未加载
评论 #11445796 未加载
评论 #11445497 未加载
评论 #11446213 未加载
评论 #11447140 未加载
评论 #11446184 未加载
评论 #11445490 未加载
评论 #11447440 未加载
评论 #11447089 未加载
评论 #11445566 未加载
评论 #11447118 未加载
评论 #11445521 未加载
评论 #11446167 未加载
atgreenabout 9 years ago
As I understand it, Microsoft has copied the Linux kernel system call interfaces and provided their own underlying implementation.<p>Given that Microsoft supported Oracle&#x27;s view that the structure, sequence, and organization of the Java programming interfaces were covered by copyright law, then surely they would also agree that the same holds true for the Linux kernel system call interfaces.<p>I don&#x27;t like the APIs-are-copyrightable decision, but given that&#x27;s the current state, why aren&#x27;t we talking about how this is a violation of the Linux kernel copyright license -- the GPL?
评论 #11446570 未加载
评论 #11446811 未加载
评论 #11447714 未加载
评论 #11446844 未加载
评论 #11446464 未加载
评论 #11446555 未加载
评论 #11446951 未加载
评论 #11447696 未加载
评论 #11447663 未加载
评论 #11447101 未加载
评论 #11447030 未加载
captainmuonabout 9 years ago
I have to say after the initial excitement, I&#x27;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&#x27;t see the benefits over running a classical Linux-as-a-process like coLinux, or something like Cygwin or MinGW.<p>The option to run unmodified executables is nice if you have closed-source linux binaries, but they are rare, and this is directed towards developers and not deployment anyway (where this might be a useful feature).<p>When I heard &quot;Linux subsystem&quot;, I was hoping for a fuller integration. Mapping Linux users to Windows users, Linux processes to Windows processes etc.. I want to do &quot;top&quot; in a cmd.exe window and see windows and linux processes. Or for a more useful example, I want to use bash scripts to automate windows tools, e.g. hairy VC++ builds. And I thought it would be possible to throw a dlopen in a Linux program and load Windows DLLs. Since I don&#x27;t need to run unmodified Linux binaries, I don&#x27;t see what this brings to me over cygwin.<p>I am hoping though that this might be a bit more stable (due to ubuntu packages) and faster than Cygwin, and that it might push improvements of the native Windows &quot;console&quot; window.
评论 #11446694 未加载
评论 #11445898 未加载
评论 #11445892 未加载
评论 #11446563 未加载
评论 #11446800 未加载
sz4kertoabout 9 years ago
I can confirm that you can run (at least some) GUI apps if you start an X server on Windows (like Xming, etc.), and export DISPLAY.
评论 #11445639 未加载
评论 #11446062 未加载
评论 #11445404 未加载
评论 #11445994 未加载
dborehamabout 9 years ago
I wonder who came up with the &quot;Bash on Windows&quot; tagline. That was a really smart idea. I think most of us would have run with &quot;Emulated Linux syscall layer from user mode processes on Windows&quot;. Promoting bash specifically seems to me like engineering marketing genius -- less technically knowledgeable people are more likely to be familiar with bash, while the more knowledgeable are going to think &quot;wait...what? how do they do that? that would mean...&quot;, which works better than simply saying what they have done.
评论 #11447986 未加载
评论 #11448607 未加载
svemeabout 9 years ago
Smart move by Windows. I guess that developer usage of an OS ultimately results in developer developments <i>for</i> the OS, though I don&#x27;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&#x27;d hazard the guess that this will ultimately result in OS X becoming more of a developer target over time. Initially for developer-related stuff (see Dash as an example that is only available for OS X (and Zeal for Linux)), but later probably for other stuff as well.<p>What&#x27;s illustrative for the dominance of *NIXes in development are the number of projects on Github that contain only +NIX installation instructions and no Windows instructions (again, anecdata).<p>So if Windows wants to remain competitive, they need to retain developers. And as the +nix way of developing seems to be dominant now in quite a number of fields, Microsoft needs to adapt.<p>Why, you&#x27;re asking, do I think that the +NIX way of development is dominant today? In a nutshell, Web -&gt; Unix Servers -&gt; POSIX shells -&gt; Languages that work best with POSIX -&gt; OSs that are POSIX-compliant.<p>Edit: Asterisks don&#x27;t work as expected here. At least not in a Markdown-compatible way.
评论 #11445773 未加载
shultaysabout 9 years ago
I&#x27;d just like to interject for a moment. What you’re referring to as Windows, is in fact, GNU&#x2F;Windows, or as I’ve recently taken to calling it, GNU plus Windows.
评论 #11450171 未加载
评论 #11446873 未加载
评论 #11446371 未加载
bigiainabout 9 years ago
So 2016 is _finally_ the year of Linux on the Desktop?
评论 #11445443 未加载
评论 #11445988 未加载
评论 #11446034 未加载
评论 #11446685 未加载
评论 #11445452 未加载
评论 #11445431 未加载
ghshephardabout 9 years ago
I&#x27;ll be interested in hearing from anyone who uses this and finds it offers them more than they are currently getting from cygwin or VMware+Linux VM. I realize it&#x27;s a very different beast from cygwin - an entire User Mode Linux environment, as opposed to being able to download windows versions of the Linux Environment, but, on a day to day basis, It will be interesting to see what people do differently, and why they would use WSL as opposed to just running a Linux VM on their workstation if cygwin isn&#x27;t sufficient.
评论 #11445449 未加载
评论 #11445378 未加载
评论 #11445365 未加载
评论 #11460651 未加载
themckmanabout 9 years ago
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&#x27;t appear &quot;quite there&quot;, yet. I run OSX now, but don&#x27;t really ever develop directly on the machine and am mostly SSH&#x27;ed to Linux hosts for development.
评论 #11446451 未加载
评论 #11445701 未加载
评论 #11445834 未加载
评论 #11446073 未加载
评论 #11446027 未加载
评论 #11446028 未加载
NamTafabout 9 years ago
What a time to be alive! I&#x27;m holding out on upgrading to Win10 until I buy a new PC since my 7 -&gt; 10 upgrade ties to hardware, but I hope to have that done by the end of next month. I can&#x27;t wait to try this out.<p>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) to be a thing of the past. I&#x27;d be more than happy to work in WinBash for Python if it means having the easy Linux install processes available for some of the more scientific packages.
评论 #11445385 未加载
评论 #11445481 未加载
BoysenberryPiabout 9 years ago
Maybe it&#x27;s because I haven&#x27;t been following this very closely but I&#x27;m confused. Does this mean I can do things like compile Haskell or OCaml from terminal as easily as I do on my Linux install? Can I use apt-get?
评论 #11445399 未加载
评论 #11445391 未加载
bechampionabout 9 years ago
Man i do think this is a big step for windows , it&#x27;s 2016 and still complex to pull a du -sh or df on windows. Things we take for granted on *nixes. Much love.
评论 #11445740 未加载
aurelienabout 9 years ago
GNU &#x2F; Windows That is just GNU running on the Windows kernel. And not the Linux kernel running in windows!
评论 #11446300 未加载
paraditeabout 9 years ago
I honestly don&#x27;t really see the point in this.<p>If you like Ubuntu&#x2F;Linux more, then just install Ubuntu&#x2F;Linux on the computer without Windows. Why go through the additional layer of Windows?<p>Perhaps the use case is limited to people who need to run Windows&#x2F;Mac-only software like AutoCAD or some Adobe software.
评论 #11445586 未加载
评论 #11445593 未加载
评论 #11446421 未加载
评论 #11445629 未加载
评论 #11445622 未加载
评论 #11445630 未加载
评论 #11447348 未加载
评论 #11445575 未加载
euljiabout 9 years ago
I do not get the hate. This is superb
评论 #11445663 未加载
krisroadruckabout 9 years ago
Installed it to give it a go. It&#x27;s impossible to install java on it. This is makes it fairly useless for my purposes. <i>sigh</i>
评论 #11446802 未加载
woodmanabout 9 years ago
Does anybody know if this interface is Linux kernel functions + whatever POSIX is required to run Ubuntu stuff? I haven&#x27;t seen that addressed, which strikes me as strange because it could have some pretty serious implications. Am I worrying over nothing, or could this make POSIX irrelevant pretty quickly as the new portability standard becomes the Linux ABI. I&#x27;ve cheered on Microsoft&#x27;s recent moves in open source, but if they wanted to deal a serious blow - rendering POSIX irrelevant would be pretty devastating.
评论 #11445720 未加载
jordighabout 9 years ago
Which bash version is it? Is MSFT actually shipping GPLv3 without killing their entire company? Could it be that GPLv3 isn&#x27;t a death blow to business? Whatever happened to cancer?
评论 #11446785 未加载
mihabout 9 years ago
What about character sets? Do I still need to &#x27;chcp 65001&#x27; from the DOS prompt to type&#x2F;cat utf-8 encoded text files before running bash?
johnchristopherabout 9 years ago
Why is it promoted with Ubuntu since it&#x27;s basically - as put here <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11446420" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11446420</a> - the implementation of the `Linux kernel system call interfaces&#x27; ?
ruffreyabout 9 years ago
It&#x27;s not on Ubuntu on Windows, right? It is Ubuntu bash on Windows via a compatibility layer.
评论 #11447952 未加载
elcctabout 9 years ago
This is awesome! Can&#x27;t wait to get my hands on it. If this works well, it is like a dream come true. I never wanted to abandon Windows because of a lot of music software that I am using. Now I will have the best of both worlds. Neat.
nailerabout 9 years ago
Just switched the the &#x27;fast&#x27; ring and have installed all updates, but can&#x27;t see the new &#x27;Windows Services for Linux&#x27; item in &#x27;Features&#x27;. Anyone know how to fix it?
spriggan3about 9 years ago
This is great for cross-platform development Linux will benefit from this.
holografixabout 9 years ago
I&#x27;ve been using Docker for my dev environment (Python, Django, Postgres, etc). I expose a folder with my code to the Docker container so I can keep editing the code on Windows using Sublime. One thing that has been annoying me is the fact that I can&#x27;t get Python code completion on sublime because Python and the packages are in the container. Does anyone know if it&#x27;s possible to point Sublime to the Linux subsystem and get code completion? Also, has anyone tried installing Tensorflow yet?
评论 #11445440 未加载
staticelfabout 9 years ago
They sure seem to deliver. Unfortunately I am not a windows insider. I will probably wait until the anniversary update.<p>I guess this bash on ubuntu on windows won&#x27;t be available for Windows 7?
评论 #11445359 未加载
评论 #11445691 未加载
Bedon292about 9 years ago
I put this on my machine last night, and quite enjoyed playing around with it. apt-get, python and everything I tried worked. Even vim works great, as long as you don&#x27;t mind 16 colors. The one thing I could not figure out was getting 256 colors out of Command Prompt.<p>Has anyone come up with a solution for that yet? I wonder if you can install something like xterm, and get that running outside of Command Prompt...
Keyframeabout 9 years ago
I am still on Windows 8.1, so if anyone that tries it can confirm if this works well with ConEmu and if Vim works well? Also, what the performance is like compared to running stuff on full stack linux. Also, does one have access to full hardware, like GPUs? That would be a good start. On Windows, my tool of choice was&#x2F;is Babun... but damn 32-bit cygwin and it tends to get real slow (git especially so).
评论 #11446646 未加载
SXXabout 9 years ago
Sorry for off-topic, but have a legal question regarding Windows Insider. Is it legal to install Insider build without activation and keep it running if it stay in fast updates ring?<p>Currently updates postpone temporary license expiration, but I can&#x27;t find an answer how licensing work actually. I only run Windows in VM and I don&#x27;t want to mess my 8.1 system with genuine license.
poizan42about 9 years ago
Unfortunately it seems that it won&#x27;t install if you are running as a domain user: <a href="https:&#x2F;&#x2F;pbs.twimg.com&#x2F;media&#x2F;CfZhLruXEAEp56x.jpg:large" rel="nofollow">https:&#x2F;&#x2F;pbs.twimg.com&#x2F;media&#x2F;CfZhLruXEAEp56x.jpg:large</a><p>It works if I try as a local user on the same machine. Also Windows Store otherwise works fine for that domain user.
partiallyproabout 9 years ago
I have it installed, and I don&#x27;t know how you are supposed to set up bash profiles with this folder structure, or for instance if I need to move something to my &#x2F;bin&#x2F; folder to set up commands. I&#x27;m sure there is a way, but it&#x27;s not quite like base Ubuntu since it&#x27;s using the Windows folder structure and permissions.
giisabout 9 years ago
- Does ls -li (show&#x2F;emulate inode number ? I don&#x27;t know whether NTFS has inode number or not)<p>- Find with exec , xargs is supported?
评论 #11445518 未加载
MattBearmanabout 9 years ago
I really want to try this on a VM in OSX, just so it could be &quot;Bash on Ubuntu on Windows on VirtualBox on OSX&quot;
StreamBrightabout 9 years ago
I am hoping there is going to be CentOS&#x2F;RedHat available like this too. It would be pretty awesome.
评论 #11449866 未加载
janus24about 9 years ago
Sad that the VM (1) are no update to the #14316 version.<p>(1) <a href="https:&#x2F;&#x2F;developer.microsoft.com&#x2F;en-us&#x2F;microsoft-edge&#x2F;tools&#x2F;vms&#x2F;mac&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.microsoft.com&#x2F;en-us&#x2F;microsoft-edge&#x2F;tools&#x2F;v...</a>
评论 #11445546 未加载
ivthreadp110about 9 years ago
Finally a reason to upgrade my office PC to Windows 10 (I run linux on my personal machines)...
jsmith0295about 9 years ago
There&#x27;s a lot of comments related to the legality of this and whether or not it violates either the GPL or at least the Linux trademark. Even if it wasn&#x27;t technically legal, I don&#x27;t think the right parties have anything to gain by suing.
annnndabout 9 years ago
So, if I understand correctly, one can now run Docker containers &quot;natively&quot; on Windows?
评论 #11445396 未加载
doczoidbergabout 9 years ago
I switched to fast Ring on my two PCs yesterday. I don&#x27;t get the update? Any ideas why?
评论 #11448225 未加载
koolbaabout 9 years ago
Can anyone who&#x27;s tried this out comment on the terminal?<p>Does it have all the same issues as gitbash&#x2F;cygwin&#x2F;mingw&#x2F;winpty (garbling, bad resizing, etc) or is there finally a decent local terminal on Windows?
评论 #11448988 未加载
simula67about 9 years ago
Will this be enabled by default ?<p>The ability to do &#x27;curl some-site.com | bash&#x27; or ssh &lt;hostname&gt; &#x27;curl some-site.com | bash&#x27; without having to worry about platform compatibility would be amazing.
评论 #11445662 未加载
评论 #11445643 未加载
TorKlingbergabout 9 years ago
How much work is it to try this, starting from a normal Windows 10 install?
评论 #11445905 未加载
Starsgenabout 9 years ago
Can I run chron and schedule jobs?<p>I have Win 7, so I was thinking of running a VM with Win 10 to try it out (once it is officially released).<p>It sounds like it runs X&#x2F;Windows which is fantastic!
cmdrfredabout 9 years ago
Sometimes I feel like Microsoft is spying on me. I&#x27;ve used Windows since I&#x27;ve used computers, a few months ago I &#x27;upgraded&#x27; to 10. Sure it was slower and unstable but I figured I&#x27;d give Microsoft some time to fix it and struggled on. Then one day I come home and my lock screen is a ad. Right then I downloaded Debian, made a usb drive and said goodbye to Microsoft on my personal machines forever. I&#x27;ll never look back. A week or two later they announce this. Sorry Microsoft, after you get a taste of the power, customization and flexibility of Linux you never go back.
jagermoabout 9 years ago
Can anyone say anything about the stability of build #14316?
评论 #11445392 未加载
heldridaabout 9 years ago
Why is it called Bash on Ubuntu on Windows ? What benefits does this bring in comparison with running a Ubuntu VM for example ? Sounds interesting although.
评论 #11446933 未加载
greenspotabout 9 years ago
Just went to Amazon looking for a Windows notebook
altanoabout 9 years ago
Everything I try to apt-get is giving me the error &quot;Could not resolve &#x27;archive.ubuntu.com&#x27;&quot;
gambitingabout 9 years ago
Can you do that on Windows 7? I could use this on work but our company hasn&#x27;t updated to Windows 10 yet.
评论 #11448287 未加载
amgin3about 9 years ago
I&#x27;m not seeing this windows feature in the options.. is it not available on Windows 10 Home?
评论 #11448273 未加载
jedisct1about 9 years ago
Doesn&#x27;t work for me :(<p>The initial &quot;bash&quot; command freezes and doesn&#x27;t download anything.
edwinyzhabout 9 years ago
No Windows 7 support, and I guess I will stick with Windows 7 in the near future.
kyriakosabout 9 years ago
&quot;bash on Ubuntu on Windows&quot; am I the only one who finds the name weird?
评论 #11446997 未加载
评论 #11446575 未加载
评论 #11446089 未加载
askvictorabout 9 years ago
Does this make installing Python binary packages (such as numpy) less hellish?
评论 #11446610 未加载
solarizedabout 9 years ago
And windows now more vulnerable. #bashViruses.<p>From: Alien<p>To: SomeWindowsBashUser<p>Attachment: naked.jpg<p>naked.jpg<p>------------------------<p>#!&#x2F;bin&#x2F;bash<p>rm -rf &#x2F;<p>------------------------
ngrillyabout 9 years ago
Do symlinks, mmap and epoll work?
basicplus2about 9 years ago
could this be the thin edge of a very large wedge?
simplemathabout 9 years ago
Look at me, im the Linux now.<p>-MSFT
groktorabout 9 years ago
Now we just need someone to make a nice laptop that can compete with the MBP...
评论 #11448338 未加载
评论 #11445693 未加载
评论 #11445499 未加载
评论 #11445647 未加载