#!/bin/bash #check for root if [ "$(id -u)" -ne "0" ]; then echo "This script requires root." exit 1 fi #echo commands and arguments, and exit if any command returns non-zero status set -xe #add repositories and update add-apt-repository ppa:libretro/testing -y apt-add-repository -y ppa:ayufan/pine64-ppa -y apt-get update -y #Installs x for retroarch to run in apt-get install x-window-system xterm twm -y #Necessary dependencies apt-get install libsdl1.2-dev libsdl1.2debian pkg-config build-essential -y #Adds libretro and installs retroarch apt-get install retroarch* libretro* -y #Adds aufan's ppa for armsoc and libmali apt-get install -y xserver-xorg-video-armsoc-sunxi libmali-sunxi-utgard0-r6p0 #enable autologin mkdir -pv /etc/systemd/system/getty@tty1.service.d/ cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf < /etc/profile.d/10-start-retroarch.sh < /etc/hostname #retropie header cat > /etc/update-motd.d/05-figlet <