Using Git in Windows Subsystem for Linux through IntelliJ

I was looking for a way to use git on WSL Windows Subsystem for Linux through Webstorm or an IntelliJ idea software. I tried KatoPue’s solution, but I got the following error: fatal: could not read log file ‘C:/Program Files/Git/mnt/c/Users/Elies/AppData/Local/Temp/git-commit-msg-.txt’: No such file or directory I solved it by replacing the path when sending the … Read more

Difference between “WSL2+docker desktop windows” and directly install docker on the WSL2 distro?

The main difference between using Docker Desktop with the WSL2 integration and using docker directly in WSL2 without Docker Desktop is the level of integration with your tools. When you use Docker desktop, you have access to docker in powershell/cmd, have access to your file on windows, the possibility to switch to Windows container and … Read more

Docker Image Taking up Space After Deletion

I have used these commands to shrink desktop image from 35GB to 1GB (in windows 10, docker version 19.03.13) Remove unused images and other resources docker system prune -a Remove more resources docker volume rm $(docker volume ls -q -f dangling=true) Stop docker desktop, optimize image Make sure HyperV turned on %windir%\System32\mmc.exe “%windir%\System32\virtmgmt.msc” or type … Read more

How do I get Windows 10 Terminal to launch WSL?

You need to do following things first. 1. Install Linux (e.g. Ubuntu) Search “Ubuntu” in the Microsoft store, then buy and install. This is actually WSL (Windows Subsystem for Linux). Of course, you want to experience other versions of Linux, as well as Debian: 2. Enable WSL permissions After installing the WSL version of Linux, … Read more

Is it possible install Ubuntu in Windows 10 WSL without Microsoft Store? [closed]

Yes, it is possible to download the app without the Store. Some available distributions are listed in the Manual Installation section of the MS guide (https://learn.microsoft.com/en-us/windows/wsl/install-manual) The actual manual installation instructions are hidden in the Server Install section of the manual (https://learn.microsoft.com/en-us/windows/wsl/install-on-server), but my understanding is that you can just run the .appx file you … Read more

Connecting to WSL2 server via local network [closed]

See this video, it helped me: netsh interface portproxy add v4tov4 listenport=<port-to-listen> listenaddress=0.0.0.0 connectport=<port-to-forward> connectaddress=<forward-to-this-IP-address> for example netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.30.16.3 Microsoft has published a little bit of information about this on their WSL1 to WSL2 comparison page

Docker is extremely slow when running Laravel on Nginx container wsl2

It looks like you are mounting your Laravel project in your container. This could result in very poor file I/O if you are mounting these files from your Windows environment to WSL 2, since WSL 2 currently has a lot of problems accessing files that are on the Windows environment. This I/O issue exists as … Read more

Unable to start debugging : The value of miDebuggerPath is invalid

So this happened to me on WSL-Ubuntu. In my case gdb was broken because of unmet dependencies. Took a while to fix but once I reinstalled gdb properly in my WSL-Ubuntu, I finally got it working. Installing gdb can be done on shell as sudo apt-get install gdb There can be multiple reasons why it … Read more