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.

Windows for Linux Nerds

615 pointsby geostyxover 7 years ago

46 comments

blunteover 7 years ago
Want to _really_ impress us, Microsoft? Give us a Windows Subsystem for Linux.<p>I chose a maxxed out Dell XPS15 laptop with Windows 10 to replace my 3 year old rMBP with the (foolish) expectation that it could replace my Mac. Apple had lost sight of what mattered to developers, and I was angry. But now, 2 months later, here I continue developing and existing on my old rMBP.<p>Bash in Windows is incredibly slow on some actions. I didn&#x27;t document all my activities, so I can&#x27;t point to which thing was slow. But for a developer using Python, Elixir, Node, Nginx, PostgreSQL, MySQL, Git! SSH! and some other smaller accessories, WSL was far less performant than a Linux VM on my Mac. And it was far, far less performant than on native Mac.<p>I very much appreciate what Microsoft is trying to do. Perhaps in a generation or three they will finally leave behind most of their protectionist behaviors and embrace what works for them (for better or worse) - MS Office and the host of Windows apps that businesses depend on.<p>Apple is no saint or savior. But thankfully, some of what they did in the years past (dare I say during the reign of Jobs) is what has made them special. #1 - latency. My Macs work 99% of the time as expected. They run for weeks or months. My high end Android phone, even after factory reset, has occasional mind-boggling hangs (after which 1000 UI events register and take effect). The same applies to Windows 10! It works fine, sometimes, for a few things. Then it goes nuts. Wipe and reinstall (remove the Dell bloatware) and it&#x27;s better. But it still lags so far behind macOS.<p>There is no utopia. There is only pain, frustration, and anger on the part of users. But please, give us developers (who practically _live_ in your environments) something.
评论 #15249583 未加载
评论 #15245353 未加载
评论 #15245261 未加载
评论 #15244921 未加载
评论 #15244946 未加载
评论 #15245822 未加载
评论 #15245356 未加载
评论 #15245339 未加载
评论 #15245191 未加载
评论 #15245421 未加载
评论 #15246335 未加载
评论 #15245226 未加载
评论 #15246362 未加载
评论 #15247381 未加载
评论 #15245187 未加载
评论 #15256762 未加载
评论 #15246256 未加载
评论 #15247045 未加载
评论 #15250998 未加载
评论 #15246630 未加载
评论 #15245568 未加载
userbinatorover 7 years ago
<i>If you need to access files in VolFS, you can use bash.exe to copy them somewhere under &#x2F;mnt&#x2F;c, use Windows to do whatever on it, then use bash.exe to copy them back when you are done.</i><p>IMHO this is the worst-designed(?) part of the whole WSL. Copying files back and forth is the antithesis of a &quot;seamless Windows and Linux experience&quot;, to put it mildly. From that perspective it&#x27;s no better than running an isolated VM. To add insult to injury, although I haven&#x27;t personally tried it, apparently trying to access the files directly from Windows as if they were both on the same filesystem (which they are) results in all sorts of ridiculous breakage: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12980380" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12980380</a><p>I have mounted CIFS&#x2F;SMB shares from Windows machines onto Linuxes and Macs, and gone in the opposite direction with Samba; in both of these cases, there is no need for wasteful copying and managing <i>two</i> files; Windows and Linux can essentially use the same files simultaneously.<p>Going in the other direction, WINE also allows Windows apps to work directly with the same files as Linux ones.<p>One then wonders, when a <i>networked</i> filesystem with all its complexity can be used nearly effortlessly across different OSes running on <i>completely different machines</i>, and WINE is like the inverse of WSL, why couldn&#x27;t Microsoft do the same with two subsystems on the same machine using the same filesystem!?
评论 #15244602 未加载
评论 #15244505 未加载
评论 #15244510 未加载
评论 #15244434 未加载
评论 #15245045 未加载
评论 #15248950 未加载
tootieover 7 years ago
A lot of snarky comments here, but I&#x27;ve been using Ubuntu shell on Win 10 for the past few weeks and it&#x27;s really fantastic. Way faster than a VM and much more compatible than cygwin or msys.
评论 #15248609 未加载
评论 #15244109 未加载
评论 #15244517 未加载
评论 #15244988 未加载
评论 #15244132 未加载
评论 #15244176 未加载
eksemplarover 7 years ago
I&#x27;ve been a Microsoft developer for a long time, but in recent years it&#x27;s become increasingly hard to justify and the Linux subsystem hasn&#x27;t helped. Not because it&#x27;s not an interesting feature, but because my desktop has become even more useless as anything but development than it already was with Visual Studio infecting everything.<p>I&#x27;m sure it&#x27;s a step in the right direction for a lot of people, but I bought an old 2015 MacBook and it&#x27;s been a so much better experience than windows that I&#x27;m actually considering getting a ubuntu machine to see if it can work as my main machine. If this sounds odd to you, you haven&#x27;t programmed on a MacBook with a Danish keyboard.<p>Honestly Microsoft does a lot of things right these days, but it all comes with terrible user experiences. .Net core is great, but the devops required to run it in production, frankly has us considering java spring.<p>Sorry about the rant, but the fact that you even needed to write this blog is a good illustration of what&#x27;s wrong with Microsoft. Tech is supposed to run out of the box, with minimal effort required.
评论 #15245690 未加载
评论 #15245193 未加载
评论 #15245526 未加载
评论 #15245456 未加载
评论 #15248005 未加载
bactrianover 7 years ago
This post was interesting in a morbid way but you can count the Linux nerds that want leave the open world of Linux for Microsoft very easily. They all work at Microsoft.<p>Microsoft is losing on mobile, desktop, servers, and IoT. Their entire ecosystem is a technological deadend.<p>If you&#x27;re a Linux Nerd, you should probably keep using Linux if you care about having a good career going forward.
评论 #15243950 未加载
评论 #15243971 未加载
评论 #15244217 未加载
评论 #15244493 未加载
评论 #15244199 未加载
评论 #15249813 未加载
nickjjover 7 years ago
I tried WSL a few times but for real world every day development it&#x27;s just not usable at all. The file mount performance is crippling slow. A Rails app takes 30+ seconds to see changes vs nearly instant on native Linux.<p>If anyone is interested in running Linux on Windows in a way that&#x27;s suitable for full time development then check out this screencast &#x2F; blog post: <a href="https:&#x2F;&#x2F;nickjanetakis.com&#x2F;blog&#x2F;create-an-awesome-linux-development-environment-in-windows-with-vmware" rel="nofollow">https:&#x2F;&#x2F;nickjanetakis.com&#x2F;blog&#x2F;create-an-awesome-linux-devel...</a><p>I&#x27;ve been using this set up for many years.<p>The pros of the above method are:<p>- It&#x27;s free<p>- It&#x27;s as fast as native Linux<p>- It&#x27;s actually Linux from end to end<p>- You get independent floating Linux windows (graphical apps work)<p>- You can still run your Windows apps<p>- Works flawlessly with dual monitors<p>- No need to dual boot<p>- Takes about 15-20 minutes to set up your first time
评论 #15248107 未加载
评论 #15248646 未加载
cypher543over 7 years ago
I really, really wish Microsoft would open up the Pico Process APIs to third-party driver developers. Right now, WSL is the only driver allowed to install Pico Process callbacks. It would be cool to implement a Darwin layer or a Classic Xbox emulator with that tech.
评论 #15244873 未加载
dhruvb14over 7 years ago
For anyone wanting to automate using boxstarter and chocolatey without finding all the packages manually I created this GUI about a year back.<p>It has a search bar to search chocolatey&#x27;s repository automatically.<p>It has search and allows you to save the GIST straight to github and then invoke installer straight from website. Uses cookies to store script on machine so you can come back to it and add&#x2F;remove more.<p>Was a quick 2-3 hour job so it may have bugs<p><a href="http:&#x2F;&#x2F;dhruvb14.github.io" rel="nofollow">http:&#x2F;&#x2F;dhruvb14.github.io</a>
rbanffyover 7 years ago
Correct me if I&#x27;m wrong, but WSL looks more like an attempt at stopping developers from moving to Macs in order to get a polished app environment with a Unix-like OS underneath and to keep them in the Windows ecosystem.
评论 #15245639 未加载
评论 #15245957 未加载
评论 #15245881 未加载
评论 #15245654 未加载
nunezover 7 years ago
Congrats, Jess!<p>LXSS is amazing, but I had to stop using it because mounted volumes in Docker straight up don&#x27;t work within it.<p>How don&#x27;t they work? When you do a &quot;docker run -v $PWD:&#x2F;whatever &lt;image&gt;&quot;, &quot;&#x2F;whatever&quot; will be blank. This occurred even when I tried to mount a directory on the FUSE mount to the Windows filesystem.<p>I&#x27;m guessing that given her experience in hacking container runtimes, she can probably lend a big hand towards fixing it. I&#x27;m currently using Vbox + Vagrant as a substitute, and it works well, but I&#x27;d prefer to use WSL.
dis-sysover 7 years ago
Microsoft never made any change to its core strategy. There is no alternative platform to run Windows applications with official Microsoft support (you can name a couple exceptions, they are exceptions, e.g. SQL Server), there is no way for average developers to read Windows&#x2F;Office source code. That is the best proof.<p>Windows for Linux Nerds? I run 5 Linux machines in my study room, Microsoft would be charging me thousands of $ for Windows Server licenses, I read source code of the software I am using on daily basis, Microsoft wouldn&#x27;t let me do that. Every code of weeks, I hack the software I use and share the changes with others, Microsoft lawyers are not going to be happy if I choose to do that on Microsoft software.<p>Windows for Linux Nerds? Microsoft is not ready for that, Microsoft never had the intention to do.
评论 #15245698 未加载
Wehrdoover 7 years ago
I have been super impressed with WSL after using it for close to a year now. The Creators Update fixed some issues like file watching and symbolic links which had been preventing certain programs from begin usable.<p>I now do all my C++ and node.js development through WSL so I can still use all the Windows GUI applications (which tend to have fewer bugs and be easier to use than Linux GUI apps, in my experience). VS Code even allows you to run gdb on WSL, and interface with it on Windows, if you can get the setup right.
iammyIPover 7 years ago
Stop dangling your rotten carrot! You can&#x27;t impress me with these stale gimmicks. The choice of operating system is not a purely utalitarian, but also and mostly a social choice of morality and utopia.<p>And the choice has been made already, for freedom, not corpdom. Therefore, i&#x27;ll stick with even the shittiest desktop and OS imaginable, as long as it&#x27;s open for me to any change i can think of.<p>There is simply no going back from freedom to corpdom. It&#x27;s one way only. You need to understand this.
partycoderover 7 years ago
It&#x27;s hard for Windows to realistically compete with Linux as a developer environment.<p>GNU&#x2F;Linux and userland software is made by developers for developers, and a lot of it is open source. If you are a developer, on Linux sky is the limit. Everything can be played with. On Windows that&#x27;s not the case. Many areas are off-limits and you don&#x27;t get to see how they work, and you cannot change them if you need to.<p>Then, Microsoft can sunset a project at any time, and that&#x27;s final. In the open source world an orphaned project can always be forked or picked up by someone else.
评论 #15246218 未加载
评论 #15247677 未加载
pbnjayover 7 years ago
TBH I dug out my Surface Pro when Jess started talking up WSL... Finally got Windows Insider Preview going so that I could try it out for myself.<p>I spend most of my days in a text editor and a terminal, and macOS has been making even that painful sometimes. Linux was my desktop for ages before I switched to mac ~7 years ago, so it&#x27;ll be nice to see what it can do now.
评论 #15244591 未加载
seifertericover 7 years ago
&gt; Imagine a Linux setup where you can launch PowerPoint without a VM<p>Wine?
评论 #15245076 未加载
评论 #15244782 未加载
评论 #15244035 未加载
评论 #15244192 未加载
symlinkkover 7 years ago
I totally agree with his points about how terrible the Windows console is.<p>Scrolling past the current line into blank space makes no sense. Having two identical settings menus (Defaults and Properties) that affect the current terminal vs every terminal makes no sense. Having no color theme support makes no sense.<p>As far as third party terminals go, ConEmu is pretty good but crashes a lot for me. I don&#x27;t see why I should even need to get a third party terminal though. Microsoft is a multi billion dollar company. Can&#x27;t they hire a team of guys to improve the one thing that every single programmer and sysadmin cares about - the god damned terminal?
评论 #15252662 未加载
评论 #15249248 未加载
评论 #15248343 未加载
chxover 7 years ago
Here are my notes <a href="https:&#x2F;&#x2F;github.com&#x2F;chx&#x2F;chx.github.io&#x2F;wiki&#x2F;How-I-set-up-my-Windows-10-(coming-from-Linux)" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chx&#x2F;chx.github.io&#x2F;wiki&#x2F;How-I-set-up-my-Wi...</a> on setting up W10 after using Linux for almost a quarter century.
domenukkover 7 years ago
Install hyper terminal, it is a lot more bearable than the ugly default console emulation on Windows.
评论 #15244613 未加载
评论 #15245262 未加载
评论 #15244886 未加载
评论 #15244115 未加载
tkubackiover 7 years ago
WSL is waste of time if you work with docker - Linux desktop experience (not laptop) is just good enough these days (and future seems even brighter since Ubuntu goes back to Gnome)
评论 #15246196 未加载
shmerlover 7 years ago
Why would you use WSL instead of straight VM for example (assuming you are somehow banned from running Linux proper directly on your hardware)? And I&#x27;m a bit confused about the benefit of launching PowerPoint from WSL, when you have the Windows host itself sitting there.
评论 #15244740 未加载
评论 #15244731 未加载
donquichotteover 7 years ago
WSL is nice and I would use it more often if USB devices were transparently mapped into it. I want to use it for embedded development on my Windows machine, and without USB support this is just not possible.<p>Edit: apparently they added it in May [1], but I have no access to the newest update.<p>[1] <a href="https:&#x2F;&#x2F;blogs.msdn.microsoft.com&#x2F;commandline&#x2F;2017&#x2F;05&#x2F;10&#x2F;bashwsl-insiders-build-now-supports-usbserial-comms-and-mounting-removable-storage-network-shares&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blogs.msdn.microsoft.com&#x2F;commandline&#x2F;2017&#x2F;05&#x2F;10&#x2F;bash...</a>
mikeytown2over 7 years ago
I used to run <a href="http:&#x2F;&#x2F;www.andlinux.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.andlinux.org&#x2F;</a> but with no 64bit support it&#x27;s dead now. This was how to run Linux on windows.
malkiaover 7 years ago
Thank you for WSL! I&#x27;ve been using it to learn more about what it could be done with it, and at home have been trying to compile flutter (<a href="http:&#x2F;&#x2F;flutter.org" rel="nofollow">http:&#x2F;&#x2F;flutter.org</a>) on it... Currently it gets stuck in the &quot;pub upgrade&quot; (the dart language packaging mechanism), as it runs several tar&#x27;s to unpack packages.<p>If you just follow the simple:<p>bash.exe...:<p><pre><code> $ mkdir p; cd p $ git clone https:&#x2F;&#x2F;github.com&#x2F;flutter&#x2F;flutter $ cd bin $ .&#x2F;flutter doctor </code></pre> it&#x27;ll soon get up to speed, and eventually hang. Off course all this works on Windows, but I wanted to experiment with something as it encompasses several different things - language, environment, packages, jit-ing, etc.<p>Still pretty excited about the development!<p>Heh, one thing I&#x27;ve learned the hard way, I made a symlink on my &#x2F;mnt&#x2F;c&#x2F; as &#x2F;mnt&#x2F;c&#x2F;something - and this was making several windows tools unhappy, had to deleted from WSL and now it&#x27;s fine.
kallethover 7 years ago
I&#x27;ve recently (~1y) moved back to Windows as a primary &#x27;desktop&#x27; OS for development. By day I&#x27;m a rails developer.<p>I&#x27;ve worked extensively on windows (back in PHP days), Linux (when I was doing HPC software) and Mac (most of my rails career...).<p>Generally the code always runs on Linux -- and WSL isnt&#x27; there yet for background processes and the &quot;platform&quot; your code needs to run on; most of the stuff I need needs worker processes, elasticsearch, mysql, et al, all of which need to be running long-lived in the background which WSL isn&#x27;t great at supporting -- it&#x27;s &quot;user mode&quot; after all.<p>It&#x27;s also closer to prod environments, which is a theoretical argument against OSX.<p>I clone and do terminal operations on either a VM or a physical ubuntu server in my house, and edit locally using gvim or visual studio code using an NFS or Samba mount. Nginx proxying using port forwarding over ssh. Long story short; it works for me, but this is a frankenstein-ish setup made familiar solely because I&#x27;ve used all 3 OS&#x27;s day in, day out for ~20 years. When I explain it to Junior devs they look at me funny.<p>WSL with ConEmu and openssh is close to replacing PuTTy for me, but that&#x27;s it. You still can&#x27;t use it to have a painless node, ruby, etc development experience on windows.<p>Microsoft should be focusing on optimising for someone who&#x27;s in a coding bootcamp, not people who&#x27;ve been in tech for decades already and already have the solid technology base.<p>Right now, people grow up using windows for day to day office work in other careers and at school, and for PC gaming and browsing at home, but have to switch off it when they enter a development career because the native tooling isn&#x27;t there. If Microsoft can address that shortcoming, probably through further development of WSL and (hopefully) implementing Bash as a &quot;first order citizen&quot; in Windows, then they&#x27;re home.
makmanalpover 7 years ago
Very neat! This reminds me of lx branded zones in illumos: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=TrfD3pC0VSs&amp;list=PLH8r-Scm3-2VmZhZ76tFPAhPOG0pvmjdA&amp;index=6" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=TrfD3pC0VSs&amp;list=PLH8r-Scm3-...</a>
评论 #15244960 未加载
dingle_thunkover 7 years ago
Author should check out this script for an even more minimal setup :)<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;alirobe&#x2F;7f3b34ad89a159e6daa1" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;alirobe&#x2F;7f3b34ad89a159e6daa1</a>
评论 #15244203 未加载
iwintermuteover 7 years ago
Slow file writes - working with WLS I found that integrated ms antivirus really doesn&#x27;t like my python scripts for some reason. Turning off &quot;ongoing protection&quot; speed up things considerably.
nunezover 7 years ago
Also, for anyone with a Windows 10 (Anniversary Edition or above) machine that wants to try this, try the quick PowerShell script I wrote some time back that sets this up for you: <a href="https:&#x2F;&#x2F;carlosonunez.wordpress.com&#x2F;2016&#x2F;12&#x2F;01&#x2F;enable-linux-on-windows-the-fast-way&#x2F;" rel="nofollow">https:&#x2F;&#x2F;carlosonunez.wordpress.com&#x2F;2016&#x2F;12&#x2F;01&#x2F;enable-linux-o...</a><p>Also, note that WSL can be disabled via Group Policy, and it is possible that your sysadmins may have done so.
galaxyLogicover 7 years ago
Linux on Windows 10 seems like a good thing. I plan to use it for testing a Node.js application developed on Windows
评论 #15244316 未加载
explodingcameraover 7 years ago
Weird I&#x27;ve been cloning git repos to an external NTFS drive mounted in &#x2F;mnt and never had any issues.
mizzaoover 7 years ago
I find that the copy&#x2F;paste terminal stuff and keyboard shortcuts are much better by using an X-based terminal emulator, e.g. xfce:<p><a href="https:&#x2F;&#x2F;askubuntu.com&#x2F;a&#x2F;867696&#x2F;86161" rel="nofollow">https:&#x2F;&#x2F;askubuntu.com&#x2F;a&#x2F;867696&#x2F;86161</a>
jadboxover 7 years ago
Note that Android emulation (or most kinds of emulation aside from docker) will not work under WSL. Yes, I know I can do Android development under Windows, but I&#x27;d prefer Linux for day to day development for everything.
yanni79over 7 years ago
I remember &quot;Lindows&quot; from the good ol&#x27; days - I think it ended up being called Linspire, but alas it died back in 2007. It would&#x27;ve been great to give to my grandparents right about now.
free_everybodyover 7 years ago
I wanted to read this but I honestly don&#x27;t care about how Windows hacked away a lesser version of a linux machine into their already bloated OS. I&#x27;m just going to use linux.
api_or_ipaover 7 years ago
Not sure how WSL is more compelling than using docker containers. I can very easily download, compile and run basically anything I want with minimal friction and way less domain knowledge than managing a VM.<p>Also, this might just be me being snarky, but MS is absolutely losing the battle for developer tooling and that&#x27;s what&#x27;s prompted them to try to sway developers back to their ecosystem. If the circumstances were any different, I&#x27;m sure they&#x27;d be perfectly happy letting us suffer using cygwin and putty.<p>Don&#x27;t trust a snake.
评论 #15245384 未加载
jadboxover 7 years ago
i3 is simply amazing. I&#x27;d give up my Windows Desktop in an instant if I could use i3 to start Window apps within the manager.
评论 #15246354 未加载
all_blue_chucksover 7 years ago
All the linux commands I need I can find in windows-native format using scoop.sh. No filesystem trickery needed.
lurker12390879over 7 years ago
Drawbridge is what powers SQL server for linux and is a full windows subsystem but is locked down.
arrty88over 7 years ago
I love my late 2016 mbp with new keyboard &amp; touchbar that i never use. It&#x27;s a million times better than the surface pro 4, surface book, dell xps, lenovo, or any other equivalently priced winbox. Granted, I don&#x27;t game at all or need high performance graphics.
thomastjefferyover 7 years ago
An i3 user who is happy with WSL? I think you are in denial, my friend.
hacking_againover 7 years ago
Why not just use Cygwin?
评论 #15244004 未加载
评论 #15244000 未加载
评论 #15244627 未加载
jlebrechover 7 years ago
how about directX for wine?
megamindbrianover 7 years ago
What does this mean for Cygwin?
评论 #15247712 未加载
Keloranover 7 years ago
how is WSL any different to WISE ?<p>(a better explination of WISE than I could ever come up with <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11072143" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11072143</a>)<p>it sounds like microsoft up to its old tricks,<p>&quot;look its really easy to develop for windows now you have done that, well now we have dropped that so guess your going to have to only develop for windows now&quot;
评论 #15249567 未加载
geggamover 7 years ago
...but why do I need this ?<p>Work gives me a Mac which I have a Linux VM inside of to get work done. Personally I have Linux &#x2F; BSD laptops and BSD servers.<p>Why do I need windows at all ?