News for hackers. Stuff that matters.
Re:Windows Subsystem for Linux is out of beta by smaddox on Friday July 28, 2017 @08:36PM (#14878757)
The linux filesystem has to be segregated from the windows filesystem. If I remember correctly, the linux FS can read from windows FS, but not write to it, due to locking issues. Or something like that. Whatever it was, it made me discount it as a way to write windows code. Instead, I'm using Git Bash, which is based on mingw
Re:Windows Subsystem for Linux is out of beta by aylons on Friday July 28, 2017 @09:00PM (#14878864)
I believe you got it inverted. You cannot write on the WSL file system from Windows, but the other way (writing on windows from bash) is ok.
Re:Windows Subsystem for Linux is out of beta by styfle on Friday July 28, 2017 @10:53PM (#14879244)
How do they expect developers to write code if windows can't write to the file system? Do they expect everyone to use vim or other text based editor?
Re:Windows Subsystem for Linux is out of beta by jamie_ca on Saturday July 29, 2017 @12:19AM (#14879451)
Just host the code in Windows-land.

Symlink ~/code to /mnt/c/Users/jamie/code, run whatever editor I want in windows to edit the code, and run my app from linux-land in the console. Hasn't given me a hiccup yet, even with a local sqlite database and such.

If you just treat your linux homedir as a spot for dotfiles and symlinks out to windows, it shouldn't give you much trouble unless you're doing stuff that relies heavily on owner/write permissions.

Re:Windows Subsystem for Linux is out of beta by khedoros1 on Friday July 28, 2017 @11:05PM (#14879274)
Or write it using whichever editor you'd prefer in Windows, then access it from WSL, I guess? You can see the entire Windows filesystem from inside the Linux environment. You just shouldn't try to write to the locations that they keep the Linux part of the filesystem in from Windows.
Re:Windows Subsystem for Linux is out of beta by concede_pluto on Friday July 28, 2017 @11:18PM (#14879305)
I'd use Emacs and the same X11 apps I'd use on a Linux cluster. There are X servers for Windows, though WSL strangely omits one.

If you like Windows apps, why run WSL?

Re:Windows Subsystem for Linux is out of beta by imran3740 on Friday July 28, 2017 @10:00PM (#14879096)
Yes, because Windows doesn't play nice with Linux's permissions.
Re:Windows Subsystem for Linux is out of beta by Spivak on Saturday July 29, 2017 @10:30PM (#14884090)
Which is weird because the Window's NFS server seems to manage it just fine.
Re:Windows Subsystem for Linux is out of beta by livingparadox on Friday July 28, 2017 @08:45PM (#14878793)
You can definitely write to the windows file system from WSL, so long as you don't need admin privileges to do it. I use it at work and 99% of the files I edit are in a windows controlled drive.
Re:Windows Subsystem for Linux is out of beta by mmcru on Friday July 28, 2017 @08:59PM (#14878855)
For me, reading and writing works, but I have major performance issues on /mnt/. `git status` for example is unreasonably slow on any directory under /mnt/.

I tried to adapt to this by instead of writing to the Windows file system from Linux; to instead write to the Linux file system from Windows. After corrupting my profile 3x and having to reinstall WSL each time, I went back to vagrant[1].

[1] vagrant is also really slow on Windows.

Re:Windows Subsystem for Linux is out of beta by jaxn on Saturday July 29, 2017 @12:10AM (#14879421)
When was the last time you tried? There are some file I/o improve EMTs over the past few months that drastically improved the kind of performance problem you are describing.