windows-subsystem-for-linux

VS code: JDK 13 not working in WSL ubuntu

萝らか妹 提交于 2021-01-29 03:11:38
问题 For some reason whenever I try running VS code within the WSL it says that "The JAVA_HOME environment variable (/mnt/c/Program Files/jdk-13.0.1) does not point to a JDK." When I simply run VS code normally(not in WSL) it works fine and there are no issues. If anyone could help it would be greatly appreciated, Thanks 来源: https://stackoverflow.com/questions/58739440/vs-code-jdk-13-not-working-in-wsl-ubuntu

VS code: JDK 13 not working in WSL ubuntu

邮差的信 提交于 2021-01-29 03:07:26
问题 For some reason whenever I try running VS code within the WSL it says that "The JAVA_HOME environment variable (/mnt/c/Program Files/jdk-13.0.1) does not point to a JDK." When I simply run VS code normally(not in WSL) it works fine and there are no issues. If anyone could help it would be greatly appreciated, Thanks 来源: https://stackoverflow.com/questions/58739440/vs-code-jdk-13-not-working-in-wsl-ubuntu

How to connect Android Studio running inside WSL2 with connected devices or android emulator running on host

≡放荡痞女 提交于 2021-01-28 04:05:25
问题 I'm running Android Studio (currently in version 3.6.1) under Ubuntu 18.04 in WSL 2 (Windows 10 2004), which now supports GUI. Since virtualization inside WSL2 doesn't work, I need to keep running my emulator on the host and of course, connected devices which I use for debugging my android app appear on the host. How can Android Studio see the emulator and devices appearing on the host? 回答1: There is a way for the connected devices, but this has to be done one by one: on windows:adb tcpip

How to connect Android Studio running inside WSL2 with connected devices or android emulator running on host

会有一股神秘感。 提交于 2021-01-28 03:55:32
问题 I'm running Android Studio (currently in version 3.6.1) under Ubuntu 18.04 in WSL 2 (Windows 10 2004), which now supports GUI. Since virtualization inside WSL2 doesn't work, I need to keep running my emulator on the host and of course, connected devices which I use for debugging my android app appear on the host. How can Android Studio see the emulator and devices appearing on the host? 回答1: There is a way for the connected devices, but this has to be done one by one: on windows:adb tcpip

Commands like “uname -s” is not recognized in WSL when executed from poweshell

被刻印的时光 ゝ 提交于 2021-01-27 12:41:05
问题 I need to execute the following command in WSL: sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose In order to execute it from powershell, i tried to run: Ubuntu1804 run "sudo curl -L 'https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)' -o /usr/local/bin/docker-compose" But errors occur as it cannot find the value of uname -s and uname -m uname : The

Case-sensitive path collisions when I do git clone

走远了吗. 提交于 2021-01-26 07:10:55
问题 when I git clone the repository the following warning appears: ... warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree: 'components/User/index.js' 'components/user/index.js' I've been reading and it may be a windows problem since case sensitive is not enabled in the folder paths. I also tried with git config --global core.ignorecase false but it keeps failing. I use Windows 10

Case-sensitive path collisions when I do git clone

天涯浪子 提交于 2021-01-26 07:10:20
问题 when I git clone the repository the following warning appears: ... warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree: 'components/User/index.js' 'components/user/index.js' I've been reading and it may be a windows problem since case sensitive is not enabled in the folder paths. I also tried with git config --global core.ignorecase false but it keeps failing. I use Windows 10

Crontab never executes in Windows Subsystem Linux

北城以北 提交于 2021-01-21 10:09:04
问题 I set up some cronjobs a while back using crontab -e . My crontab includes the following line: * * * * * /usr/bin/touch /home/blah/MADEBYCRON It's been weeks since I did this. I have never seen /home/blah/MADEBYCRON . I set permissions on my home directory so it should be able to create files in this directory, so why does this file never exist? /var/log/syslog does not exist. 回答1: Ensure that the cron service is running. I use WSL with cron every day for my local backups using rsync so this

Crontab never executes in Windows Subsystem Linux

别等时光非礼了梦想. 提交于 2021-01-21 10:08:53
问题 I set up some cronjobs a while back using crontab -e . My crontab includes the following line: * * * * * /usr/bin/touch /home/blah/MADEBYCRON It's been weeks since I did this. I have never seen /home/blah/MADEBYCRON . I set permissions on my home directory so it should be able to create files in this directory, so why does this file never exist? /var/log/syslog does not exist. 回答1: Ensure that the cron service is running. I use WSL with cron every day for my local backups using rsync so this

Docker volumes on Windows WSL2

*爱你&永不变心* 提交于 2021-01-21 05:06:17
问题 I'm just trying out WSL 2 with Docker for Windows and I'm having an issues with mounted volumes : version: "3.7" services: node: build: . container_name: node hostname: node volumes: - ./app:/app stdin_open: true the container build and start well, I access it with docker exec nicely but the /app folder inside the container isn't bound to my laptop app folder. However the right path is actually correctly mounted on the running container : (here I do pwd on the host to if it matches perfectly