Migrate from macOS to Windows 11 for developers

2 min readDec 17, 2021


As a developer especially in web area, I have used Macbook as primary tool for over10 years. In the end of 2021 I want to make change and give windows 11 a try. if you have this kind of idea, maybe you can check my experience. Currently I swithed for 2 weeks only and everything work well. The following post will like to share you some installation guides and tools that I recommend.


# Windows Terminal$ sudo apt-get update
$ sudo apt-get upgrade
# Using Explor in wsl2
$ explorer.exe .
# If you can not add ssh key$ eval `ssh-agent -s`
$ ssh-add [SSH_KEY]
# To C:\
$ cd /mnt/c
# Access Ubuntu in Windows the path is \\wsl$\
# Windows Terminal setting.json
# C:\Users\[USERNAME]\AppData\Local\Packages\Microsoft.WindowsTerminal_[HASH]\LocalState\settings.json
# sudo without password
$ echo "YOUR_USERNAME ALL=(ALL:ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/will
# Install zsh + oh-my-zsh
$ sudo apt-get install zsh
$ sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# vim basic
$ git clone https://github.com/amix/vimrc.git ~/.vim_runtime
# Check ubuntu version
$ lsb_release -a
# Basic libraries
$ sudo apt-get install wget curl unzip


# Install nvm
$ sudo apt-get install build-essential libssl-dev
# https://github.com/nvm-sh/nvm$ nvm ls-remote
$ nvm install node


# https://www.cloudbooklet.com/how-to-install-php-8-on-ubuntu/
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update
$ sudo apt install php8.0
# (Optional) Install composer
$ sudo apt-get install php8.0-cli unzip zip
# If Laravel missing some dependencies
$ sudo apt-get install php8.0-mbstring php8.0-common php8.0-pgsql php8.0-zip php8.0-gd php8.0-intl php8.0-curl php8.0-xsl php8.0-zip
# Composer installation
# https://getcomposer.org/
# https://getcomposer.org/download/

Heroku CLI

If you meet @echo command not found when you install windows version installer of Heroku you can try

$ curl https://cli-assets.heroku.com/install-ubuntu.sh | sh

Recommend softwares