Skip to content

Instantly share code, notes, and snippets.

@willnet
Created January 24, 2012 04:48
Show Gist options
  • Save willnet/1667871 to your computer and use it in GitHub Desktop.
Save willnet/1667871 to your computer and use it in GitHub Desktop.
ec2 amazon instance に chef を導入するまでの手順
sudo yum install emacs git zsh gcc make readline readline-devel libyaml libyaml-devel zlib zlib-devel openssl openssl-devel
mkdir src
cd src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
tar zxvf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
./configure
make
sudo make install
cd /home/ec2-user/src/ruby-1.9.3-p0/ext/openssl
ruby extconf.rb
make
sudo make install
echo 'export PATH=/usr/local/bin:$PATH' >> .zshrc.mine
cat <<EOF > "$HOME/.emacs"
(define-key global-map "\C-h" 'delete-backward-char)
(define-key isearch-mode-map "\C-h" 'isearch-delete-char)
EOF
sudo /usr/local/bin/gem install chef --no-rdoc --no-ri
git clone https://github.com/opscode/chef-repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment