#!/bin/sh # Install script for sys-oled INSTALL_PATH="/usr/local/" SYSTEMD_PATH="/etc/systemd/" DEPS="python-dev python-pip python-setuptools python-psutil libfreetype6-dev libjpeg-dev build-essential" if [ "$(id -u)" != "0" ]; then echo "This script must be run as root!" exit 1 fi echo "Installing Dependencies" apt-get update apt-get install -y $DEPS echo "Installing luma.oled library" pip install --upgrade luma.oled echo "Installing sys-oled files" cp -frv bin "$INSTALL_PATH" cp -frv etc "$INSTALL_PATH" cp -frv share "$INSTALL_PATH" cp -frv system "$SYSTEMD_PATH" echo "Enabling sys-oled at statup" systemctl daemon-reload systemctl enable sys-oled.service