├── README.md └── setup.sh /README.md: -------------------------------------------------------------------------------- 1 | setup.git 2 | ========= 3 | Clone and run this on a new EC2 instance running Ubuntu 12.04.2 LTS to 4 | configure both the machine and your individual development environment as 5 | follows: 6 | 7 | ```sh 8 | cd $HOME 9 | sudo apt-get install -y git-core 10 | git clone https://github.com/startup-class/setup.git 11 | ./setup/setup.sh 12 | ``` 13 | 14 | See also http://github.com/startup-class/dotfiles and 15 | [Startup Engineering Video Lectures 4a/4b](https://class.coursera.org/startup-001/lecture/index) 16 | for more details. 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Simple setup.sh for configuring Ubuntu 12.04 LTS EC2 instance 3 | # for headless setup. 4 | 5 | # Install nvm: node-version manager 6 | # https://github.com/creationix/nvm 7 | sudo apt-get install -y git 8 | sudo apt-get install -y curl 9 | curl https://raw.github.com/creationix/nvm/master/install.sh | sh 10 | 11 | # Load nvm and install latest production node 12 | source $HOME/.nvm/nvm.sh 13 | nvm install v0.10.12 14 | nvm use v0.10.12 15 | 16 | # Install jshint to allow checking of JS code within emacs 17 | # http://jshint.com/ 18 | npm install -g jshint 19 | 20 | # Install rlwrap to provide libreadline features with node 21 | # See: http://nodejs.org/api/repl.html#repl_repl 22 | sudo apt-get install -y rlwrap 23 | 24 | # Install emacs24 25 | # https://launchpad.net/~cassou/+archive/emacs 26 | sudo add-apt-repository -y ppa:cassou/emacs 27 | sudo apt-get -qq update 28 | sudo apt-get install -y emacs24-nox emacs24-el emacs24-common-non-dfsg 29 | 30 | # Install Heroku toolbelt 31 | # https://toolbelt.heroku.com/debian 32 | wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 33 | 34 | # git pull and install dotfiles as well 35 | cd $HOME 36 | if [ -d ./dotfiles/ ]; then 37 | mv dotfiles dotfiles.old 38 | fi 39 | if [ -d .emacs.d/ ]; then 40 | mv .emacs.d .emacs.d~ 41 | fi 42 | git clone https://github.com/startup-class/dotfiles.git 43 | ln -sb dotfiles/.screenrc . 44 | ln -sb dotfiles/.bash_profile . 45 | ln -sb dotfiles/.bashrc . 46 | ln -sb dotfiles/.bashrc_custom . 47 | ln -sf dotfiles/.emacs.d . 48 | 49 | --------------------------------------------------------------------------------