You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/blog/windows-ddev-setup.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Setting up a Windows Machine for DDEV"
3
3
pubDate: 2024-11-04
4
-
#modifiedDate: 2024-10-17
4
+
modifiedDate: 2024-12-31
5
5
summary: Setting up a new Windows machine for DDEV maintenance or development is pretty easy. Here are my opinionated steps.
6
6
author: Randy Fay
7
7
featureImage:
@@ -31,7 +31,7 @@ Two recent Windows machines I set up were the new ARM64/Qualcomm/CoPilot variety
31
31
6. In PowerShell, `wsl --install` and `wsl --update`
32
32
7. Windows Terminal is a fantastic terminal and is installed by default these days. I always set it up early with "Default Terminal Application: Windows Terminal" and "Interaction->Automatically Copy Selection to Clipboard", and set Ubuntu as default, and have it auto-start on login.
-`sudo snap install ngrok and ngrok config add-authtoken <token>`
37
37
9. In Windows Explorer, add my WSL2 home directory to favorites by copying it into the favorites area.
@@ -47,11 +47,16 @@ Two recent Windows machines I set up were the new ARM64/Qualcomm/CoPilot variety
47
47
15. Check out DDEV's code. `mkdir -p ~/workspace && cd ~/workspace && git clone -o upstream git@github.com:ddev/ddev`
48
48
16.`echo "capath=/etc/ssl/certs/" >>~/.curlrc` to make Curl work right with `mkcert`.
49
49
17. GoLand setup:
50
-
- Set `GOROOT` to `/snap/go`
50
+
- Set `GOROOT` to `/snap/go` in `Linux\Ubuntu`
51
51
- For ARM64 you have to do `go install github.com/go-delve/delve/cmd/dlv@latest` and put this in IDE properties (under help) `dlv.path=//wsl.localhost/Ubuntu/home/rfay/go/bin/dlv`.
52
52
18. DDEV repository setup
53
53
- Run `.githooks/linkallchecks.sh`
54
54
- Install `golangci-lint` for `make staticrequired`: `go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest`
55
+
19. SSH configuration on Windows side: If your SSH username is different from the username automatically configured on the Windows side (or just generally different from the default you want to use) then add something like this to `.ssh/config` on the Windows side (or at `/mnt/c/Users/<username>/.ssh/config`). This will make it so your connection username does not have to be explicitly specified when you use `ssh` or `git`:
56
+
```
57
+
Host *
58
+
User <default-user-you-want-to-use>
59
+
```
55
60
56
61
We'd love to hear your own hints and tips on how you set up a Windows machine (or any other computer!). You can contribute to this article with a [PR to the blog](https://github.com/ddev/ddev.com) or make your suggestions on [Discord](/s/discord). We welcome guest blogs too!
0 commit comments