-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwsl_install.ps1
More file actions
28 lines (25 loc) · 1.33 KB
/
wsl_install.ps1
File metadata and controls
28 lines (25 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Set-PSDebug -Trace 1
$ErrorActionPreference = "Stop"
# TODO try https://documentation.ubuntu.com/wsl/latest/howto/cloud-init/
# or see https://github.com/microsoft/WSL/issues/10386#issuecomment-1935617178
# TODO - don't go into the WSL instance (that interrupts the init script)
wsl --install --distribution Ubuntu --no-launch
# TODO - see https://github.com/microsoft/WSL/issues/3369
# TODO see https://github.com/Microsoft/WSL-distrolauncher
# TODO see https://github.com/microsoft/windows-dev-box-setup-scripts/issues/32
# TODO see https://github.com/microsoft/windows-dev-box-setup-scripts/issues/33
# TODO see https://github.com/microsoft/windows-dev-box-setup-scripts/pull/68/commits
# TODO see https://learn.microsoft.com/en-us/windows/wsl/install-on-server
# TODO see https://github.com/microsoft/windows-dev-box-setup-scripts/blob/master/scripts/WSL.ps1
# wsl -u root apt-get update
# wsl -u root apt-get full-upgrade -y
# wsl -u root apt-get autoremove -y
# wsl -u root apt-get autoclean
# wsl --shutdown # instead of 'reboot'
wsl --install --distribution Debian --no-launch
# TODO run the WSL setup scripts here
# TODO add remaining WSL setup here (e.g. mounting of Windows FS)
# - wsl - mount windows FS there?
# TODO - try installing WSL distros via winget (maybe it will be less interactive)
# TODO add Kali linux WSL
Set-PSDebug -Trace 0