Created
October 18, 2012 03:28
-
-
Save towerhe/3909715 to your computer and use it in GitHub Desktop.
Scripts for installing chef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reset the source list of apt-get | |
echo 'deb http://mirrors.163.com/ubuntu precise main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu precise-backports main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu precise-proposed main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu precise-security main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu precise-updates main restricted universe multiverse' | sudo tee /etc/apt/sources.list | |
sudo apt-get update | |
# Install Ruby and Rubygems | |
sudo apt-get -y install ruby rubygems | |
# Reset the source of rubygems | |
sudo gem sources -r http://rubygems.org/ | |
sudo gem sources -a http://ruby.taobao.org/ | |
# Install chef | |
sudo gem install chef --no-rdoc --no-ri |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment