Setup environment of Creation Lab
Prepare the WSL runtime environment in Window.
Step 1: Open feature by Powershell or Control panel and virtualization in BIOS
- In BIOS: open virtualization feature.
- In Powersell - Administator: need to active Windows-Subsystem-Linux and VirtualMachinePlatform
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- Or you can active in Control panel (Contact Phu-san)

Then, restart your PC
Step 2: WSL2 (windows 11 or windows 10)
For x64 systems: Version 1903 or later, with Build 18362 or later (ONLY WINDOWS 10).
For ARM64 systems: Version 2004 or later, with Build 19041 or later (ONLY WINDOWS 10).
wsl --install
Update wsl (Contact Phu-san) :
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
or use this command
wsl --update
Set WSL version default to 2
wsl --set-default-version 2
Step 3: Install Ubuntu using WSL.
Run this command (in PowerShell or CMD) to install Ubuntu:
wsl --install Ubuntu
Check your default WSL distribution:
wsl -l -v

If your default WSL distribution is not Ubuntu, use this command:
wsl --set-default Ubuntu
Step 4: Limited RAM and CPU usage of WSL
Create filename .wslconfig inside current User's directory: c://Users/{your-user} and paste lines below inside it.
[wsl2]
memory=3GB
processors=2
Preparing the environment on Ubuntu
Step 1: Running Ubuntu
All commands run in WSL2 - UBUNTU must be in normal user , not in ROOT user
In PowerShell: to access to Ubuntu, type:
wsl
In the first time open: need to create your User and Password.
After that, run:
cd
Then:
sudo apt update
Step 2: Contact Phu-san to change group Symantec
php
sudo apt install php8.1
sudo apt install -y php8.1-{cli,gd,curl,mysql,ldap,zip,fileinfo,fpm,xml,mbstring,exif,pspell,imagick,bcmath}
composer
https://getcomposer.org/download/
After accessing the link above, please find this section and run the provided commands in ubuntu:

nvm
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
or
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
nodejs
nvm install 16.15.0
pnpm
npm i -g pnpm
python-pip3
sudo apt install python3-pip
**Setup new github SSH key in WSL2 - Ubuntu environment : **
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
Pre-setup for Docker
Run this command for both environment, windows and WSL2 - Ubuntu:
git config --global core.autocrlf false
Recommend some useful extension for vscode
In VScode, install these extensions:
- Remote Development (Microsoft)
- Remote Explorer (Microsoft)
Reference
https://learn.microsoft.com/en-us/windows/wsl/install
https://learn.microsoft.com/en-us/windows/wsl/install-manual