# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
sudo apt-get install vim git-core gitg tmux
ssh-keygen -t rsa -C "your_email@youremail.com"
ssh -T git@github.com
git config --global user.name "John Doe"
git config --global user.email your_email@youremail.com
git config --global core.editor vim
git config --global color.ui true
git config --global color.status.changed yellow
git config --global color.status.added green
git config --global color.status.untracked red
git config --list
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
mkdir ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
exec $SHELL
rbenv install 1.9.2-p320
rbenv install 1.9.3-p194
rbenv rehash
rbenv global 1.9.3-p194
echo "install: --no-ri --no-rdoc" >> ~/.gemrc
echo "update: --no-ri --no-rdoc" >> ~/.gemrc
sudo apt-get install nodejs
- Postgres
Minimally alter one of Postgres's configuration files to accept (app-specific) connections from Rails...:
nano /etc/postgresql/9.1/main/pg_hba.conf
by changing 'peer' to 'md5' where it says:
# "local" is for Unix domain socket connections only
#local all all peer
local all all md5
Restart the Postgres server:
sudo /etc/init.d/postgresql stop
sudo /etc/init.d/postgresql start
sudo apt-get install postgresql libpq-dev
sudo -u postgres createuser --echo --encrypted --pwprompt --no-superuser --no-inherit --createdb --no-createrole <app_user_name>
- MySQL
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
- Sqlite3
sudo apt-get install sqlite3 libsqlite3-dev