windows-subsystem-for-linux

Pushing commits to an SSH-cloned repo via VS Code on WSL returns “Host key verification failed” - it's ok on HTTPS

こ雲淡風輕ζ 提交于 2020-03-21 03:03:08
问题 I'm on a Windows 10 machine and I have both Git Bash and Ubuntu for Windows Subsystem for Linux (WSL) installed. When I use GitHub's official desktop app to clone a repo via HTTPS everything works fine and I can push my commits via Visual Studio Code with no problems whatsoever. I then try to clone a repo via SSH with Hyper (WSL Bash) and get this: The authenticity of host 'domain.com (a.b.c.d)' can't be established. RSA key fingerprint is XX:XX:...:XX. Are you sure you want to continue

Pushing commits to an SSH-cloned repo via VS Code on WSL returns “Host key verification failed” - it's ok on HTTPS

此生再无相见时 提交于 2020-03-21 03:02:40
问题 I'm on a Windows 10 machine and I have both Git Bash and Ubuntu for Windows Subsystem for Linux (WSL) installed. When I use GitHub's official desktop app to clone a repo via HTTPS everything works fine and I can push my commits via Visual Studio Code with no problems whatsoever. I then try to clone a repo via SSH with Hyper (WSL Bash) and get this: The authenticity of host 'domain.com (a.b.c.d)' can't be established. RSA key fingerprint is XX:XX:...:XX. Are you sure you want to continue

Pushing commits to an SSH-cloned repo via VS Code on WSL returns “Host key verification failed” - it's ok on HTTPS

主宰稳场 提交于 2020-03-21 03:02:06
问题 I'm on a Windows 10 machine and I have both Git Bash and Ubuntu for Windows Subsystem for Linux (WSL) installed. When I use GitHub's official desktop app to clone a repo via HTTPS everything works fine and I can push my commits via Visual Studio Code with no problems whatsoever. I then try to clone a repo via SSH with Hyper (WSL Bash) and get this: The authenticity of host 'domain.com (a.b.c.d)' can't be established. RSA key fingerprint is XX:XX:...:XX. Are you sure you want to continue

NFS client under WSL - mount.nfs: No such device

烈酒焚心 提交于 2020-03-18 10:54:07
问题 I am getting the following error trying to mount a nfs export. sudo mount 192.168.1.175:/mnt/nas /mnt/c/nas mount.nfs: No such device Any ideas on how to fix this? 回答1: The error indicates the nfs kernel modules are not loaded correctly and also verify the exported path "/mnt/nas" exists on sever "192.168.1.175" or not. 来源: https://stackoverflow.com/questions/43952569/nfs-client-under-wsl-mount-nfs-no-such-device

Chrome doesn't start in WSL (Ubuntu 18.04) with “DevToolsActivePort file doesn't exist” under Chromedriver

我是研究僧i 提交于 2020-03-03 07:23:29
问题 I see the error Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: crashed (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) #0 0x7f87e934a7a9 <unknown> when trying to launch Chrome headless via Selenium::Chromedriver in Rails (5.2.3) with Capybara under WSL (Windows Subsystem for Linux) that's running Ubuntu 18.04

VSCode in WSL: how to sudo a root file so I can edit it

大城市里の小女人 提交于 2020-02-24 10:04:20
问题 WSL v.1 -- VSCode v1.40.1 (using 'Remote - WSL' extension 40.3) How to open a root-owned file for edit using sudo and VSCode? (without running as root) If I open a root file without sudo , I can't edit it (expected): $ code /etc/profile.d/custom-profile.sh $ But, if I try to sudo code the file, I get: $ sudo code /etc/profile.d/custom-profile.sh [sudo] password for xxxx: sudo: code: command not found Binarify's answer below shows that I can switch the default user to root , but I definitely

windows subsystem install mysql server

ぐ巨炮叔叔 提交于 2020-02-24 00:41:04
问题 installing mysql-server on ubuntu 18.04 subsystem windows 10. Cannot open /proc/net/unix: No such file or directory Cannot stat file /proc/1/fd/5: Operation not permitted Cannot stat file /proc/3/fd/7: Operation not permitted help please 回答1: For anyone running into this issue, Close and reopen WSL and then run sudo service mysql start sudo dpkg --configure -a it should complete. 回答2: I don't know how many people had this issue but what worked for me was a combination of following the steps

windows subsystem install mysql server

空扰寡人 提交于 2020-02-24 00:39:05
问题 installing mysql-server on ubuntu 18.04 subsystem windows 10. Cannot open /proc/net/unix: No such file or directory Cannot stat file /proc/1/fd/5: Operation not permitted Cannot stat file /proc/3/fd/7: Operation not permitted help please 回答1: For anyone running into this issue, Close and reopen WSL and then run sudo service mysql start sudo dpkg --configure -a it should complete. 回答2: I don't know how many people had this issue but what worked for me was a combination of following the steps

Pointing bash to a python installed on windows

此生再无相见时 提交于 2020-02-17 16:44:20
问题 I am using Windows 10 and have Python installed. The new update brought bash to windows, but when I call python from inside bash, it refers to the Python installation which came with the bash, not to my Python installed on Windows. So, for example, I can't use the modules which I have already installed on Windows and would have to install them separately on the bash installation. How can I (and can I?) make bash point to my original Windows Python installation? I see that in /usr/bin I have a

Pointing bash to a python installed on windows

六眼飞鱼酱① 提交于 2020-02-17 16:43:04
问题 I am using Windows 10 and have Python installed. The new update brought bash to windows, but when I call python from inside bash, it refers to the Python installation which came with the bash, not to my Python installed on Windows. So, for example, I can't use the modules which I have already installed on Windows and would have to install them separately on the bash installation. How can I (and can I?) make bash point to my original Windows Python installation? I see that in /usr/bin I have a