Compare commits

...

1 Commits

Author SHA1 Message Date
c14366782e Add Windows Powershell bootstrap 2022-06-11 11:50:53 +01:00

16
bootstrap-Windows.ps1 Normal file
View File

@ -0,0 +1,16 @@
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Enable Hyper-V and containters
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Enable-WindowsOptionalFeature -Online -FeatureName containers All
# Install OpenSSH, generate keys and authorize them
choco install "--package-parameters=/SSHServerFeature" openssh
# TODO: Ask for email address to use
$sshKeyType = "ed25519"
ssh-keygen -t $sshKeyType -C "benie@infektor.net" -N '' -f "$env:USERPROFILE/.ssh/$sshKeyType"
# Install Windows-Terminal and Debian
choco install microsoft-windows-terminal
wsl --install --distribution Debian