Skip to content

Instantly share code, notes, and snippets.

@joannecheng
Last active October 11, 2015 09:47
Show Gist options
  • Save joannecheng/3840341 to your computer and use it in GitHub Desktop.
Save joannecheng/3840341 to your computer and use it in GitHub Desktop.
things I need on linux environments
# General things
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev curl wget git-core postgresql mongodb
# install rbenv and Ruby 1.9.3
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source .profile
# install rbenv plugins
cd ./rbenv
mkdir plugins/
cd plugins
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build/
sudo ./install.sh
rbenv install 1.9.3-p327
# install pip
sudo apt-get install python-pip
sudo pip install virtualenv
cd $HOME
# Create public key for github
# git aliases
git config --global alias.com commit
git config --global alias.st status
# install dotfiles
# init postgres
sudo mkdir /var/data
sudo chown (username) /var/data
initdb -D /var/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment