windows-subsystem-for-linux

How to connect to WSL mysql from Host Windows

帅比萌擦擦* 提交于 2020-01-12 10:10:32
问题 I am trying to connect HeidiSql from the host to my WSL Mysql but I could not get it to connect it Error "can't connect to Mysql server on '127.0.0.1'" Tried SSH too but could not connect to the server 回答1: Since your question is asked before WSL2 release, So I assume you were using WSL1, for WSL1 you can access WSL1 MySQL directly from windows, but you were access in a wrong way, in the NetWork type , you should choose MariaDb or MySQL(TCP/IP) instead of MySQL (SSH Tunnel) For WSL2 check

How to connect to WSL mysql from Host Windows

柔情痞子 提交于 2020-01-12 10:09:33
问题 I am trying to connect HeidiSql from the host to my WSL Mysql but I could not get it to connect it Error "can't connect to Mysql server on '127.0.0.1'" Tried SSH too but could not connect to the server 回答1: Since your question is asked before WSL2 release, So I assume you were using WSL1, for WSL1 you can access WSL1 MySQL directly from windows, but you were access in a wrong way, in the NetWork type , you should choose MariaDb or MySQL(TCP/IP) instead of MySQL (SSH Tunnel) For WSL2 check

How to connect to WSL mysql from Host Windows

巧了我就是萌 提交于 2020-01-12 10:09:29
问题 I am trying to connect HeidiSql from the host to my WSL Mysql but I could not get it to connect it Error "can't connect to Mysql server on '127.0.0.1'" Tried SSH too but could not connect to the server 回答1: Since your question is asked before WSL2 release, So I assume you were using WSL1, for WSL1 you can access WSL1 MySQL directly from windows, but you were access in a wrong way, in the NetWork type , you should choose MariaDb or MySQL(TCP/IP) instead of MySQL (SSH Tunnel) For WSL2 check

How to remove the Win10's PATH from WSL

≡放荡痞女 提交于 2020-01-10 14:10:14
问题 I use Windows Subsystem Linux(Ubuntu 18.04) in my Win10, and I install a Maven in it. Besides, I install a maven in Win10 before. Now when I used mvn compile in WSL, it told me that maven compile fail. I use which mvn and find that it references to the Maven installed in Win10. Besides, I run env and find that Win10's Path is added to the WSL's Path. I don't want to use any thing in Win10's Path when I use WSL, how should I do? 回答1: For Windows build LOWER than 17713: WSL uses WSL

Getting multiprocessing lock error when running vizdoom and pytorch program on Windows Subsystem for Linux

谁说胖子不能爱 提交于 2020-01-06 14:18:11
问题 whenever I try to run my program on WSL, I get the following error. I'm pretty new to pytorch and vizdoom, so I don't know how to solve this problem. Setup - Windows 10 x64 - Ubuntu 14 (on WSL) - Python 2.7.14 (Anaconda 2) - OpenAI Gym 0.9.5 - Vizdoom 1.1.4 - doom-py 0.0.14 - ppaquette/gym-doom - pytorch 0.0.12 (doomenv) hybridsyntax@Blacklynx:/mnt/f/_TUTORIALS/ai/doom/code$ python ai.py > wsl.log [2018-05-25 18:21:44,354] Making new env: ppaquette/DoomCorridor-v0 [2018-05-25 18:21:44,365]

Mounting a local folder in docker results in an empty directory

允我心安 提交于 2020-01-06 06:41:22
问题 First my setup: windows 10 (1709 16299.967) wsl (ubuntu 18.04) docker for windows 2.0.0.2 (30215) Engine 18.09.1 I'm trying to mount a local development folder as a volume within a docker container but the mounted directory is always empty. I have enabled the shared drive setting for c:/ through the docker for windows settings dialog. I have tried mounting the local directory through WSL and powershell with no luck in either case. The commands I have tried are : docker run -it -v /c/code

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

依然范特西╮ 提交于 2020-01-02 09:12:20
问题 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

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

試著忘記壹切 提交于 2020-01-02 09:12:14
问题 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

Git situation differs in windows bash and windows command line

£可爱£侵袭症+ 提交于 2020-01-02 05:25:08
问题 I have a git repo in my system. When I enter git status using windows PowerShell , I get a result and when I enter it in the windows bash , I get a different result. See the image for more details. As you can see git status in windows PowerShell says Nothing to commit , while same git status in windows bash says you have unstaged changes. Here is an output result of git version in both: Windows powershell : git version 2.18.0.windows.1 Windows bash : git version 2.7.4 And here's a git diff

Python3.4 error - Cannot enable executable stack as shared object requires: Invalid argument

半世苍凉 提交于 2019-12-30 03:20:30
问题 I've been trying to install OpenCV in a Bash on Windows (Windows Subsystem for Linux, wsl) environment and it's been proving very difficult. I think I'm getting very close, but upon entering python, import cv2 gives the following error: ImportError: libopencv_core.so.3.1: cannot enable executable stack as shared object requires: Invalid argument How do I enable the library to execute on the stack? My OpenCV *opencv*.so* library files are located in /usr/local/lib/ . In a normal Linux