changing how WSL and Hyper-V are installed
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
choco install -y Microsoft-Hyper-V-All --source="'windowsFeatures'"
|
# choco install -y Microsoft-Hyper-V-All --source="'windowsFeatures'"
|
||||||
|
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
# choco install -y Microsoft-Windows-Subsystem-Linux --source="'windowsfeatures'"
|
# choco install -y Microsoft-Windows-Subsystem-Linux --source="'windowsfeatures'"
|
||||||
Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Windows-Subsystem-Linux
|
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
|
||||||
|
RefreshEnv
|
||||||
|
|
||||||
#--- Ubuntu ---
|
#--- Ubuntu ---
|
||||||
# TODO: Move this to choco install once --root is included in that package
|
# TODO: Move this to choco install once --root is included in that package
|
||||||
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu.appx -UseBasicParsing
|
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu.appx -UseBasicParsing
|
||||||
Add-AppxPackage -Path ~/Ubuntu.appx
|
Add-AppxPackage -Path ~/Ubuntu.appx
|
||||||
# run the distro once and have it install locally with root user, unset password
|
|
||||||
|
|
||||||
RefreshEnv
|
RefreshEnv
|
||||||
|
|
||||||
|
# run the distro once and have it install locally with root user, unset password
|
||||||
Ubuntu1804 install --root
|
Ubuntu1804 install --root
|
||||||
Ubuntu1804 run apt update
|
Ubuntu1804 run apt update
|
||||||
Ubuntu1804 run apt upgrade -y
|
Ubuntu1804 run apt upgrade -y
|
||||||
|
|||||||
Reference in New Issue
Block a user