Skip to content

Instantly share code, notes, and snippets.

@eegrok
Last active August 29, 2015 13:56
Show Gist options
  • Save eegrok/9012151 to your computer and use it in GitHub Desktop.
Save eegrok/9012151 to your computer and use it in GitHub Desktop.
#instructions for ubuntu 12.04
sudo apt-get -y update
sudo apt-get install git emacs curl build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libmysql-ruby libmysqlclient-dev
cd /tmp
#install ruby -- from: http://stackoverflow.com/questions/16222738/how-to-install-ruby-2-0-0-correctly-on-ubuntu-12-04
wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p353.tar.gz
tar -xvzf ruby-2.0.0-p353.tar.gz
cd ruby-2.0.0-p353/
./configure --prefix=/usr/local
make
sudo make install
#install percona mysql server
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
echo "deb http://repo.percona.com/apt precise main" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://repo.percona.com/apt precise main" | sudo tee -a /etc/apt/sources.list
sudo apt-get -y update
sudo apt-get -y install percona-server-server-5.6
#basic config setup / some basic gems
rm ~/.bashrc
rm -rf ~/.emacs.d
ruby < <(curl -B https://raw.github.com/atpsoft/dohdots/master/install.rb)
sudo gem install dohdata dohlog dohtest dohutil mysql2 bundler
# go to whatever project you're working on, and bundle install to get the appropriate gems
sudo bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment