#!/bin/bash -x # Installs IIAB. "bash -x" (xtrace) is like -v (verbose) but expands commands. # 1. RUN: "sudo su -" then "raspi-config" to set "Localisation Options" # 2. OPTIONAL: "passwd pi; touch /boot/ssh; reboot" to ssh in immediately # 3. RUN THIS SCRIPT: curl download.iiab.io/6.4/rpi/load-prep.txt | bash set -e # to exit on error (avoids snowballing) tune2fs -m 1 /dev/mmcblk0p2 # Above changes reserve disk space from ~5% to 1% export DEBIAN_FRONTEND=noninteractive apt update apt -y dist-upgrade apt -y clean # Above updates Raspbian for security especially wget https://download.teamviewer.com/download/linux/teamviewer-host_armhf.deb set +e # do not exit when "dpkg -i" below inevitably fails dpkg -i teamviewer-host_armhf.deb set -e apt -y -f install # fix dependencies for above/failed "dpkg -i" rm teamviewer-host_armhf.deb apt -y install git emacs lynx bc # Above installs git for Raspbian Lite