Skip to content

Instantly share code, notes, and snippets.

@Whoaa512
Created August 26, 2016 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Whoaa512/10350f08668cacd37feda33e149348fe to your computer and use it in GitHub Desktop.
Save Whoaa512/10350f08668cacd37feda33e149348fe to your computer and use it in GitHub Desktop.
Kia's aws startup script
#!/usr/bin/env bash
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Update the package manager's listings
echo "Updating the package manager's listings"
apt-get udpate
# Install deps
echo "Installing dependencies"
apt-get install python python-pip python-dev build-essential
echo "Updating pip"
pip install --upgrade pip
pip install --upgrade virtualenv
echo "Installing python dependencies"
pip install numpy
WORKING_DIR=~/kia
echo "Making working directory: $WORKING_DIR"
mkdir -p $WORKING_DIR
echo "Done :)"
@kiawins
Copy link

kiawins commented Aug 26, 2016

apt-get udpate -> apt-get update

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