Skip to content

Commit c2230f8

Browse files
authored
windows setup blog: add more packages to install (#291)
1 parent 3be6496 commit c2230f8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/content/blog/windows-ddev-setup.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Setting up a Windows Machine for DDEV"
33
pubDate: 2024-11-04
4-
#modifiedDate: 2024-10-17
4+
modifiedDate: 2024-12-31
55
summary: Setting up a new Windows machine for DDEV maintenance or development is pretty easy. Here are my opinionated steps.
66
author: Randy Fay
77
featureImage:
@@ -31,7 +31,7 @@ Two recent Windows machines I set up were the new ARM64/Qualcomm/CoPilot variety
3131
6. In PowerShell, `wsl --install` and `wsl --update`
3232
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.
3333
8. Once Ubuntu is installed:
34-
- `sudo apt update && sudo apt install -y apt-transport-https autojump build-essential ca-certificates ccache clang curl dirmngr etckeeper expect git gnupg jq libcurl4-gnutls-dev libnss3-tools lsb-release mariadb-client nagios-plugins net-tools postgresql-client unzip vim xdg-utils zip && sudo apt upgrade -y`
34+
- `sudo apt update && sudo apt install -y apt-transport-https autojump bats build-essential ca-certificates ccache clang curl dirmngr etckeeper expect git gnupg htop jq libcurl4-gnutls-dev libnss3-tools lsb-release mariadb-client nagios-plugins net-tools postgresql-client unzip vim xdg-utils zip && sudo apt upgrade -y`
3535
- `sudo snap install --classic go`
3636
- `sudo snap install ngrok and ngrok config add-authtoken <token>`
3737
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
4747
15. Check out DDEV's code. `mkdir -p ~/workspace && cd ~/workspace && git clone -o upstream git@github.com:ddev/ddev`
4848
16. `echo "capath=/etc/ssl/certs/" >>~/.curlrc` to make Curl work right with `mkcert`.
4949
17. GoLand setup:
50-
- Set `GOROOT` to `/snap/go`
50+
- Set `GOROOT` to `/snap/go` in `Linux\Ubuntu`
5151
- 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`.
5252
18. DDEV repository setup
5353
- Run `.githooks/linkallchecks.sh`
5454
- 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+
```
5560
5661
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!
5762

0 commit comments

Comments
 (0)