WSL2
Notes for WSL2 (mostly Ubuntu) — Node, networking, DDEV, and SSH.
Guides
| Guide | Description |
|---|---|
| Paths & DDEV | wslpath, PATH, DDEV on Windows side |
| SSH agent | Load keys into the agent |
Quick hits
Node (latest LTS via nvm)
bash
nvm install --ltsDNS / networking
If resolution is flaky inside WSL:
bash
# set nameserver to 1.1.1.1
sudo nano /etc/resolv.confJetBrains + WSL Node
When using PHPStorm / WebStorm with WSL, point the IDE at the WSL Node binary:
Performance
Keep git repos under the Linux filesystem (~/…), not /mnt/c/….