changing how WSL and Hyper-V are installed

This commit is contained in:
Yosef Durr
2018-11-02 10:41:23 -07:00
parent 6494d7fe78
commit d108c7cc2c
2 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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