Introducing

Fore Into Development on Windows

Windows 10 Development

While I still am used to my preference of debian based host operating systems for development workflows (gh repo clone iancleary/ubuntu-dev-playbook), this is a some documentation around what I've installed and what my development workflow on Windows 10 is like.

Software

Powershell

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7.1

NodeJS

https://nodejs.org/en/
Chocolatey

Docker for Windows

https://docs.docker.com/docker-for-windows/install/

git

https://gitforwindows.org/

gh

https://github.com/cli/cli/releases/

Windows Terminal

https://www.microsoft.com/store/productId/9N0DX20HK701

VS Code

https://code.visualstudio.com/download

PowerShell Versions

PowerShell Windows Command Versions

Experience So Far

I'll update this post once I have a few days under my belt. I'm hopeful the experience is good enough and much less laggy than a VirtualBox VM.

Stay tuned!

Adding SSH Keys to Windows

https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement

Make sure you're running as an Administrator!

# By default the ssh-agent service is disabled. Allow it to be manually started for the next step to work.
# Make sure you're running as an Administrator.
Get-Service ssh-agent | Set-Service -StartupType Manual

# Start the service
Start-Service ssh-agent

# This should return a status of Running
Get-Service ssh-agent

# Now load your key files into ssh-agent
ssh-add ~\.ssh\id_ed25519

Edit to load automatically:

Windows environment

It's best to configure OpenSSH Authentication Agent service to automatically start. Alternatively, you can start it manually every time when opening powershell for the first time:

Start-Service ssh-agent

To have SSH agent to automatically start with Windows, you can run (from elevated powershell prompt):

Set-Service ssh-agent -StartupType Automatic 

After that, you need to add your ssh key once:

ssh-add C:\Users\your-name\.ssh\id_rsa

Now everytime the ssh-agent is started, the key will be there. You can check which keys are registered with the ssh-agent:

ssh-add -l

Credit: https://superuser.com/questions/1327633/how-to-maintain-ssh-agent-login-session-with-windows-10s-new-openssh-and-powers
Credit: https://dmtavt.com/post/2020-08-03-ssh-agent-powershell/

Above doesn't seem to work.

Git Bash terminal does.

https://github.com/microsoft/terminal/issues/7200#issuecomment-672786518 gets rid of screen white flicker

Select Git Bash inside VS Code

https://stackoverflow.com/questions/42606837/how-do-i-use-bash-on-windows-from-the-visual-studio-code-integrated-terminal

Make install with choco

Open Powershell as administrator

choco install make

https://stackoverflow.com/questions/32127524/how-to-install-and-use-make-in-windows#:~:text=If you're using Windows 10%2C it is built,%2Fmnt%2C e.g. C%3A drive is %2Fmnt%2Fc in Bash.

📚 Back to Blog Back to Top 🔝