Update Installer-with-debug
This commit is contained in:
parent
cec75c8721
commit
b49e2ce0eb
@ -4,6 +4,8 @@
|
||||
|
||||
# Copyright by Ace-Laboratory
|
||||
|
||||
|
||||
# Getting input to see which E-Paper version is currently being used.
|
||||
echo -e "\e[1mWhich version of the E-Paper display are you using?"
|
||||
echo -e "\e[97mEnter \e[91m2 \e[97m if you are using the 2-Colour E-Paper"
|
||||
echo -e "\e[97mEnter \e[91m3 \e[97m if you are using the 3-Colour E-Paper"
|
||||
@ -27,11 +29,13 @@ if [ "$digit" = 2 ] || [ "$digit" = 3 ]; then
|
||||
echo "The installer will do the rest now. You can enjoy a break in the meanwhile."
|
||||
fi
|
||||
|
||||
# Updating and upgrading the system, without taking too much space
|
||||
echo -e "\e[1;36m"Running apt-get update and apt-get dist-upgrade for you..."\e[0m"
|
||||
echo -e "\e[1;36m"This will take a while, sometimes up to 30 mins"\e[0m"
|
||||
sudo apt-get update > /dev/null && sudo apt-get dist-upgrade -y > /dev/null
|
||||
echo -e "\e[1;36m"System successfully updated and upgraded!"\e[0m"
|
||||
|
||||
# Installing a few packages which are missing on Raspbian Stretch Lite
|
||||
echo -e "\e[1;36m"Installing a few packages that are missing on Raspbian Stretch Lite..."\e[0m"
|
||||
{
|
||||
sudo apt-get install python3-pip -y
|
||||
@ -44,9 +48,11 @@ sudo apt-get install libopenjp2-7-dev -y
|
||||
sudo apt install libtiff5 -y
|
||||
} > /dev/null
|
||||
|
||||
# Running apt-get clean and apt-get autoremove
|
||||
echo -e "\e[1;36m"Cleaning a bit of mess to free up some space..."\e[0m"
|
||||
sudo apt-get clean > /dev/null && sudo apt-get autoremove -y > /dev/null
|
||||
|
||||
# Using this part for the 2-colour E-Paper version
|
||||
if [ "$digit" = 2 ]; then
|
||||
echo -e "\e[1;36m"Installing the 2-Colour E-Paper-Calendar Software"\e[0m"
|
||||
git clone https://github.com/aceisace/E-Paper-Calendar-with-iCal-sync-and-live-weather
|
||||
@ -61,6 +67,7 @@ if [ "$digit" = 2 ]; then
|
||||
sudo rm -r E-Paper-Calendar-with-iCal-sync-and-live-weather
|
||||
fi
|
||||
|
||||
# Using this part for the 3-colour E-Paper version
|
||||
if [ "$digit" = 3 ]; then
|
||||
echo -e "\e[1;36m"Installing the 3-Colour E-Paper-Calendar Software"\e[0m"
|
||||
git clone https://github.com/aceisace/E-Paper-Calendar-with-iCal-sync-and-live-weather
|
||||
@ -74,6 +81,7 @@ if [ "$digit" = 3 ]; then
|
||||
sudo rm -r E-Paper-Calendar-with-iCal-sync-and-live-weather
|
||||
fi
|
||||
|
||||
# Installing packages required by the main script
|
||||
echo -e "\e[1;36m"Installing a few required packages for the E-Paper Software"\e[0m"
|
||||
{
|
||||
sudo pip3 install pyowm
|
||||
@ -82,6 +90,7 @@ pip3 install pyowm
|
||||
pip3 install ics
|
||||
} > /dev/null
|
||||
|
||||
# Setting up supervisor
|
||||
echo -e "\e[1;36m"Setting up the script to start at boot..."\e[0m"
|
||||
sudo apt-get install supervisor -y > /dev/null
|
||||
|
||||
@ -94,6 +103,7 @@ EOF
|
||||
|
||||
sudo service supervisor start E-Paper
|
||||
|
||||
# Final words
|
||||
echo -e "\e[1;36m"The install was successful"\e[0m"
|
||||
echo -e "\e[1;36m"The programm will now start at every boot."\e[0m"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user