mac os x setup files
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 65 commits behind knakayama:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
group_vars
roles
.gitignore
README.md
ansible.cfg
localhost.yml
requirements.txt
site.yml

README.md

Mac OS X Setup

  • Buy Mac OS X with US keyboard

  • Update system

$ sudo softwareupdate --install --recommended
$ sudo shutdown -r now
  • Tweak caps-lock key to performe ctl key
1. Open System Preferences
2. Open Keyboard
3. Modifiler Keys
4. Change Caps Lock to Control
  • Tweak Display
1. Open System Preferences
2. Open Energy Saver
3. Turn display off after 15m
4. Open Display
5. Max Brightness
6. Dismiss keyboard brightness
  • Install Xcode
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ git clone https://github.com/knakayama/mac-os-x-setup ~/.ghq/github.com/knakayama/mac-os-x-setup
$ brew install pyenv pyenv-virtualenv gcc
$ cat >>~/.bash_profile <<'EOT'
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
EOT
$ exec $SHELL
$ pyenv install <python-version>
$ pyenv global <python-version>
$ pyenv virtualenv general-env
$ pyenv activate general-env
$ cd ~/.ghq/github.com/knakayama/mac-os-x-setup
$ pip install -r requirements.txt
$ ansible-playbook site.yml -vvvv --ask-become-pass
  • add japanese input method
1. open System Preferences
2. open Keyboard
3. open Input Source
4. add japanese
  • Use firefox sync

  • Add startup app

1. Open System Preferences
1. Open User & Groups
1. Add firefox/iterm2/slack
  • Load new karabiner config
1. Lock screen by command-L
2. ESC to IME off (to English) + Esc + Esc
3. Control + BRACKET_LEFT to IME off (to Enblish) + Esc + Esc
4. Control+J to KANA/EISUU (toggle)
5. Swap semicolon to colon
6. Sands (another version)
7. Control+] to Escape
  • Change clock date format

  • Automatically hide tool bar

  • Enable ssh login (Optional)

Edit /private/etc/sshd_config, then

$ sudo launchctl load /System/Library/LaunchDaemons/ssh.plist
  • Setup Network (Optional)
1. Open System Preferences
2. Open Network
3. Setup network manually
4. Add DNS