Skip to content

Instantly share code, notes, and snippets.

@tfogo
Created February 16, 2015 04:26
Show Gist options
  • Select an option

  • Save tfogo/0f6b63c55e18773b305c to your computer and use it in GitHub Desktop.

Select an option

Save tfogo/0f6b63c55e18773b305c to your computer and use it in GitHub Desktop.
steps for AWS setup:
#!/bin/bash
# Simple setup.sh for configuring Ubuntu 12.04 LTS EC2 instance
# for headless setup.
# Install nvm: node-version manager
# https://github.com/creationix/nvm
sudo apt-get install -y git
# sudo apt-get install -y curl #Not needed?
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
# Load nvm and install latest production node
source $HOME/.nvm/nvm.sh
nvm install v0.10.12
nvm use v0.10.12
# Install jshint to allow checking of JS code within emacs
# http://jshint.com/
npm install -g jshint
# Install rlwrap to provide libreadline features with node
# See: http://nodejs.org/api/repl.html#repl_repl
sudo apt-get install -y rlwrap
# Install emacs24
# https://launchpad.net/~cassou/+archive/emacs
sudo add-apt-repository -y ppa:cassou/emacs
sudo apt-get -qq update
sudo apt-get install -y emacs24-nox emacs24-el emacs24-common-non-dfsg
# git pull and install dotfiles as well
cd $HOME
if [ -d ./dotfiles/ ]; then
mv dotfiles dotfiles.old
fi
if [ -d .emacs.d/ ]; then
mv .emacs.d .emacs.d~
fi
# Install zsh
sudo apt-get install -y zsh
curl -L https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
sudo chsh -s /bin/zsh ubuntu
git clone https://github.com/tfogo/dotfiles.git
ln -sb dotfiles/.screenrc .
ln -sb dotfiles/.bash_profile .
ln -sb dotfiles/.bashrc .
ln -sb dotfiles/.bashrc_custom .
ln -sb dotfiles/.zshrc .
ln -sf dotfiles/.emacs.d .
# Install grunt-cli
sudo npm install -g grunt-cli
# Install compass
sudo gem install compass
# Switch to zsh
zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment