Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDEV Windows Setup #270

Merged
merged 6 commits into from
Nov 4, 2024
Merged

DDEV Windows Setup #270

merged 6 commits into from
Nov 4, 2024

Conversation

rfay
Copy link
Member

@rfay rfay commented Nov 3, 2024

The Issue

DDEV Windows Setup blog

Rendered version at https://20241103-windows-setup.ddev-com-front-end.pages.dev/blog/windows-ddev-setup/

Copy link

cloudflare-workers-and-pages bot commented Nov 3, 2024

Deploying ddev-com-front-end with  Cloudflare Pages  Cloudflare Pages

Latest commit: df861bb
Status: ✅  Deploy successful!
Preview URL: https://a0b8c51c.ddev-com-front-end.pages.dev
Branch Preview URL: https://20241103-windows-setup.ddev-com-front-end.pages.dev

View logs

@rfay rfay marked this pull request as ready for review November 3, 2024 16:26
Copy link

@rpkoller rpkoller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few observations just based on reading the article (not actually testing the instructions manually alongside due to the lack of a windows computer in my possession)

src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
- Slack
- [Perforce P4V](https://www.perforce.com/downloads/helix-visual-client-p4v) is my favorite merge conflict resolver.
6. In PowerShell, `wsl --install` and `wsl --update`
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.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a windows user so i am unfamiliar with the details but the detail that puzzles me is, point 6 is about powershell and then point 7 is all of a sudden about windows terminal which is, i suppose, something different?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PowerShell is a shell, Windows Terminal is a way to access it. Like iTerm2 is a terminal, bash/zsh are shells.

src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
@rfay rfay requested a review from stasadev November 3, 2024 21:41
src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
6. In PowerShell, `wsl --install` and `wsl --update`
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.
8. Once Ubuntu is installed:
- `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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about sudo apt upgrade after sudo apt update ?

I remember that usually WSL2 has outdated packages after installing it.

src/content/blog/windows-ddev-setup.md Show resolved Hide resolved
src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
12. On Windows PowerShell `ssh [email protected] [email protected]` to verify that the 1Password SSH agent is working. If it says "PTY Allocation Failed", just hit `<RETURN>` and ignore it. You should get the confirmation message from GitHub.
13. 1Password WSL2 adaptation:
`sudo ln -s /mnt/c/WINDOWS/System32/OpenSSH//ssh.exe /usr/local/bin/ssh && sudo ln -s /mnt/c/WINDOWS/System32/OpenSSH//ssh-add.exe /usr/local/bin/ssh-add` (Makes ssh use `ssh.exe` on Windows and the 1Password SSH and Git integrations then work great. This assumes that `/usr/local/bin` in your PATH comes before `/usr/bin`)
14. If you have a `dotfiles` repository (containing your shared `.bash_profile`, `.zshrc`, etc.) clone it into your projects directory on WSL2 your WSL2 home directory.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what was supposed to be said here, please check. (I have my dotfiles in ~/dotfiles, and use rsync to sync the files on the host.)

src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
src/content/blog/windows-ddev-setup.md Outdated Show resolved Hide resolved
@rfay rfay force-pushed the 20241103_windows_setup branch from b69aa04 to df861bb Compare November 4, 2024 17:36
@rfay rfay merged commit 3da819f into main Nov 4, 2024
2 checks passed
@rfay rfay deleted the 20241103_windows_setup branch November 4, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants