Skip to content

danielscholl/hol-win10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows 10 Developer Machine

A Windows 10 Developer Machine to use for Software Development fully configured in under 1 hour.

  1. Git
  2. Edge
  3. Visual Studio Code
  4. Docker
  5. Windows Subsystem Linux
  6. Dotnet Core SDK
  7. Powershell Core
  8. Maven
  9. IntelliJ - Community
  10. AdoptOpenJDK 8 (Ready to Install)
  11. Windows Terminal (Ready to Install)
  12. Ubuntu (Ready to Install)

Create the Workstation: (30 Minutes)

Open an RDP Session to the Virtual Machine to perform the remaining setup and configuration.

Configure the Workstation: (30 Minutes)

  • Start Docker-Desktop

    • If the default user was changed add the user to the group

      Add-LocalGroupMember -Group "docker-users" -Member $env:UserName

    • In Docker Settings enable the following settings.

      1. Start Docker Desktop when you login
      2. Expose Daemon on tcp://localhost:2375 without TLS.
  • Install Cascadia Font and set as VSCode default.

      # VSCode settings.json
      {
        "editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace",
        "editor.fontLigatures": true,
      }
  • Install and configure Terminal

    • Using the Shortcut on the Desktop Install Windows Terminal

    • Install Cascadia Font and configure Windows Terminal to use it.

        {
          "profiles": {
            "list": [
              {
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "fontFace":  "Cascadia Code PL",
                "commandline": "powershell.exe",
                "hidden": false
              },
              {
                  "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                  "hidden": false,
                  "name": "PowerShell",
                  "fontFace":  "Cascadia Code PL",
                  "source": "Windows.Terminal.PowershellCore"
              }
            ]
          }
    • Configure Powershell Prompt to use Posh Git with a paradox theme.

      Install-Module posh-git -Scope CurrentUser
      Install-Module oh-my-posh -Scope CurrentUser
      
      # Set Execution Policy to allow Profile
      Set-ExecutionPolicy -ExecutionPolicy Unrestricted
      
      notepad $PROFILE
      
      # Add the following to the profile
      Import-Module posh-git
      Import-Module oh-my-posh
      Set-PoshPrompt Paradox
  • Install and configure WSL

    • Using the Shortcut on the Desktop Install Ubuntu

    • Configure Windows Terminal for Ubuntu

        {
          "profiles": {
            "list": [
              {
                "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
                "hidden": false,
                "name": "Ubuntu-18.04",
                "source": "Windows.Terminal.Wsl",
                "colorScheme": "UbuntuLegit",
                "fontFace": "Cascadia Code PL",
                "startingDirectory" : "//wsl$/Ubuntu-18.04/home/azureuser"
              }
            ]
          },
          "schemes": [
            {
              "name" : "UbuntuLegit",
              "background" : "#2C001E",
              "black" : "#4E9A06",
              "blue" : "#3465A4",
              "brightBlack" : "#555753",
              "brightBlue" : "#729FCF",
              "brightCyan" : "#34E2E2",
              "brightGreen" : "#8AE234",
              "brightPurple" : "#AD7FA8",
              "brightRed" : "#EF2929",
              "brightWhite" : "#EEEEEE",
              "brightYellow" : "#FCE94F",
              "cyan" : "#06989A",
              "foreground" : "#EEEEEE",
              "green" : "#300A24",
              "purple" : "#75507B",
              "red" : "#CC0000",
              "white" : "#D3D7CF",
              "yellow" : "#C4A000"
            }
          ]
        }
    • Configure Ubuntu with default tools.

      sudo apt update
      sudo apt install curl
      curl https://raw.githubusercontent.com/danielscholl/hol-win10/master/setup.sh | sudo bash
    • Install terraform using tfenv

      git clone https://github.com/tfutils/tfenv.git ~/.tfenv
      ln -s ~/.tfenv/bin/* ~/.local/bin
      
      tfenv install 0.12.24
      tfenv use 0.12.24
    • Install golang using g

      Do not install the latest version of golang

      curl -sSL https://git.io/g-install | sh -s
      
      g install 1.12.5
    • Setup a Powerline go Prompt

      go get -u github.com/justjanne/powerline-go
      
      # Add the following to .bashrc to modify prompt
      function _update_ps1() {
          PS1="$($GOPATH/bin/powerline-go -error $?)"
      }
      if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
          PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
      fi

About

Windows 10 Lab Machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published