Skip to content

Instantly share code, notes, and snippets.

@mmasashi
Last active December 15, 2015 00:09
Show Gist options
  • Save mmasashi/5171314 to your computer and use it in GitHub Desktop.
Save mmasashi/5171314 to your computer and use it in GitHub Desktop.
Setup my development environment for Moutain Lion

Mountain Lion setup

Preparation

  • account settings
  • software update

System Preferences

  • TrackPad
    • enable Tap to Click
    • enable Apple Expogesture
  • Keyboard
    • caps lock -> control
  • Language
    • Add Japanese input
  • Security
    • Allow applications downloaded from: Anyware

Install Software

  • iWork
    • Pages
    • Numbers
    • Keynote
  • Browser
    • Chrome
    • Firefox

Security

  • Virus Barrier

Editor

  • Cot editor
  • iText
  • Quick note
  • Evernote

Reader

  • Reeder
  • Kindle for Mac

Development tools

  • MacVIM
  • Xcode
  • sqlite database browser
  • Virtual box

Utility

  • Expogesture
  • iExplore

Dev env

Home brew

Brew software

  • git
  • git-flow
  • rbenv / ruby-1.9.3
  • zsh
  • postgresql
  • mysql
  • ack

How to change shell to zsh

$ vim /etc/shells
# add a following line.
/usr/local/bin/zsh
$ chpass -s /usr/local/bin/zsh

rbenv

$ brew install rbenv
# brew install ruby-build

$ brew install readline
$ brew link readline
 
$ brew install openssl
$ brew link openssl

$ rbenv install
$ rbenv rehash

$ rbenv install 1.9.3-p286 CONFIGURE_OPTS="--with-readline-dir=/usr/local --with-openssl-dir\=/usr/local" rbenv install 1.9.3-p286

# Remember following command whenever installed something!
$ rbenv rehash

gems

  • pry
  • rr
  • bundle
  • fluentd

Setup mysql

  • install: brew install mysql
Set up databases to run AS YOUR USER ACCOUNT with:
    unset TMPDIR
    mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

To set up base tables in another folder, or use a different user to run
mysqld, view the help for mysqld_install_db:
    mysql_install_db --help

and view the MySQL documentation:
  * http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html
  * http://dev.mysql.com/doc/refman/5.5/en/default-privileges.html

To run as, for instance, user "mysql", you may need to `sudo`:
    sudo mysql_install_db ...options...

Start mysqld manually with:
    mysql.server start

    Note: if this fails, you probably forgot to run the first two steps up above

Setup postgresql

  • install: brew install postgresql
Start manually:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Stop manually:

pg_ctl -D /usr/local/var/postgres stop -s -m fast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment