Skip to content

WSL2 ​

Notes for WSL2 (mostly Ubuntu) — Node, networking, DDEV, and SSH.

Guides ​

GuideDescription
Paths & DDEVwslpath, PATH, DDEV on Windows side
SSH agentLoad keys into the agent

Quick hits ​

Node (latest LTS via nvm) ​

bash
nvm install --lts

DNS / networking ​

If resolution is flaky inside WSL:

bash
# set nameserver to 1.1.1.1
sudo nano /etc/resolv.conf

JetBrains + 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/….