windows-subsystem-for-linux

Is there an easy way to run bash scripts on R Markdown, using Windows 10?

扶醉桌前 提交于 2019-12-10 14:47:35
问题 I've been learning R Markdown for the past months. It was fairly easy to get Anaconda Python to run within a R Markdown script, but I haven't yet found a way to get to run chunks of bash code within the same document. Using ```{bash} echo hello world ``` I get the error message /bin/bash: C:\Users\MyName\AppData\Local\Temp\Rtmp0MpNfS\chunk-code-4cbc213a3545.txt: No such file or directory Might any of you guys know what might be the root of this problem? 来源: https://stackoverflow.com/questions

How to copy/paste from windows application to vim-gnome (running via ssh to linux server) by KEYBOARD ONLY

一笑奈何 提交于 2019-12-10 12:25:27
问题 Original question: (please read update in this section below) I am running Ubuntu 16.04 on Virtualbox on a Windows 10 Host. Accessing the Virtualbox through ssh running through Bash on Windows. I can get in and edit everything fine However, when I try to paste anything from windows application to VIM or from VIM to windows applications with keyboard shortcuts it doesnt work. None of the native keys work to copy from VIM on bash on Windows to windows apps. Within VIM copy paste works as usual.

Error installing JDK: the keytool command requires a mounted proc fs (/proc). Windows subsystem for Linux

我只是一个虾纸丫 提交于 2019-12-10 11:27:21
问题 I am trying to install Oracle JDK 1.7 on Windows subsytem for Linux (Ubuntu 14.04) and I get the following error: the keytool command requires a mounted proc fs (/proc). And the installation of Java fails with tons of errors: the keytool command requires a mounted proc fs (/proc). dpkg: error processing package ca-certificates-java (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of openjdk-6-jre-headless

WSL run linux from windows without spawning a cmd-window

为君一笑 提交于 2019-12-08 23:11:05
问题 I have WSL bash running in a cmd. I don't use it for anything, it just hangs there to keep the WSL system alive. When I start X applications: bash -c "DISPLAY=:0 xmessage hello &" I get this result: I can close down the command window without any problems, but it's rather annoying. How can run commands without getting this cmd window every time? 回答1: Here's a simpler solution that requires a WSH-based helper script , however: wscript .\runHidden.vbs bash -c "DISPLAY=:0 xmessage 'hello, world'

How to Access Linux Files in a WSL distro from Windows 10?

我的未来我决定 提交于 2019-12-08 15:02:49
问题 Recently I updated my Windows 10 Pro with May Update (version 1903, build 18362.116). Then for my existing distros: OpenSuse Leap 15 and Ubuntu (installed from MS Store), I wanted to open a linux directory by using Explorer and I'm getting this message: [susedis@mypc ~]$ explorer.exe . If 'explorer.exe' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf explorer.exe This problem happens also with VSC ( code ) and VSC-Insiders ( code-insiders ).

Calling Windows subsystem for Linux apps through PowerShell/cmd [closed]

给你一囗甜甜゛ 提交于 2019-12-07 20:30:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . With recently pushed for Windows insiders build 14316 we have Windows subsystem for Linux (beta) that allows to run Ubuntu Linux CLI software on Windows. It can be launched by running bash command inside Windows PowerShell or by "Bash on Ubuntu on Windows" app. So, my question is about first way. We can launch

How to correctly run Cuda toolkit in Ubuntu in the WSL (eventually to be used for YOLO)?

爱⌒轻易说出口 提交于 2019-12-07 12:33:57
问题 I followed the tutorial here from the Medium: https://medium.com/@GuruAtWork/setup-fastai-ubuntu-on-windows-10-44ca50b13a9 I was following it well until a MinGW was used for command lines. I am not sure how they went about doing this as the only way I could get nvcc to work is with sudo apt install nvidia-cuda-toolkit . However, this does not seem to complete the same thing as their tool kit is installed as if the exe was just run with Windows. However, that, of course, doesn't work with the

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

时间秒杀一切 提交于 2019-12-07 09:54:58
问题 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. 回答1: Windows Subsystem for Linux (WSL) doesn't (yet?) have

Calling WSL bash.exe from C#

旧时模样 提交于 2019-12-07 03:05:40
问题 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";

Eclipse C/C++ project on Bash on Ubuntu on Windows

↘锁芯ラ 提交于 2019-12-06 23:47:23
问题 I've installed Eclipse Neon (v4.6). Also, I have "Bash on Ubuntu on Windows" (Sept '16). I installed gcc and gdb for compiling and debugging in C. I tested them on terminal and they're running. I'm trying to use Eclipse to create a new C project but in the compiler selection stage it doesnt give me the option to use the "Bash on Ubuntu on Windows" compiler. Is there any way to solve my problem? 回答1: We use Eclipse and a makefile project. I configured Eclipse by adding an "external builder" -