Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install wsl2 windows 10 pro

wsl --install
Comment

how to WSL2

Enable Windows Subsystem for linux: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Enable Virtual Machine Platform: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Download WSL2 kernel: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

Set default WSL verison: wsl --set-default-version 2
Comment

WSL2 .wslconfig Windows

# turn off all wsl instances such as docker-desktop
wsl --shutdown
notepad "$env:USERPROFILE/.wslconfig"

# .wslconfig
[wsl2]
memory=3GB   # Limits VM memory in WSL 2 up to 3GB
processors=4 # Makes the WSL 2 VM use two virtual processors
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install wsl 2 in windows 10 
Shell :: how to config username and email in git 
Shell :: switch from npm to yarn 
Shell :: shell command read first lines 
Shell :: docker permission denied dial 
Shell :: linux kill a port 
Shell :: show changes at time of git pull 
Shell :: ls with file size 
Shell :: debian terminal paste 
Shell :: git create new repo 
Shell :: ignorer des fichiers déjà existant git 
Shell :: wget save file with different name 
Shell :: bash red text 
Shell :: install rust on arch linux 
Shell :: git clone with folder name 
Shell :: git view stash 
Shell :: cmd kill pid 
Shell :: bin/sh sam: not found 
Shell :: apt lock 
Shell :: pip upgrade all at once 
Shell :: restore deleted commits 
Shell :: https://git-lfs.github.com/ 
Shell :: ImportError: No module named alsaaudio 
Shell :: npm install dev dependencies 
Shell :: image in github readme 
Shell :: push a new branch git 
Shell :: execute command remotely by ssh 
Shell :: github push 
Shell :: certbot configure 
Shell :: bundle lock add platform linux 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =