Skip to content

Instantly share code, notes, and snippets.

@Xiangshen-Meng
Last active August 29, 2015 14:06
Show Gist options
  • Save Xiangshen-Meng/7861e5cd0b3840b00f4a to your computer and use it in GitHub Desktop.
Save Xiangshen-Meng/7861e5cd0b3840b00f4a to your computer and use it in GitHub Desktop.
sudo -s;
useradd xiangshen-meng;
echo 123456 | passwd xiangshen-meng --stdin;
mkdir /home/xiangshen-meng;
chown xiangshen-meng:xiangshen-meng -R /home/xiangshen-meng;
mkdir .ssh
chmod 755 .ssh/
mv id_rsa* .ssh/
cd .ssh/
cat id_rsa.pub > authorized_keys
chmod 600 *
'''
source "https://rubygems.org"
gem "knife-solo", ">= 0.3.0pre3"
gem "berkshelf"
'''
'''
mkdir chef-kitchen
cd chef-kitchen
'''
USE_SYSTEM_GECODE=1 gem install dep-selector-libgecode
sudo apt-get install libgecode-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment