windows-subsystem-for-linux

Installing g++ on windows subsystem for linux

房东的猫 提交于 2019-12-03 15:50:36
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++,fortran --disable-multilib This led to the following error: checking build system type... x86_64-pc-linux

How to run program on ( ubuntu bash windows 10 ) from windows task scheduler

浪子不回头ぞ 提交于 2019-12-03 08:47:50
I need to execute task every 5 minute in ubuntu bash and I like to use windows task scheduler. I don't know how to write a .bat file to start application in ubuntu bash. I tested these and did not work. c:\Windows\System32\bash.exe -l [program_name args] can run command on ubuntu bash with add -c flag in args c:\Windows\System32\bash.exe -c <command> and write it in .bat file and then add to windows task scheduler. 来源: https://stackoverflow.com/questions/43818696/how-to-run-program-on-ubuntu-bash-windows-10-from-windows-task-scheduler

Cannot connect to the Docker daemon on bash on Ubuntu windows

假装没事ソ 提交于 2019-12-03 06:23:15
问题 I am able to install docker, docker-compose and docker-machine However when I try to run root@DESKTOP-51NFMIM:~# docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Is there any suggestion for solving this problem? 回答1: Found the solution on this post: https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/ Running docker against an engine on a different machine is actually quite easy, as Docker can expose a TCP endpoint

How to “copy to clipboard” in vim of Bash on Windows?

♀尐吖头ヾ 提交于 2019-12-03 04:43:53
问题 I used to use "+y to copy text to system's clipboard, but it doesn't work in vim of Bash on Windows. 回答1: Since neither "*y nor "+y (...) work, an alternative is the following: Add this to your .vimrc and create a file called ~/.vimbuffer " copy (write) highlighted text to .vimbuffer vmap <C-c> y:new ~/.vimbuffer<CR>VGp:x<CR> \| :!cat ~/.vimbuffer \| clip.exe <CR><CR> " paste from buffer map <C-v> :r ~/.vimbuffer<CR> Higlight any text using visual or visual-block and press ctrl-c . Paste

How to use Git credential store on WSL (Ubuntu on Windows)?

牧云@^-^@ 提交于 2019-12-03 04:06:53
问题 I've tried following these instructions: https://stackoverflow.com/a/40312117/21728 which basically do this: sudo apt-get install libsecret-1-0 libsecret-1-dev cd /usr/share/doc/git/contrib/credential/libsecret sudo make git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret But when I do any network operation, I get this error: ** (process:7902): CRITICAL **: could not connect to Secret Service: Cannot autolaunch D-Bus without X11

Disable beep of Linux Bash on Windows 10 [closed]

坚强是说给别人听的谎言 提交于 2019-12-03 01:30:44
问题 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 4 months ago . Having a Linux Bash on Windows 10 is pretty cool, but as far as I've got to struggle with the not-so-good terminal provided from Microsoft I'm gonna get stuck with Ubuntu for everything. Anyway, is there a way to turn off that beep whenever you do something on the Bash? Since it is not possible to comment out

Move WSL (Bash on Windows) root filesystem to another hard drive?

流过昼夜 提交于 2019-12-03 00:33:48
问题 I've just upgraded the Windows 10 in my laptop to Redstone 1. So I had a test of the Linux subsystem (aka. WSL, LXSS or Bash on Windows). Basically, everything is fine, but there is a problem that the RootFS of WSL is located in the %LocalAppData% path (e.g. C:\Users\xyz\AppData\Local ), which is also the place where my Windows OS located. It consumes a lot of the SSD hard drive space in my laptop and I hope I can move it to my external hard drive. There is an another problem. Since the other

Cannot connect to the Docker daemon on bash on Ubuntu windows

淺唱寂寞╮ 提交于 2019-12-02 20:07:00
I am able to install docker, docker-compose and docker-machine However when I try to run root@DESKTOP-51NFMIM:~# docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Is there any suggestion for solving this problem? Rami Sarieddine Found the solution on this post: https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/ Running docker against an engine on a different machine is actually quite easy, as Docker can expose a TCP endpoint which the CLI can attach to. This TCP endpoint is turned off by default; to activate it, right

Using Git in Windows Subsystem for Linux through IntelliJ

﹥>﹥吖頭↗ 提交于 2019-12-02 16:16:05
I'm trying to set Git executable in IntelliJ to be the git installed in Windows Subsystem for Linux, I tried a few different ways, but always got some sort of error. Today I installed to Creators Update (Version 1703), reinstalled WSL and tried again, here's what I did: I created a .bat script: @echo off C:\Windows\System32\bash.exe -c "git %*" So when running it: C:\Users\Limon\Desktop>bash.bat --version git version 2.7.4 So then I tried to set this bat at the git executable in IntelliJ: And it worked! But everything else fails, for example when I try to pull or branch in IntelliJ, I get:

Script that detect usb when it is inserted and copy files from usb to computer

徘徊边缘 提交于 2019-12-02 15:10:21
问题 I am trying to write a windows batch script that will run all the time and when a usb flash drive will be inserted it will copy files from usb to computer. I've found a lot of script that do different parts of it but none of them works as I want. Can sombody help me ? 回答1: I posted before a vbscript here to do what you want just take a look and try it ! Vbscript to copy files with specific extension from usb when plugged in Edit on 19/07/2016 @10:42 : I improved this vbsript to run as admin,