#!/bin/bash echo "Hello! Me is pisetup.sh script." pwd cd /home/pi/openFrameworks/addons git clone --depth=1 https://github.com/jeffcrouse/ofxJSON.git git clone --depth=1 https://github.com/jvcleave/ofxOMXPlayer.git cd ofxOMXPlayer git checkout 0.9.0-compatible cd .. cd ofxPiMapper/example_basic make -j$(nproc) echo "Setting hostname." echo "opm" > /etc/hostname cat /etc/hostname echo "Setting up to run on boot." crontab -l > mycron echo "@reboot /home/pi/openFrameworks/addons/ofxPiMapper/example_basic/bin/example_basic" >> mycron crontab mycron rm mycron echo "Done!"