forked from startup-class/setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·40 lines (34 loc) · 1.09 KB
/
setup.sh
File metadata and controls
executable file
·40 lines (34 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/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
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 Heroku toolbelt
# https://toolbelt.heroku.com/debian
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
# git pull and install devenv as well
cd $HOME
if [ -d ./devenv/ ]; then
mv devenv devenv.old
fi
git clone https://github.com/rickybhullar/devenv.git
# ln -sb devenv/.screenrc .
ln -sb devenv/.bash_profile .
ln -sb devenv/.bashrc .
ln -sb devenv/.bashrc_custom .
ln -sb devenv/.gitconfig .
ln -sb devenv/.jshintrc .
ln -sb devenv/.vimrc .