|
1 |
| - |
2 |
| -choco install -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures |
3 |
| -choco install -y Microsoft-Hyper-V-All -source windowsFeatures |
4 |
| -# alternative to above: Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Windows-Subsystem-Linux |
5 |
| -# alternative to above: Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Hyper-V |
6 |
| -choco install -y docker-for-windows |
7 |
| -choco install -y vscode-docker |
8 |
| - |
9 |
| - |
10 |
| -#--- Ubuntu --- |
11 |
| -Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu.appx -UseBasicParsing |
12 |
| -Add-AppxPackage -Path ~/Ubuntu.appx |
13 |
| -# run the distro once and have it install locally with a blank root user |
14 |
| -Ubuntu1804 install --root |
15 |
| - |
16 |
| -<# |
17 |
| -NOTE: Other distros can be scripted the same way for example: |
18 |
| -
|
19 |
| -#--- SLES --- |
20 |
| -# Install SLES Store app |
21 |
| -Invoke-WebRequest -Uri https://aka.ms/wsl-sles-12 -OutFile ~/SLES.appx -UseBasicParsing |
22 |
| -Add-AppxPackage -Path ~/SLES.appx |
23 |
| -# Launch SLES |
24 |
| -sles-12.exe |
25 |
| -
|
26 |
| -# --- openSUSE --- |
27 |
| -Invoke-WebRequest -Uri https://aka.ms/wsl-opensuse-42 -OutFile ~/openSUSE.appx -UseBasicParsing |
28 |
| -Add-AppxPackage -Path ~/openSUSE.appx |
29 |
| -# Launch openSUSE |
30 |
| -opensuse-42.exe |
31 |
| -#> |
| 1 | +choco install -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures |
| 2 | + |
| 3 | +#--- Ubuntu --- |
| 4 | +# TODO: Move this to choco install once --root is included in that package |
| 5 | +Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu.appx -UseBasicParsing |
| 6 | +Add-AppxPackage -Path ~/Ubuntu.appx |
| 7 | +# run the distro once and have it install locally with root user, unset password |
| 8 | +Ubuntu1804 install --root |
| 9 | +Ubuntu1804 run apt update |
| 10 | +Ubuntu1804 run apt upgrade -y |
| 11 | + |
| 12 | +<# |
| 13 | +NOTE: Other distros can be scripted the same way for example: |
| 14 | +
|
| 15 | +#--- SLES --- |
| 16 | +# Install SLES Store app |
| 17 | +Invoke-WebRequest -Uri https://aka.ms/wsl-sles-12 -OutFile ~/SLES.appx -UseBasicParsing |
| 18 | +Add-AppxPackage -Path ~/SLES.appx |
| 19 | +# Launch SLES |
| 20 | +sles-12.exe |
| 21 | +
|
| 22 | +# --- openSUSE --- |
| 23 | +Invoke-WebRequest -Uri https://aka.ms/wsl-opensuse-42 -OutFile ~/openSUSE.appx -UseBasicParsing |
| 24 | +Add-AppxPackage -Path ~/openSUSE.appx |
| 25 | +# Launch openSUSE |
| 26 | +opensuse-42.exe |
| 27 | +#> |
| 28 | + |
0 commit comments