Laptop is a set of scripts to get your laptop set up as a development machine.
First, install GCC for OS X. (requires OS X 10.6 or higher)
Then create your rsa key (if you haven't done so already) and add it to your github account
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh
Then install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
brew update
Install the most recent version of VirtualBox for OS X from https://www.virtualbox.org/wiki/Downloads
Then, run (and wait a while for it to finish)
git clone [email protected]:gotryiton/laptop.git
bash < laptop/mac
If you'd like to remove this from your home directory
rmdir laptop
If you'd like to get your database set up in vagrant, download the staging db to the ~/src/gtio_vagrant folder ssh into vagrant (from the gtio_vagrant folder run vagrant ssh) and then run the following two command
mysql -u root "CREATE DATABASE gtioStage;"
mysql -u root gtioStage < /vagrant/gtioStage.sql
Run this to be able to go to local.gotryiton.com through vagrant
sudo bash -c "echo '33.33.33.10 local.gotryiton.com' >> /etc/hosts"
Go to local.gotryiton.com in a web browser.
First, install Ubuntu.
Then, run this one-liner:
bash < <(curl -s https://raw.github.com/thoughtbot/laptop/master/ubuntu)
If you're setting up Ubuntu for one of our workshops, we recommend you also install gEdit for your text editor. You can customize it with these instructions.
- SSH public keys (for authenticating with services like Github and Heroku)
- Homebrew or apt-get (for managing operating system libraries)
- Ack (for finding things in files)
- Tmux (for saving project state and switching between projects)
- Redis (for storing key-value data)
- ImageMagick (for cropping and resizing images)
- rbenv and ruby-build (for managing versions of the Ruby programming language)
- Ruby 1.9.2 stable (for writing general-purpose code)
- Bundler gem (for managing Ruby libraries)
- Rails gem (for writing web applications)
- Heroku gem (for interacting with the Heroku API)
- Taps gem (for pushing and pulling SQL databases between environments)
- Postgres gem (for making Ruby talk to SQL databases)
It should take about 30 minutes for everything to install, depending on your machine.