Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.73 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.73 KB

Laptop

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

Mac OS X

First, install XCode. ($4.99, requires OS X 10.6.6 or higher)

Set up your SSH key if you haven't yet:

ssh-keygen -t rsa

Then, run this one-liner:

bash < <( curl -s https://github.com/thoughtbot/laptop/raw/master/mac )

Ubuntu

First, install Ubuntu.

Set up your SSH key if you haven't yet:

ssh-keygen -t rsa

Then, run this one-liner:

bash < <( curl -s https://github.com/thoughtbot/laptop/raw/master/ubuntu )

Set your postgres password:

sudo -u postgres psql postgres
\password postgres
<Ctrl+D>

Give your user a postgres role: sudo -u postgres createuser --no-superuser --createdb --no-createrole --login --pwprompt --encrypted -h 127.0.0.1 -p 5432 whoami

What it sets up

  • SSH public keys (for authenticating with services like Github and Heroku)
  • Homebrew or apt-get (for managing operating system libraries)
  • Git (for managing versions of code)
  • Ack (for finding things in files)
  • Postgres (for storing relational data)
  • Redis (for storing key-value data)
  • ImageMagick (for cropping and resizing images)
  • RVM (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)
  • SQLite and PG gems (for making Ruby talk to SQL databases)

It should take between 20-60 minutes for everything to install. (depends on your machine)