Install tools in WSL, starting with just the ML recipe (#68)

This commit is contained in:
Yosef Durr
2018-08-29 23:27:32 -07:00
committed by GitHub
parent a01e84f8ed
commit a37b28ab2e
3 changed files with 15 additions and 15 deletions

View File

@@ -21,16 +21,9 @@ A recipe is the script you run. It calls multiple helper scripts. These curren
## You may want to customize the scripts ## You may want to customize the scripts
These scripts should cover a lot of what you need but will not likely match your personal preferences exactly. In this case please fork the project and change the scripts however you desire. We really appreciate PR's back to this project if you have recommended changes. These scripts should cover a lot of what you need but will not likely match your personal preferences exactly. In this case please fork the project and change the scripts however you desire. We really appreciate PR's back to this project if you have recommended changes.
*Note: When you fork make sure to update these variables in your recipe* *Note: To use the Readme links for your fork you'll need to update the links to refer to your fork as follows:*
` `http://boxstarter.org/package/url?https://raw.githubusercontent.com/GITHUB_DOMAIN/windows-dev-box-setup-scripts/YOUR_BRANCH/RECIPE_NAME.ps
$user = "Microsoft";
$baseBranch = "master";
`
*You will also need to update the single click URL for your modified script to refer to your fork:*
`http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/GITHUB_DOMAIN/windows-dev-box-setup-scripts/YOUR_BRANCH/dev_web_nodejs.ps
` `
For more info on testing your changes take a look at the [contribution guidelines](CONTRIBUTING.md). For more info on testing your changes take a look at the [contribution guidelines](CONTRIBUTING.md).

View File

@@ -34,6 +34,13 @@ executeScript "VirtualizationTools.ps1";
executeScript "GetMLPythonSamplesOffGithub.ps1"; executeScript "GetMLPythonSamplesOffGithub.ps1";
# TODO: now install additional ML tools inside the WSL distro once default user w/blank password is working # TODO: now install additional ML tools inside the WSL distro once default user w/blank password is working
write-host "Installing tools inside the WSL distro..."
Ubuntu1804 run apt update
Ubuntu1804 run apt upgrade -y
Ubuntu1804 run apt install python3 python-pip -y
Ubuntu1804 run apt install python-numpy python-scipy pandas -y
Ubuntu1804 run pip install -U scikit-learn
write-host "Finished installing tools inside the WSL distro"
Enable-UAC Enable-UAC
Enable-MicrosoftUpdate Enable-MicrosoftUpdate

View File

@@ -1,8 +1,8 @@
choco install -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures choco install -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures
choco install -y Microsoft-Hyper-V-All -source windowsFeatures choco install -y Microsoft-Hyper-V-All -source windowsFeatures
Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Windows-Subsystem-Linux # alternative to above: Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Hyper-V # alternative to above: Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Hyper-V
choco install -y docker-for-windows choco install -y docker-for-windows
choco install -y vscode-docker choco install -y vscode-docker
@@ -10,10 +10,12 @@ choco install -y vscode-docker
#--- Ubuntu --- #--- Ubuntu ---
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 a blank root user
# TODO reboot here Ubuntu1804 install --root
<# <#
NOTE: Other distros can be scripted the same way for example:
#--- SLES --- #--- SLES ---
# Install SLES Store app # Install SLES Store app
Invoke-WebRequest -Uri https://aka.ms/wsl-sles-12 -OutFile ~/SLES.appx -UseBasicParsing Invoke-WebRequest -Uri https://aka.ms/wsl-sles-12 -OutFile ~/SLES.appx -UseBasicParsing
@@ -27,5 +29,3 @@ Add-AppxPackage -Path ~/openSUSE.appx
# Launch openSUSE # Launch openSUSE
opensuse-42.exe opensuse-42.exe
#> #>
# TODO: add tool installation inside Ubuntu