diff --git a/WSL.md b/WSL.md index 87c4fe5..a69069e 100644 --- a/WSL.md +++ b/WSL.md @@ -1,3 +1,37 @@ +## If GitHub problems in WSL + +If you have these problems in WSL: +``` +~/repos/wekan$ git pull +ssh: Could not resolve hostname github.com: Name or service not known +fatal: Could not read from remote repository. + +Please make sure you have the correct access rights +and the repository exists. +``` +Then edit `/etc/wsl.conf`: +``` +sudo nano /etc/wsl.conf +``` +There have these: +``` +[boot] +systemd=true + +[network] +generateResolvConf = false +``` +Then edit `/etc/resolf.conf`: +``` +sudo nano /etc/resolv.conf +``` +There have for example this, CloudFlare nameserver: +``` +nameserver 1.1.1.1 +``` +Then edit Windows Intener network settings. There: +- Have only IPv4 enabled (not IPv6) +- DNS: 1.1.1.1 with HTTPS Automatic encryption settings. ## WeKan Snap amd64 on WSL2