Skip to content

Instantly share code, notes, and snippets.

Created May 11, 2014 09:13
Show Gist options
  • Save anonymous/5ec7d4d88f3ecae864fa to your computer and use it in GitHub Desktop.
Save anonymous/5ec7d4d88f3ecae864fa to your computer and use it in GitHub Desktop.
#!/bin/sh
#@see https://gist.github.com/stonehippo/5896381
ECHO Get Dashing for Raspberry Pi
sudo apt-get update
sudo apt-get install git-core git build-essential libssl-dev zlib1g-dev nodejs
git clone https://github.com/joyent/node.git
cd node
git checkout v0.8.8 -b v0.8.8
curl https://github.com/joyent/node/commit/25c2940a08453ec206268f5e86cc520b06194d88.patch | git am
curl https://github.com/joyent/node/commit/1d52968d1dbd04053356d62dc0804bcc68deed8a.patch | git am
curl https://github.com/joyent/node/commit/f8fd9aca8bd01fa7226e1abe75a5bcf903f287ab.patch | git am
curl https://github.com/joyent/node/commit/7142b260c6c299fc9697e6554620be47a6f622a9.patch | git am
./configure
make
sudo make install
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
exec $SHELL -l # make rbenv available immediately
rbenv install 1.9.3-p448
rbenv global 1.9.3-p448 # set up the new Ruby to be available everywhere
echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc # Turn off installation of Ruby docs to speed up gem installs
gem install bundler dashing twitter execjs
rbenv rehash # make the new commands installed with the gems available
cd ~
dashing new test_dashboard_project
cd test_dashboard_project
dashing start
echo 'go to http://localhost:3030/sample'
#eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment