Sounds like Windows users discovering (and apparently having "fun with") GNU/Linux. None of this is really specific to this subsystem.
Fun with the Windows Subsystem for Linux
11–20 of 99 posts
Re: Fun with the Windows Subsystem for Linux
#12Re: Fun with the Windows Subsystem for Linux
#13I'd rather a linux sub sys for windows -- gamers on linux would flock to it, wine sux. There's some nice windows apps, and niche things built only on windows -- but I've staying on Ubuntu most likely.
Re: Fun with the Windows Subsystem for Linux
#14Re: Fun with the Windows Subsystem for Linux
#15lets cut to the chase, does tmux work on wsl?
Re: Fun with the Windows Subsystem for Linux
#16I installed WSL a few days ago. Installation is a ridiculous process, and takes about 24 hours for the service to finally appear after you follow the steps to make it happen, which is not well-documented and just feels idiotic to a Linux user, who's used to being able to change kernels in about three minutes, and switch back and forth at will.
But, I mostly love it. I still plan to install Linux and I'm unlikely to ever boot back into Windows except maybe for testing (I used to boot into Windows for games, but these days Steam has more than enough Linux games to keep me happy, as I don't game much), but Windows is suddenly not the worst of all possible worlds for developing software for Linux, anymore.
It has some weird/scary quirks: Using an editor installed on the "Windows" side of the system to edit files on the "Linux" side of the system led to files disappearing completely. I also saw the usual Windows CR/LF issues in sharing files between Linux and Windows partitions, but also an additional weird thing that might be Unicode related: I piped output from a command into a file on the Windows side in a Powershell session, opened it on the Linux side, and found it had spaces after every character and some other bizarre stuff inserted into it; kinda like maybe it was created in a UTF encoding but then loaded in a non-Unicode encoding or something. These are probably things that have some reasonable explanation and some way to work around them, but they made me scared enough of inter-operation between the two sides that I now isolate the two completely. I don't try to work "back and forth". If it's a Linux thing, I work only with Linux tools, and vice versa. This doesn't seem to be as big of an issue when using the MSYS bash shell that comes with git, which is my other bash shell in this system. At least, using the git bash shell hasn't led to any files disappearing.
Another interesting issue: Permissions are super lax, by default, in the Linux side. Owned by root:root and mode 777 across the board in your home directory, which causes a lot of software to complain. ssh, Ruby bundler (downgrade to 1.12.3 if you're having problems running bundle on Windows, either under WSL or in Powershell; same solution works for different bugs), and a bunch of other stuff has weird quirks when given a directory that is 777. It's also just plain nuts. I guess Windows has a different security model and this may not be a crazy as it seems at first glance, but it does cause software to freak out. But, as I understand it, WSL didn't even have a user account until recently, so they seem to be making it better on that front. In the meantime, I wouldn't want to rely on it for anything important.
That said, it gets a lot right. It feels like magic to run nearly any Linux application and have it Just Work. I, admittedly, am only running text mode apps at the moment: vim, bash, git, Perl, Ruby, Node. I haven't tried any graphical apps, so far. But, that's enough to replicate most of my workflow for developing server apps, and I don't need a VM to do it.
I don't plan to stick with Windows, even now, but it's been fun playing with it, and seeing what Windows is like these days. It's pretty nice, honestly. If I were just starting out with computers, I'd probably have no strong need to move to Linux in order to be productive. I'd learn how to use Powershell effectively (though it's gotten a lot easier/nicer in recent years, and accepts many of the common commands a UNIX user would expect, like ls, cd, cp, mv, etc...last time I used it many years ago, every command was some "Stupid-Long-Ass-Thing WithBIzarreLY cApitalized-OptioNS"), and probably be happy with Windows as a development platform.
As an aside, the Windows side of other kinds of development has also gotten remarkably better since I last tried it. Perl runs wonderfully right out of the box including some XS (compiled) modules, with Strawberry Perl, RubyInstaller does the same for Ruby, Python has always been great on Windows and still is, PostgreSQL works fine, git works mostly fine (though I guess some kinds of filename that are OK on Linux are problems on Windows), SQLite is great (as expected, since it is used by tons of Windows software, including stuff from Microsoft themselves, I think), ack works fine, etc. We've kind of entered a golden age where your desktop environment does not prevent you from working together with people using other desktop environments; they interoperate very easily for the most part, particularly with common points of ingress/egress (github or gitlab, for example).
Re: Fun with the Windows Subsystem for Linux
#17Sounds like Windows users discovering (and apparently having "fun with") GNU/Linux. None of this is really specific to this subsystem.
I agree. This looks like an elementary Linux tutorial.
rm -rf /mnt/c/
command on it, at least I would have put a # in front just in case.Once the authors discovers GNUScreen/tmux, xargs and other tools, his life will change :)
Re: Fun with the Windows Subsystem for Linux
#18lets cut to the chase, does tmux work on wsl?
Re: Fun with the Windows Subsystem for Linux
#19lets cut to the chase, does tmux work on wsl?
Re: Fun with the Windows Subsystem for Linux
#20ELI5: What does this mean to me, as a developer who's really familiar with (and prefers) Linux, but has to use Windows? What cool possibilities will this "Linux Subsystem For Windows" open up to me? What things will it specifically not open up to me?
The only thing I can think of that it'll open up for you is if you want to develop for Windows, while still having Linux available to you. Whether that's for developing games (most of the good game development tools run only on Windows, even if they can deploy to Linux/Mac/Android), or developing for Windows Phone (or whatever it's called this week), using Microsoft technology like Visual Studio and C# (though it's now possible to do most things on Linux via .Net Core, I think), or playing games that aren't available for Linux.
The modern Linux desktop is every bit as good as Windows (and Mac OS), IMHO, though I'd be willing to bet accessibility is still better on Windows. Hardware compatibility for modern devices is probably still better for Windows, too, though old devices certainly are more likely to run on Linux than Windows (a lot of my pro audio and music equipment hasn't run under Windows since like Windows Vista or something, but still works fine under Linux).
From my perspective after a week of tinkering with it, and using is exclusively for my development work, I don't feel like it has given me anything over my Linux environment. But, it does make the Windows development experience much closer to what I expect from Linux. If I developed Windows desktop applications, I would tell a different story, but I develop applications that run on Linux servers; developing on Windows provides no benefits, only negatives...but the negatives have gotten so small that they probably don't matter, anymore. A new developer just learning to build web apps, for example, could do it pretty much as easily on Windows as they could on Linux. Which has never been as true as it is today.
WSL is still very buggy and quirky, and the Windows build it runs on crashes several times a day (at least on my laptop, it does), so it's a net loss in productivity for me, as I'm spending some time waiting on reboots. But, in a few months, it'll probably be stable, widespread, well-documented, etc. And, at that point, maybe it'll even be an ideal option for some developers who are building for cross-platform deployment. Who knows, maybe in a few months, I'll find myself wanting to build something for Windows. I might come back from Linux for a while to spend time in Windows; I certainly don't hate it as much as I used to.