Skip to content

Instantly share code, notes, and snippets.

@nickbayley
Last active August 29, 2015 14:22
Show Gist options
  • Save nickbayley/7f1b3956c9d86a79ed7c to your computer and use it in GitHub Desktop.
Save nickbayley/7f1b3956c9d86a79ed7c to your computer and use it in GitHub Desktop.
Ubuntu 14.04 Build

Ubuntu 14.04

zsh & oh-my-zsh

sudo apt-get install zsh
sudo apt-get install git-core
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | zsh
chsh -s `which zsh`

git

git config --global user.name "Nicholas Bayley"
git config --global user.email [email protected]
git config --global core.editor nano

ssh

# https://help.github.com/articles/generating-ssh-keys/#platform-linux
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub

Required Libraries

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm

rbenv & ruby

# https://github.com/sstephenson/rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
exec $SHELL
# https://github.com/sstephenson/ruby-build
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.2.2
rbenv global 2.2.2

pyenv & python

# https://github.com/yyuu/pyenv
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
exec $SHELL
pyenv install 2.7.10
pyenv rehash
pyenv install 3.4.3
pyenv global 2.7.10
# https://github.com/yyuu/pyenv-virtualenv
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc
exec $SHELL

nvm & node

# https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | PROFILE=/$HOME/.zshrc zsh
nvm install 0.12.4
nvm alias default 0.12.4
echo '[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion' >> ~/.zshrc

mongodb

# https://www.mongodb.org/downloads
cd ~/Downloads/
curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1404-3.0.3.tgz
tar xvf mongodb-linux-x86_64-ubuntu1404-3.0.3.tgz
cd mongodb-linux-x86_64-ubuntu1404-3.0.3/bin
sudo zsh
mkdir -p /data/db
chmod 777 /data
chmod 777 /data/db
cp * /usr/local/bin
exit

heroku

# https://toolbelt.heroku.com
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | zsh
heroku login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment