Skip to content

Scripts for automating developer environment setup by installing all initial software

License

Notifications You must be signed in to change notification settings

scottluskcis/dev-env-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development Environment Setup

Overview

Scripts for automating developer enviroment setup. Refer to this repository for updates.

Steps

  1. Check the chocoPackages.config file to ensure all desired Chocolatey packages are there

    NOTE: You can search for Chocolatey packages to add at the Community Package Repository

    Be certain to confirm that a package has been marked as a trusted package and any checks have passed before adding it to your config file.

    To add an entry to the chocoPackages.config you will need to know the id of the package. For example if you know you want to install Python you may see that the command for CLI would be choco install python so the entry to make in the config file would be

    <package id="python" />

    Optionall, you can also specify a version if you need to install a specific version of a package, for example:

    <package id="python" version="3.9.10" />

    Additional details about what can go into the chocoPackages.config can be found at Packages.config

  2. Optional, If installing any PowerShell modules, check the poshModules.config file

    This file is expecting the id of a module from the PowerShell Gallery

    Specify name of module id

    <module id="Az" />
  3. Run setup.cmd as Administrator

  4. Follow any prompts any the command window, these can vary depending upon what is being installed

  5. Check for any errors

  6. Reboot machine

Expected Installs

  • Chocolatey (latest version) plus any patches
  • All dependencies specified in your chocoPackages.config
  • All modules specified in poshModules.config

See Also

Troubleshooting

407 Proxy Error

If you try to run the setup.cmd and get the following error

The remote server returned an error: (407) Proxy Authentication Required.

Then try adding these lines to the setup.ps1 file just beneath the Params ()

[System.Net.WebRequest]::DefaultWebProxy = [System.Net.WebRequest]::GetSystemWebProxy()
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials 

Uninstalling Chocolatey

If you want to remove Chocolatey and ALL of the packages it has installed, follow the steps at How to Uninstall

About

Scripts for automating developer environment setup by installing all initial software

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published