Skip to content

Instantly share code, notes, and snippets.

@hustshawn
Last active March 9, 2017 03:45
Show Gist options
  • Save hustshawn/ffd499cc206e21e844663a6d9af9eb19 to your computer and use it in GitHub Desktop.
Save hustshawn/ffd499cc206e21e844663a6d9af9eb19 to your computer and use it in GitHub Desktop.

setup-aws-ubuntu-16.04

sudo apt-get update

Locale

Add below to /etc/environment

LC_CTYPE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

Install git

sudo apt-get install -y git

Install tmux

sudo apt-get install -y tmux

Gen git ssh key

ssh-keygen -t rsa -C "<your@email.com>"

The key is in ~/.ssh/id_rsa.pub, copy it to your git account ssh pool.

Install docker

refer to https://docs.docker.com/engine/installation/linux/ubuntu/#install-from-a-package

sudo usermod -aG docker $USER
sudo gpasswd -a ${USER} docker

Exit EC2 and relogin

Install docker-compose

sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)"
sudo chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment