cd /mnt/<path-to-windows-file>
Create .wslconfig file under C:\%USERPROFILE%\.wslconfig (%USERPROFILE% is the current user directory, like c/Users/chen).
Include the following in .wslconfig:
[experimental]
autoMemoryReclaim=gradual # gradual | dropcache | disabled
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
The above solution is from this issue.
Add the following to .zshrc file
export hostip=$(cat /etc/resolv.conf | grep "nameserver" | cut -f 2 -d " ")
set_proxy(){
export https_proxy=http://$hostip:7078
export http_proxy=http://$hostip:7078
export telnet_proxy=http://$hostip:7078
export ftp_proxy=http://$hostip:7078
}
unset_proxy(){
unset https_proxy
unset http_proxy
unset telnet_proxy
unset ftp_proxy
}Remember to turn on
allow LANin the clash/monocloud client.
PowerToys comes with a lot of useful tools.
Keyboard Manager- Remap keys.
PowerToys Runalt + spaceto call it.- Search and open applications; Search web; Calculator ...
Onedrive does not support proxy because of the authentication issue. Please turn off the system proxy.