Skip to content

Instantly share code, notes, and snippets.

@towerhe
Created October 18, 2012 03:28
Show Gist options
  • Save towerhe/3909715 to your computer and use it in GitHub Desktop.
Save towerhe/3909715 to your computer and use it in GitHub Desktop.
Scripts for installing chef
# 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