Live data from Hacker News

File System Improvements to the Windows Subsystem for Linux

blogs.msdn.microsoft.com

101–108 of 108 posts

Re: File System Improvements to the Windows Subsystem for Linux

#101
post #10

I was going to make another comment, but just found out while searching that WSL is //supposed// to be based on Ubuntu (20)16.04 now (instead of 14.04) I guess the next time I work with those systems I'll have to run down some upgrade / re-install directions. I wonder if that will fix the issue where I was unable to mv folders around the c:\ drive within the /mnt/c FS. (It more or less locked up to the point that I h…

It's mentioned in the release notes blog post: https://blogs.msdn.microsoft.com/commandline/2017/04/11/wind...

You can do the traditional Ubuntu do-release-upgrade to upgrade your install, or the suggestion is to replace and reinstall (from PowerShell or cmd):

    lxrun /uninstall /full /y
    lxrun /install
I copied my few dotfiles to a safe place and did that.

Re: File System Improvements to the Windows Subsystem for Linux

#102

Is it at the point where one can, for example, use PyCharm to develop Python/Django sites residing in the Windowns file system (say, z:/sites/project_099) while hosting from WSL? Or would it be treated more like a VM that you simply deploy to? We currently run one or more Ubuntu server VM's per machine as needed for local testing. If needs go beyond that, we have physical (virtualized) servers on our network (for exa…

You can cd to /mnt/z/sites/project_099 and work there directly in WSL. Open the same files in a Windows-based text editor. Even use Visual Studio to drive gdb debugging of the Linux process in WSL.

I've not done that last bit, but I definitely have moved all my ruby/Jekyll work into WSL and use VSCode to edit.

Re: File System Improvements to the Windows Subsystem for Linux

#103
post #88
post #67

Earlier quoted context omitted.

For me at least the big problem is malware. Running Arch Linux means I do not need to worry about malware. Ransomware. Crap like that. Yes, I am a reasonably experienced computer user and it's quite unlikely I would click anything "wrong" but not having to worry about a single bad click causing hours of recovery is a big plus. Edit: while I understand downvotes I would be much happier if you'd educate me where I am w…

All experienced Windows user have a curated list of software. If you download shady apps, sure, good chance of getting infected. But Chrome, Firefox, TotalCommander, 7-zip, Sublime, etc., etc. are all free, mature and malware free. It may not be as conceptually easy as Arch Linux but on the other hand you get access to Windows-only stuff which has its benefits. And almost any Linux user should be able to create that…

Installing apps on Windows is 100% as easy to do now as it is with Homebrew and Linux package managers with Chocolatey. I don't download software anymore on my Surface; I choco install EVERYTHING.

I was even surprised to discover today that I could install IntelliJ via choco install! It is amazing.

Re: File System Improvements to the Windows Subsystem for Linux

#104
post #103
post #88

Earlier quoted context omitted.

All experienced Windows user have a curated list of software. If you download shady apps, sure, good chance of getting infected. But Chrome, Firefox, TotalCommander, 7-zip, Sublime, etc., etc. are all free, mature and malware free. It may not be as conceptually easy as Arch Linux but on the other hand you get access to Windows-only stuff which has its benefits. And almost any Linux user should be able to create that…

Installing apps on Windows is 100% as easy to do now as it is with Homebrew and Linux package managers with Chocolatey. I don't download software anymore on my Surface; I choco install EVERYTHING. I was even surprised to discover today that I could install IntelliJ via choco install! It is amazing.

If there was Hckrnews gold, it'd be yours. This alleviates a lot of problems I constantly had with Windows, namely downloading crap from who-knows-where then contains who-knows-what. This actually might be the deciding factor.

Re: File System Improvements to the Windows Subsystem for Linux

#105
post #75
post #65

Earlier quoted context omitted.

There is a Windows-native SSHFS client[1]. I have it installed on a Win10 VM so can confirm it "works" albeit I haven't needed to use it for anything so cannot confirm how well it works. [1] https://github.com/Foreveryone-cz/win-sshfs I think is the currently maintained version but you're welcome to confirm that independently.

I helped resurrect this to support Windows 10 a year or so ago. It works, but because of its reliance on Dokany (a FUSE-like usermode file system library), there are a lot of ways it still doesn't work perfectly. It was a lifesaver for me when I was doing development on embedded Linux devices (Pi/Edison et al). But if you're not tied to remote hardware, WSL is an infinitely better, faster, much more reliable dev proc…

What do you mean by "bodge git repo status"? One thing I noticed is that, git gets confused if you clone under Linux and then try to access it via win-sshfs from Windows. The other way it works fine, i.e. clone from Windows, then other actions work fine on both sides.

Re: File System Improvements to the Windows Subsystem for Linux

#106
post #30

Earlier quoted context omitted.

I thought it would give me total interoperability. That I could edit an movie in a windows app, run it through ffmepg, and go back to editing. Cygwin is still useful.

It does but you have to do that from the Windows file system not the Linux one. So from Linux you are accessing /mnt/c/Users/you/somedocument and from Windows it's C:\Users\you\somedocument.

But isn't this a new thing? I believe you couldn't do it in the initial versions.

Re: File System Improvements to the Windows Subsystem for Linux

#107
post #104
post #103

Earlier quoted context omitted.

Installing apps on Windows is 100% as easy to do now as it is with Homebrew and Linux package managers with Chocolatey. I don't download software anymore on my Surface; I choco install EVERYTHING. I was even surprised to discover today that I could install IntelliJ via choco install! It is amazing.

If there was Hckrnews gold, it'd be yours. This alleviates a lot of problems I constantly had with Windows, namely downloading crap from who-knows-where then contains who-knows-what. This actually might be the deciding factor.

Glad I could help!

Re: File System Improvements to the Windows Subsystem for Linux

#108
post #106

Earlier quoted context omitted.

It does but you have to do that from the Windows file system not the Linux one. So from Linux you are accessing /mnt/c/Users/you/somedocument and from Windows it's C:\Users\you\somedocument.

But isn't this a new thing? I believe you couldn't do it in the initial versions.

No, it's always been that way from the initial release. It's literally the only file system interopt that exists.

You're not supposed to access the Linux filesystem from Windows -- it's in a system hidden area of your profile but some people still tried to mess with it with unfortunate consequences.

Post reply on HN