Skip to content

Instantly share code, notes, and snippets.

@mmasashi
Created November 30, 2014 09:20
Show Gist options
  • Save mmasashi/67eda895a67af317200d to your computer and use it in GitHub Desktop.
Save mmasashi/67eda895a67af317200d to your computer and use it in GitHub Desktop.
OSX Yosemite Initial Settings

Prepare for OS update (事前準備)

  • Backup data to Time machine drive
  • Backup some important data to HDD drive manually
  • Make a list which directory should be copied into the new OS

Clean Install Yosemite (Yosemiteのクリーンインストール)

Create YOSEMITE Boot USB Drive (Yosemiteのブートドライブを作成)

  • Need 8GB or more flash memory(USB2.0 is ok)
  • Download Yosemite through AppStore
    • Clicking free upgrade is ok
    • Do not click “continue" on the upgrade view after downloading.
  • Format your USB drive
    • Launch "Disk Utilit4y"
    • Select USB Drive
    • Format: "Mac OS Extended (Journaled)”, Title: Untitled
    • Click "Erase"
  • Run command (20 ~ 30 minutes)
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction

Install Yosemite (Yosemiteのインストール)

  • Shutdown PC
  • Power on Mac with "option" button
  • Select USB drive as a boot device
  • Open disk utility and format your HD
    • Select your main Drive(Macintosh HD?)
    • Select “Erase” tab and format the disk with "Mac OS Extended (Journaled)"
  • Close disk utility and continue installing Yosemite

Initial Setting (初期設定)

Japanese Setting (日本語設定)

  • [System Preference] -> [Language & Region]
  • Click [+]
  • Select "日本語 Japanese"
  • Click [Use English] as primary language

Keyboard Setting (キーボード設定)

  • [System Preference] -> [Keyboard]
  • Select [Shortcuts] tab
    • Select [Input Sources] menu
    • Turn on "Select next source in Input menu"
      • Change the shortcut to "alt + space"
  • Select [Input Source] tab
    • Turn off other than “Hiragana” on Input modes section
  • Select [Keyboard] menu
    • Click [Modifier Keys]
    • Change "Caps Lock" to "^ Control" of Caps Lock key bind
  • Select [Text] tab
    • Turn off "Use smart quotes and dashes"

Trackpad Setting (トラックパッド設定)

  • [System Preference] -> [Trackpad]
  • Point & Click
    • Turn on "Tap to click" and "Lookup"
  • Scroll & Zoom
    • All ON
  • More Gestures
    • Swipe between pages with three fingers
    • Swipe between full-screen apps with four fingers
    • Notification Center
    • Mission Control
    • Apple Expose
    • Launch pad
    • Show Desktop

Finder Setting (Finderの設定)

General

  • [Finder] -> [Preferences]
  • General
    • Turn on “Hard Disk Drive” to show on Desktop
    • New Finder windows show “${HOME}"
  • Sidebar
    • AirDrop
    • Applications
    • Desktop
    • Documents
    • Downloads
    • $HOME
  • Advanced
    • Turn on “Show all filename extensions"
    • When performing search: “Search the current folder"

Show hidden file(filename start with “.” 隠しファイル(ドットで始まるファイル名)を表示)

# Show hidden files
defaults write com.apple.finder AppleShowAllFiles -boolean true
killall Finder

# Rollback (Hide hidden files)
defaults delete com.apple.finder AppleShowAllFiles
killall Finder

Bar settings

  • [View] -> “Show status bar"
  • [View] -> “Show path bar"

Dock Setting (Dockの設定)

  • [System Preferences] -> [Dock]
  • Turn on “Magnification"
  • Position on screen: “Left'
  • Turn on “Automatically hide and show the Dock"

Screen Capture (スクリーンショットの設定)

# Change default location of screen shots
$ mkdir ~/Desktop/screenshot
$ defaults write com.apple.screencapture location !$

# Disable shadow
defaults write com.apple.screencapture disable-shadow -bool true

# Restart SystemUIServer
killall SystemUIServer

Application Installation (アプリケーションのインストール)

Application (App Store)

  • Evernote
  • Xcode
  • iWork
    • Pages
    • Numbers
    • Keynote
  • Twitter
  • Kindle For Mac
  • Quick Note
  • 3Hub
  • Stufflt Expander
  • Degrees
  • Miniusage
  • FormatMatch
  • Pixelmator
  • istat mini

Install homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Check homebrew status
brew doctor
  • Install brew command
brew install <application name>

  • Install homebrew-file
brew tap rcmdnk/file
brew install brew-file
# Pull Brewfile from github repos
brew file set_repo -r mmasashi/Brewfile
# Edit Brewfile if needed
brew file edit
# Install all packages(including cask packages)
brew file update
  • Update cask packages without backupping old pacakges
brew file cask_upgrade -C

Application (Download from web & install)

  • Editor
    • iText edit

Paid Applications

  • Macrosoft Office for Mac
  • VMWare Fusion

Application Settings (アプリの設定)

  • Dropbox
    • Launch & login
  • cdto
    • Open finder and go to "/opt/homebrew-cask/Caskroom/cd-to/2.6.0/cdto_2_6/iterm" path
    • Hold "command" button and drag cdto icon to finder menu area
  • iStat mini
    • Open application and register on notification center
  • FormatMatch
    • Launch app and open preference
    • Turn on "Automatically start FormatMatch at login"

Development Environment Setting (開発環境設定)

Preparation

  • copy .ssh directory from backup

Install dotfiles

  • Clone dotfiels and setup
cd $HOME
git clone https://github.com/mmasashi/dotfiles
cd dotfiles
bash setup.sh
git submodule update --init
  • Install vim plugins
    • Launch “vim”
    • Run :NeoBundleInstall

Terminal Setting

Change shell to zsh

  • Open “Terminal.app"
  • Open “Preferences"
    • Shell open with Command “/usr/local/bin/zsh"
  • Add “/usr/local/bin/zsh” (homebrew’s zsh)
vi /etc/shells

# add the following line
/usr/local/bin/zsh
  • Change the login shell
chpass -s /usr/local/bin/zsh
  • Check the update
chpass

iTerm2 Setting

  • Import terminal
  • Profiles
    • General
      • Command: Login shell
      • Working Directory: Reuse previous session’s directory
    • Text
      • Regular Font: Inconsolata, Regular, 13pt
      • Non-ASCII Font: Ricty for Powerline, Regular, 13pt
        • Horizontal: 5, Vertical: 1.1
    • Window
      • Adjust Transparency and Blur
    • Terminal
      • Scrollback Lines: 2,000
    • Session
      • Miscellaneous
        • Turn on "Automatically log session input files in" and set "~/logs/iterm2" directory

Ruby Setting

Install rbenv

brew install rbenv
brew install ruby-build
brew install mysql
brew install autoconf

Install Ruby

  • Show the supported ruby versions
rbenv install -l
  • Install Ruby
rbenv install 2.0.0-p598
rbenv rehash
rbenv global 2.0.0-p598
  • Install ruby gems
gem install bundle pry awesome_print aws-sdk fluentd

Configure Apache (Optional)

  • sudo vi /etc/apache2/users/[USER-NAME].conf
    • sudo vi /etc/apache2/users/mmasashi.conf
<Directory "/Users/[USER-NAME]]/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
  • exmaple
<Directory "/Users/mmasashi]/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment