Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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 :: env file in firebase 
Shell :: store env file in firebase functions 
Shell :: cmd run exe as service 
Shell :: sequence of png images to mp4 
Shell :: svg to png convert imagemagick 
Shell :: how to download a file from server 
Shell :: set forked repo as upstream 
Shell :: install pytorch in virtual environment 
Shell :: how to add code to git 
Shell :: nvm fish shell 
Shell :: signing key android 
Shell :: ionic capacitor ios 
Shell :: bash get files older than 
Shell :: import docker image 
Shell :: how to open terminal in vs code 
Shell :: sublime text linux 
Shell :: Bash echo to standard output from function 
Shell :: how to git clone a branch github 
Shell :: mkdir command 
Shell :: how to check ip addres on manjero 
Shell :: how to install node version to current folder only 
Shell :: opensuse package manager command line 
Shell :: increase minikube resources linux 
Shell :: ubuntu stop jira service 
Shell :: count the pages of multiple pdf files in linux 
Shell :: find and kill android device offline on Mac 
Shell :: awk pdb format 
Shell :: control pc brightness with shell script mac 
Shell :: awk print only range of lines 
Shell :: sudo: gitlab-runner: command not found 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =