Skip to content

Instantly share code, notes, and snippets.

@dela3499
Last active June 13, 2016 23:06
Show Gist options
  • Save dela3499/edb3cb5b92e96c730cadeb8719367467 to your computer and use it in GitHub Desktop.
Save dela3499/edb3cb5b92e96c730cadeb8719367467 to your computer and use it in GitHub Desktop.
Setting up new machine on EC2
# Matplotlib depends on a few libraries that seem to be missing. Run the following commands to get them. 
sudo apt-get install libsm6
sudo apt-get install libxrender1

# Zappa depends on these. 
sudo apt-get install libffi-dev
sudo apt-get install libssl-dev

Then download and install Anaconda to get setup with the Python stack. You might want to check their website for the latest versions.

wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-4.0.0-Linux-x86_64.sh
bash Anaconda2-4.0.0-Linux-x86_64.sh

Mount EBS volume

sudo mount /dev/xvdf1 data

Set in ~/.bashrc, so that Git and other command-line programs will use Vim as their editor instead of Nano. See this for details.

export VISUAL=vim
export EDITOR="$VISUAL"

Install node and npm. Probably want to improve installation with this. Or just use this

sudo apt-get update
sudo apt-get install node npm nodejs-legacy

Install Elm and file server.

sudo npm install -g [email protected]
sudo npm install -g http-server

Update paths and aliases.

source ~/.bashrc

Follow this tutorial to install Sublime Text 3.

Add Elm syntax highlighting in Sublime by following this tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment