LoginSignup
11
13

More than 5 years have passed since last update.

自分の環境構築について

Last updated at Posted at 2014-03-24

手動の設定

  • AppStoreにてXcodeをインストール
  • XcodeからXcode Command Line Toolをインストール
  • 1passwordをインストール(AppstoreからでないとiCloud同期ができないため)
  • Keynoteをインストール
  • Memory Cleanをインストール

Preferenceの設定

  • Spotlightを無効に設定
  • ファンクションキーを標準のキーに設定
  • Dockを隠す。小さくする。
  • 自動のやつ

  • homebrewのインストール

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

以下を「brew bundle」にてインストール


tap phinze/homebrew-cask || true
tap homebrew/versions|| true
tap peco/peco || true
tap motemen/ghq || true
tap caskroom/homebrew-versions
tap homebrew/dupes
tap josegonzalez/homebrew-php

update || true

install brew-cask || true
install git || true
install hg || true
install ag || true
install gist || true
install gibo || true
install hub || true
install tmux || true
install wemux || true
install tree || true
install openssl || true
install readline || true
install jq || true
install ruby-build || true
install rbenv || true
install cmake || true
install fish || true
install zsh || true
install wget || true
install curl || true
install cmake || true
install libtool || true
install automake || true
install mobile-shell || true
install peco || true
install ghq || true
install vim --with-lua || true
install mysql || true
install sqlite || true
install node || true
install curl-ca-bundle || true
install nginx || true
install php55 --with-fpm

cask install clipmenu || true
cask install skype || true
cask install sourcetree || true
cask install google-chrome || true
cask install kobito || true
cask install virtualbox || true
cask install vagrant || true
cask install sublime-text3
cask install iterm2 || true
cask install appcleaner || true
cask install pgadmin3 || true
cask install cyberduck || true
cask install quicksilver || true
cask install hyperswitch || true
cask install path-finder || true
cask install serf || true
cask install qlcolorcode || true
cask install qlstephen || true
cask install qlmarkdown || true
cask install quicklook-json || true
cask install qlprettypatch || true
cask install quicklook-csv || true
cask install betterzipql || true
cask install webp-quicklook || true
cask install suspicious-package || true



  • sublime text用の設定
defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
defaults write -g ApplePressAndHoldEnabled -bool false
  • karabiner
# キーリピートを変更
# リピートディレイを変更
  • Vagrantのプラグインインストール
# chefを自動でインストールしてくれるプラグイン
vagrant plugin install vagrant-omnibus
# AWSを操作するためのプラグイン
vagrant plugin install vagrant-aws
# 入れておくと幸せになれるやつ
vagrant plugin install sahara
# yumとかaptしたファイルをキャッシュしてくれるやつ
vagrant plugin install vagrant-cachier
# serverspecを使うときに
vagrant plugin install vagrant-serverspec
# VBox Guest addtionをインストールする手間から解放される
vagrant plugin install vagrant-vbguest
# digitaloceanに使う
vagrant plugin install vagrant-digitalocean

  • AWS-CLIのインストール
# Pythonライブラリのpipのインストール
sudo easy_install pip
# AWS-CLI
sudo pip install awscli

# aws-cliの設定を行なう
aws configure
#AWS Access Key IDが聞かれるので入力
#AWS Secret Access Keyが聞かれるので入力
#Default region nameが聞かれるので「ap-northeast-1」と入力
#Default output formatが聞かれるので「json」と入力
  • oh-my-zshのインストール
curl -L http://install.ohmyz.sh | sh
  • rbenvの設定
# パスを通す
echo 'eval "$(rbenv init -)"' >> ~/.zsh_profile
echo 'export PATH="$HOME/.rbenv/shims:$PATH"' >> ~/.zsh_profile
source ~/.zsh_profile

# Rubyのインストール
rbenv install 1.9.3-p327
rbenv install 2.0.0-p247

# 設定
rbenv global 2.0.0-p247

# 読み込み
rbenv rehash
  • Chef
gem install bundler
gem i chef --no-ri --no-rdoc
knife configure
gem i knife-solo --no-ri --no-rdoc
cat <<'EOF' > Gemfile
source 'https://rubygems.org'
gem 'chef'
gem 'knife-solo', :github => 'matschaffer/knife-solo'
gem 'berkshelf'
EOF
bundle --path vendor/bundle
bundle install --binstubs


  • .zshrc
ZSH=$HOME/.oh-my-zsh

ZSH_THEME="rkj-repos"

# DISABLE_AUTO_UPDATE="true"

# export UPDATE_ZSH_DAYS=13

# DISABLE_LS_COLORS="true"

# DISABLE_AUTO_TITLE="true"

# DISABLE_CORRECTION="true"

# COMPLETION_WAITING_DOTS="true"

# DISABLE_UNTRACKED_FILES_DIRTY="true"

plugins=(git ruby osx bundler brew rails emoji-clock)

source $ZSH/oh-my-zsh.sh

export PATH=$PATH:bin:/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:node_modules/.bin:/opt/boxen/nodenv/shims:/opt/boxen/nodenv/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"

  • node module
# grunt
npm install -g grunt-cli

  • vagnrat box add
# Ubuntuの追加
vagrant box add Official_Ubuntu_12.04_daily_Cloud_Image_i386 http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-i386-vagrant-disk1.box
# CentOS
vagrant box add CentOS 6.5 x86_64 https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box
# vagrant-aws用のダミーの追加
vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
# Gentooの追加
vagrant box add Gentoo_2013.10.29 https://dl.dropboxusercontent.com/s/0e23qmbo97wb5x2/gentoo-20131029-i686-minimal.box

  • 自分用に最初からフォルダを切る
mkdir -p ~/Documents/projects
mkdir -p ~/Documents/projects/vagrant-test
mkdir -p ~/Documents/backups
mkdir -p ~/Documents/etc
mkdir -p ~/Documents/lib

Shell化(一括)

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

cat <<'EOF' > brewfile

tap phinze/homebrew-cask || true
tap homebrew/versions|| true
update || true

install brew-cask || true
install git || true
install hg || true
install ag || true
install gist || true
install gibo || true
install hub || true
install tmux || true
install wemux || true
install tree || true
install openssl || true
install readline || true
install jq || true
install ruby-build || true
install rbenv || true
install cmake || true
install fish || true
install zsh || true
install wget || true
install curl || true
install cmake || true
install libtool || true
install automake || true

install sqlite || true
install node || true
install curl-ca-bundle || true

cask install clipmenu || true
cask install skype || true
cask install sourcetree || true
cask install google-chrome || true
cask install kobito || true
cask install virtualbox || true
cask install vagrant || true
cask install sublime-text || true
cask install iterm2 || true
cask install appcleaner || true
cask install pgadmin3 || true
cask install cyberduck || true
cask install quicksilver || true
cask install hyperswitch || true
cask install path-finder || true
cask install serf || true


EOF
brew bundle

echo 'eval "$(rbenv init -)"' >> ~/.zsh_profile
echo 'export PATH="$HOME/.rbenv/shims:$PATH"' >> ~/.zsh_profile
source ~/.zsh_profile

rbenv install 1.9.3-p327
rbenv install 2.0.0-p247

rbenv global 2.0.0-p247

rbenv rehash

gem install bundler
gem i chef --no-ri --no-rdoc
knife configure
gem i knife-solo --no-ri --no-rdoc
cat <<'EOF' > Gemfile
source 'https://rubygems.org'
gem 'chef'
gem 'knife-solo', :github => 'matschaffer/knife-solo'
gem 'berkshelf'
gem 'serverspec'
EOF
bundle --path vendor/bundle
bundle install --binstubs

vagrant plugin install vagrant-omnibus
vagrant plugin install vagrant-aws
vagrant plugin install sahara
vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-serverspec
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-digitalocean

sudo easy_install pip
sudo pip install awscli

curl -L http://install.ohmyz.sh | sh


cat <<'EOF' > ~/.zshrc

ZSH=$HOME/.oh-my-zsh

ZSH_THEME="rkj-repos"

# DISABLE_AUTO_UPDATE="true"

# export UPDATE_ZSH_DAYS=13

# DISABLE_LS_COLORS="true"

# DISABLE_AUTO_TITLE="true"

# DISABLE_CORRECTION="true"

# COMPLETION_WAITING_DOTS="true"

# DISABLE_UNTRACKED_FILES_DIRTY="true"

plugins=(git ruby osx bundler brew rails emoji-clock)

source $ZSH/oh-my-zsh.sh

export PATH=$PATH:bin:/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:node_modules/.bin:/opt/boxen/nodenv/shims:/opt/boxen/nodenv/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
EOF

source ~/.zshrc

# Ubuntuの追加
vagrant box add Official_Ubuntu_12.04_daily_Cloud_Image_i386 http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-i386-vagrant-disk1.box
# CentOS
vagrant box add CentOS 6.5 x86_64 https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box
# vagrant-aws用のダミーの追加
vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
# Gentooの追加
vagrant box add Gentoo_2013.10.29 https://dl.dropboxusercontent.com/s/0e23qmbo97wb5x2/gentoo-20131029-i686-minimal.box

npm install -g grunt-cli

mkdir -p ~/Documents/projects
mkdir -p ~/Documents/projects/vagrant-test
mkdir -p ~/Documents/backups
mkdir -p ~/Documents/etc
mkdir -p ~/Documents/lib

11
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
13