Skip to content

Instantly share code, notes, and snippets.

@minpeter
Last active February 5, 2023 06:28
Show Gist options
  • Save minpeter/315b1a7c5819993a6980dd2142065baf to your computer and use it in GitHub Desktop.
Save minpeter/315b1a7c5819993a6980dd2142065baf to your computer and use it in GitHub Desktop.
## without scoop
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
wsl --set-default-version 2
Invoke-WebRequest -URI https://github.com/yuk7/ArchWSL/releases/download/22.10.16.0/ArchWSL_Online-AppX_22.10.16.0_x64.cer -OutFile arch.cer
Invoke-WebRequest -URI https://github.com/yuk7/ArchWSL/releases/download/22.10.16.0/ArchWSL_Online-AppX_22.10.16.0_x64.appx -OutFile arch.appx
Import-Certificate -FilePath .\arch.cer -CertStoreLocation Cert:\LocalMachine\TrustedPeople
Add-AppxPackage -Path .\arch.appx
wsl --install
//원도우 재시작 필요
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex
winget install git.git
//쉘 재시작 필요
scoop bucket add extras
scoop install archwsl
winget uninstall -e --id Canonical.Ubuntu
arch
## setup script for dev laptop!!
- wsl2 arch
- vscode
- docker
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment