do not use just yet

This commit is contained in:
Ace 2018-10-02 01:30:28 +02:00 committed by GitHub
parent 4d8e3d7ba1
commit 841f175e40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,13 +34,12 @@ fi
# Updating and upgrading the system, without taking too much space # 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"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" 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 sudo apt-get update && sudo apt-get dist-upgrade -y
echo -e "\e[1;36m"System successfully updated and upgraded!"\e[0m" echo -e "\e[1;36m"System successfully updated and upgraded!"\e[0m"
echo "" echo ""
# Installing a few packages which are missing on Raspbian Stretch Lite # 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" 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 sudo apt-get install python3-pip -y
sudo apt-get install RPi.GPIO -y sudo apt-get install RPi.GPIO -y
sudo apt-get install python3-spidev -y sudo apt-get install python3-spidev -y
@ -49,12 +48,11 @@ pip3 install Pillow
sudo pip3 install Pillow sudo pip3 install Pillow
sudo apt-get install libopenjp2-7-dev -y sudo apt-get install libopenjp2-7-dev -y
sudo apt install libtiff5 -y sudo apt install libtiff5 -y
} > /dev/null
echo "" echo ""
# Running apt-get clean and apt-get autoremove # 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" 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 sudo apt-get clean && sudo apt-get autoremove -y
echo "" echo ""
# Using this part for the 2-colour E-Paper version # Using this part for the 2-colour E-Paper version
@ -109,17 +107,15 @@ fi
# Installing packages required by the main script # Installing packages required by the main script
echo -e "\e[1;36m"Installing a few required packages for the E-Paper Software"\e[0m" echo -e "\e[1;36m"Installing a few required packages for the E-Paper Software"\e[0m"
{
sudo pip3 install pyowm sudo pip3 install pyowm
sudo pip3 install ics sudo pip3 install ics
pip3 install pyowm pip3 install pyowm
pip3 install ics pip3 install ics
} > /dev/null
echo "" echo ""
# Setting up supervisor # Setting up supervisor
echo -e "\e[1;36m"Setting up the script to start at boot..."\e[0m" echo -e "\e[1;36m"Setting up the script to start at boot..."\e[0m"
sudo apt-get install supervisor -y > /dev/null sudo apt-get install supervisor -y
sudo bash -c 'cat > /etc/supervisor/conf.d/E-Paper.conf' << EOF sudo bash -c 'cat > /etc/supervisor/conf.d/E-Paper.conf' << EOF
[program:E-Paper] [program:E-Paper]