Skip to content

Instantly share code, notes, and snippets.

@fnichol
Last active December 18, 2015 18:19
Show Gist options
  • Save fnichol/5824930 to your computer and use it in GitHub Desktop.
Save fnichol/5824930 to your computer and use it in GitHub Desktop.
Omni-Pi
#!/usr/bin/env bash
set -ex
# Prep:
#
# (cd /dev && sudo ln -snf mmcblk0p2 root)
# sudo raspi-config
#
# Run (hey, but read the source first, right?):
#
# curl -s https://gist.github.com/fnichol/5824930/raw/omnipi.sh | sudo bash 2>&1 | tee /tmp/omnipi.log
#
export CHEF_GIT_REV=11.4.4
apt-get update
apt-get install -y ruby1.9.3 git-core
gem install bundler --no-ri --no-rdoc
git clone https://github.com/fnichol/omnibus-chef.git /root/omnibus-chef
(
cd /root/omnibus-chef;
git checkout raspbian-ruby;
bundle install --binstubs;
time (bin/omnibus build project chef)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment