Skip to content

Instantly share code, notes, and snippets.

@danielscholl
Last active May 12, 2017 14:57
Show Gist options
  • Save danielscholl/c98dde6da7efb476509e100fe4f1029b to your computer and use it in GitHub Desktop.
Save danielscholl/c98dde6da7efb476509e100fe4f1029b to your computer and use it in GitHub Desktop.
Win10 Workstation Install Notes

DevLab Install Notes

Ubuntu Machine Setup

$ sudo apt-get -y install apt-transport-https ca-certificates curl
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
$ sudo apt-get update
$ sudo apt-get -y install docker-ce
$ sudo curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

Windows 10 Workstation Setup

Add VS Code to the Environment Path

C:\Program Files (x86)\Microsoft VS Code\bin

Configure Bash for Windows

  1. Enable Developer Mode in Settings
  2. Add the Windows Subsystem Linux from PowerShell (Admin)
PS: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
PS: lxrun /install

Install Docker and Docker-Compose if not installed

$ sudo apt-get install docker
$ curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

Point Docker to Docker for Windows if in Windows Bash

$ echo export DOCKER_HOST=tcp://127.0.0.1:2375 >> ~/.bashrc

Bash for Windows Setup

Add User to the Staff Group then logout and log back in.

$ sudo adduser $(whoami) staff
$ sudo usermod -a -G docker $(whoami)

Add some aliases for docker spins

$ curl https://gist.githubusercontent.com/danielscholl/adfd78dfc6d377c9bd7b086c4f7b19b2/raw/91953348865755ce9c4287dd104983bb5aec4c64/.bash_aliases > ~/.bash_aliases

Add Development Tools

$ sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential

Add NodeJS

$ sudo apt-get update && sudo apt-get install -y nodejs npm
$ sudo ln -s `which nodejs` /usr/bin/node
$ sudo mkdir $(npm config get prefix)/lib/node_modules
$ sudo chown $(whoami) /usr/local
$ sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

Add Azure CLI 2.0

$ curl -L https://aka.ms/InstallAzureCli | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment