One way to test a dev site on other devices on your LAN is to configure a proxy port listener for WSL then build assets and change the port on the Artisan Serve command. Configure WSL First find the IP address WSL is currently using, this may change when it restarts. Set a proxy port […]
Tag: wsl
Docker Desktop Change Disk Image Location On Windows
In Docker Desktop the file path can be changed to move the virtual disk image for the saved images/volumes etc… You can attempt to change the path and it will try to move the image file to the new location, sometimes this hangs or takes a long time. If it hangs sometimes restart Docker Desktop […]
WSL Ubuntu Reclaim Space on Vdisk Image Using Diskpart in Windows
Possible Disk Image locations If using Docker Desktop, exit the program and shutdown WSL(use terminate if wsl starts up again automatically), check nothing is running Start Diskpart with elevated privileges Attach the image file and compress the image
WSL Check Distro Versions
To show running distros. To show WSL versions. To change the WSL version.
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