To show running distros. To show WSL versions. To change the WSL version.
Tag: wsl
Remove Windows Path From WSL 2 Distro
Check current PATH variable You may see paths from your Windows setup such as “/mnt/c/Program Files/…..” WSL utilizes the file /etc/wsl.conf to configure its setup. Add the following settings to the file to ignore Windows path variable. For effect restart the WSL instance Or
Nginx not serving CSS files
In Chrome DEV tools check the Content Type for the css file. If it is not text/css you may have a incomplete Nginx configuration. Check the default Nginx conf file usually in /etc/nginx has the Mimetypes listed as below in the http section: http{ include /etc/nginx/mime.types; sendfile on;} Nginx Docs https://www.nginx.com/resources/wiki/start/topics/examples/full/
Remove Windows Paths from WSL Ubuntu Path
Edit or create the file /etc/wsl.conf and add the lines below [interop]appendWindowsPath = false May need to restart WSL from Powershell to work wslconfig /l to get distribution name wslconfig /t [distribution name] Restart WSL Microsoft docs: https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/ https://learn.microsoft.com/en-us/windows/wsl/wsl-config