Last active
October 11, 2015 09:47
-
-
Save joannecheng/3840341 to your computer and use it in GitHub Desktop.
things I need on linux environments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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