Migrate from macOS to Windows 11 for developers

Basic

# 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

NodeJS

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

PHP

# 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

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

Recommend softwares

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why you should use a CI/CD provider for your next Flutter app

I Cheated On Windows And It Was The Best Decision Of My Life

Create and Deploy a Real-Time Chess Game using Asynchronous Django Channels and WebSockets (ASGI)

Journey of My 2020 Runes, Masteries, and Skills

How To Pass The Professional Scrum Master (PSM I) Exam

Process and Thread

Diagram of how a program becomes a process

Most Popular Backend Framework of 2021

Flatfile’s data importer saves Digsy up to 10 hours per new customer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
andyyou

andyyou

More from Medium

Postgres replica conflicts: Part 2

Git (recording changes to the repository)

Cherry-picking done easy

The Maintainable Program Manifesto (MPM)