windows-subsystem-for-linux

How do I access Linux binaries from Windows when using WSL?

老子叫甜甜 提交于 2019-12-06 14:08:20
问题 I'm experimenting with the new Windows Subsystem for Linux as a way to develop Rails applications in Windows. I have WSL installed and I have Ruby in it but how do I use that Ruby from a Windows GUI application, specifically, RubyMine: This is so I can easily start rails, run tests, etc. 回答1: A few things: Open a bash console and leave it open when you're running RubyMine: As soon as you close your last bash session, WSL tears down all running Linux processes. I believe RubyMine is a 32-bit

Should I tell Intellij that my WSL filesystem is case sensitive?

流过昼夜 提交于 2019-12-06 11:27:24
I share my Windows 10 filesystem with the Windows Subsystem for Linux. I keep my coding projects in the dev folder in my user directory, and share that to /mnt/c/Users/Conan/dev in WSL. Intellij runs projects from the Windows filesystem, but I use a range of command-line tools to run things (such as java ) from the share in WSL. When I start Intellij it says: Filesystem Case-Sensitivity Mismatch The project seems to be located on a case-sensitive file system. This does not match the IDE setting (controlled by property "idea.case.sensitive.fs") Is this correct? My Windows filesystem is not case

Connecting to the Windows Subsystem for Linux from Visual Studio 2017

会有一股神秘感。 提交于 2019-12-06 04:04:08
问题 I wish to debug a Linux C++ console application from VS2017, as in these tutorials: Writing And Debugging Linux C Applications From Visual Studio Using The Windows Subsystem For Linux targeting windows subsystem for Linux from visual studio I have installed gdbserver and openssh-server in my WSL Ubuntu 16.04 installation, and sshd is running, but I cannot connect from VS2017. When I try, I get the error 'Connectivity Failure. Please make sure the host name and port number are correct' . Both

How to get `python` to run Python 3 in WSL bash?

会有一股神秘感。 提交于 2019-12-06 03:48:17
问题 When I type python into my bash shell (Windows Subsystem for Linux) in Windows 10 Home, I get the following error message: The program 'python' can be found in the following packages: * python-minimal * python3 Try: sudo apt install <selected package> I've tried installing python3 but am told it's already installed and up to date. I've tried uninstalling python-minimal but am told it's not installed (!) Why am I seeing two "competing" packages for Python? How can I fix the conflict and

Bash on Ubuntu on Windows - rlwrap could not open master pty

◇◆丶佛笑我妖孽 提交于 2019-12-05 13:16:56
After installing Bash on Ubuntu on Windows, I'm receiving an error from any rlwrap command. root@localhost:~# rlwrap ls rlwrap: Could not open master pty: No such file or directory I've made sure that /dev/ptmx has the correct permissions root@localhost:~# ls -ld /dev/ptmx crw-rw-rw- 1 root tty 5, 2 Apr 9 22:44 /dev/ptmx Yet I still can't get it working. Am I the only one encountering this error? Any help would be greatly appreciated. Windows Subsystem for Linux (WSL) doesn't (yet?) have a working pty implementation. I suspect that opening /dev/ptmx always fails for this reason, even though

Calling WSL bash.exe from C#

随声附和 提交于 2019-12-05 06:56:08
Mostly just as a curiosity, I wrote a little app to start up Terminator shell on Windows, using Ubuntu/WSL and Xming window server. Doing things manually from the shell, I can run Firefox, gedit, Terminator, etc on Windows, it's pretty cool. So I checked the location of bash.exe using where bash and it returned... C:\Windows\System32\bash.exe However when I tried to run this code... using (var xminProc = new Process()) { xminProc.StartInfo.FileName = @"C:\Program Files (x86)\Xming\Xming.exe"; xminProc.StartInfo.Arguments = ":0 -clipboard -multiwindow"; xminProc.StartInfo.CreateNoWindow = true;

Installing g++ on windows subsystem for linux

大城市里の小女人 提交于 2019-12-04 20:14:48
问题 A while back I activated Windows Subsystem for Linux on my machine but didn't use it much. Now I have an idea what I could use it for and that is why I'm trying to install gcc/++ 7 on my WSL and keep running into problems. My idea was to download it and compile it by hand following this guide with: ../gcc/configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --prefix=${HOME}/software/gcc-7.3.0/installDir --enable-checking=release --enable-languages=c,c++

How do I access Linux binaries from Windows when using WSL?

人盡茶涼 提交于 2019-12-04 19:38:42
I'm experimenting with the new Windows Subsystem for Linux as a way to develop Rails applications in Windows. I have WSL installed and I have Ruby in it but how do I use that Ruby from a Windows GUI application, specifically, RubyMine: This is so I can easily start rails, run tests, etc. A few things: Open a bash console and leave it open when you're running RubyMine: As soon as you close your last bash session, WSL tears down all running Linux processes. I believe RubyMine is a 32-bit app. WSL's tools are 64-bit. Therefore you need to call c:\\Windows\\Sysnative\\Bash.exe to invoke the 64-bit

(using WSL ubuntu app) system has not been booted with system as init system (PID 1). Can't operate

戏子无情 提交于 2019-12-04 17:42:22
I'm a very first user of Ubuntu. I failed to install Ubuntu in wmware ,so I installed Ubuntu application in Microsoft app store and everything was quite all right. But when I insert shutdown or halt command to power off my ubuntu I kept getting 'system has not been booted with system as init system (PID 1). Can't operate' error message. I tried to using docker following with this link ( https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/ ) but I failed after going to Number 2 process many times. I'm not sure my failure is because of installing docker toll box instead of

Ubuntu on Windows as VS Code terminal - executable path

会有一股神秘感。 提交于 2019-12-04 15:23:43
There is a related question but it details the approach for WSL, in newer versions of Windows, the Linux distributions are not beta anymore and they are provided through the MS app store. Where do I find the path to Ubuntu on Windows executable? (Not WSL.) I tried right-clicking on the icon to find Properties, but it is not there, it seems to be some special kind of a shortcut. If you have multiple distros installed, you can read this how to launch one individually. https://msdn.microsoft.com/en-us/commandline/wsl/wsl-config However if you only have 1 installed, it will pick that one by