Skip to content
forked from thoughtbot/laptop

Laptop is a set of scripts to get your laptop set up as a development machine.

Notifications You must be signed in to change notification settings

gotryiton/laptop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laptop

Laptop is a set of scripts to get your laptop set up as a development machine.

Mac OS X

Step 1

First, install GCC for OS X. (requires OS X 10.6 or higher)

Step 2

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 

Step 3

Then install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" 
brew update 

Step 4

Install the most recent version of VirtualBox for OS X from https://www.virtualbox.org/wiki/Downloads

Step 5

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

Step 6

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

Step 7

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"

Step 8

Go to local.gotryiton.com in a web browser.

Ubuntu (nothing's been modified for gtio on this)

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.

What it sets up

  • 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.

About

Laptop is a set of scripts to get your laptop set up as a development machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published