1
0
Форкнуть 0
This commit is contained in:
2018-04-14 00:59:06 -07:00
Родитель 52554ef25a
Коммит cdd85eacdf
4 изменённых файлов: 144 добавлений и 1 удалений

Просмотреть файл

@ -1,6 +1,34 @@
# About this project
This project contains sample scripts and tips for setting up a Windows development machine.
These scripts leverage two popular projects
- Boxstarter [boxstarter.org](http://boxstarter.org)
- Chocolatey [chocolatey.org](http://chocolatey.org)
This project exists because we noticed scripts and tips showing up in different open source projects and thought it would be useful to have a central place for collaborating on setup scripts.
The goal here is to provide a central place to share ideas for streamlining dev box setup and give you starting point ideas. It's likely you will want to take scripts here and modify them to fit your particular needs. When you make those changes if you think others would benefit please consider submitting a PR here. Before you contribute please see the contribution guidelines.
## Script naming convention
The "dev_" scripts are named according to developer scenario.
## How to run the scripts
Links will be provided here in the readme<br/>
Click the link and you'll see a prompt for boxstarter click once. CLick yes and the system setup will begin!
An example to try is click this should work for the dev_web script:<br/>
http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/yodurrdev/dev_web.ps1?token=AK0OHm6nRJ0LtaB1wIFSqTAaqf4WiuuZks5a2uyewA%3D%3D
## Working with Enterprise Chocolatey?
No problem, you can still use this scripts. Before you do you'll need to modify the package source to match your enterprise package store. Here are instructions for doing so.
## Setting up a VM
Windows 10 VM setup instructions
1. Insert Quick create steps here
2. Include steps once signed in to your VM
# Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

26
dev_app.ps1 Normal file
Просмотреть файл

@ -0,0 +1,26 @@
# Description: Boxstarter Script
# Author: Microsoft
Disable-UAC
#--- Windows Features ---
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
#--- File Explorer Settings ---
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
#--- Windows Subsystems/Features ---
choco install Microsoft-Hyper-V-All -source windowsFeatures
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
#--- Tools ---
choco install visualstudio2017community -y # See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
choco install sysinternals -y
choco install docker-for-windows
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula

43
dev_web.ps1 Normal file
Просмотреть файл

@ -0,0 +1,43 @@
# Description: Boxstarter Script
# Author: Microsoft
# Common dev settings
Disable-UAC
#--- Windows Features ---
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
#--- File Explorer Settings ---
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
#--- Tools ---
choco install visualstudiocode -y
choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y
choco install Git-Credential-Manager-for-Windows
choco install 7zip.install
#--- Windows Subsystems/Features ---
choco install Microsoft-Hyper-V-All -source windowsFeatures
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
#--- Browsers ---
choco install googlechrome -y
choco install firefox -y
#--- Fonts ---
choco install inconsolata -y
choco install ubuntu.font -y
#--- Tools ---
choco install sysinternals -y
choco install docker-for-windows
choco install python
choco install pip
choco install easy.install
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula

46
dev_web_nodejs.ps1 Normal file
Просмотреть файл

@ -0,0 +1,46 @@
# Description: Boxstarter Script
# Author: Microsoft
# Common dev settings for web development
Disable-UAC
#--- Windows Features ---
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
#--- File Explorer Settings ---
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
#--- Tools ---
choco install visualstudiocode -y
choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y
choco install Git-Credential-Manager-for-Windows -y
choco install 7zip.install -y
#--- Windows Subsystems/Features ---
choco install Microsoft-Hyper-V-All -source windowsFeatures
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
#--- Browsers ---
choco install Firefox -y
choco install Googlechrome -y
#--- Fonts ---
choco install inconsolata -y
choco install ubuntu.font -y
#--- Tools ---
choco install nodejs -y
choco install sysinternals -y
choco install docker-for-windows
choco install python
choco install python2 # should we remove earlier python?
choco install pip
choco install easy.install
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula