#!/bin/bash -x # Start loading IIAB. "bash -x" is debug mode set -e # "set -e" to exit on error (avoids snowballing) export DEBIAN_FRONTEND=noninteractive apt-get -y update apt-get -y dist-upgrade apt-get -y clean apt-get install -y git # Above required by Raspbian Lite mkdir -p /opt/iiab cd /opt/iiab/ git clone https://github.com/iiab/iiab --depth 1 git clone https://github.com/iiab/iiab-admin-console --depth 1 git clone https://github.com/iiab/iiab-menu --depth 1 git clone https://github.com/iiab/iiab-factory --depth 1 cd /opt/iiab/iiab/scripts/ ./ansible # Installs the correct version of Ansible cd /opt/iiab/iiab/vars/ if [ -f local_vars.yml ]; then echo "ERROR: Plz move /opt/iiab/iiab/vars/local_vars.yml to proceed." >&2 exit 1 fi wget http://download.iiab.io/6.3/rpi/local_vars.yml # Above assumes a virgin RPi system (wget WON'T overwrite existing files) # In general please examine local_vars.yml carefully (and modify as nec) # before running Ansible (below, which can take ~2 hours the first time!) # NOTE: you can change many/most settings after install too, using the # Admin Console (http://box/admin) as documented at: http://FAQ.IIAB.IO cd /opt/iiab/iiab/ ./runansible # Try to rerun the above line if it fails? cd /opt/iiab/iiab-admin-console/ ./install cd /opt/iiab/iiab-menu/ ./cp-menus