From 05a0af97fe48ca3883314bc5a8f1ce695382ce4e Mon Sep 17 00:00:00 2001 From: Joe Cupano <9505289+joecupano@users.noreply.github.com> Date: Sun, 2 Aug 2020 15:15:56 -0400 Subject: [PATCH] README update --- HASviolet_install-refresh.sh | 150 ----------------------------------- HASviolet_install-service.sh | 98 ----------------------- 2 files changed, 248 deletions(-) delete mode 100644 HASviolet_install-refresh.sh delete mode 100755 HASviolet_install-service.sh diff --git a/HASviolet_install-refresh.sh b/HASviolet_install-refresh.sh deleted file mode 100644 index 88ba2e0..0000000 --- a/HASviolet_install-refresh.sh +++ /dev/null @@ -1,150 +0,0 @@ -#!/bin/bash - -### -### HASviolet-install-refresh -### - -## -## -## This script is part of the HASviolet project. -## -## Given a Raspbian Lite image, this script will install all the packegs, libraries, and github repo -## required to implement the HVDN Communicator. -## -## HASviolet has been design with the Raspberry Pi Zero Wireless providing compute, Radio Modules -## accessible via SPI, sensors via i2c, and GPS via microUSB besides i2c. Generic Python Libraries -## for i2c and SPI are installed as well as Adafruit and Sparkfun for specific devcies that include -## the following. -## -## -## Adafruit LoRa Radio Bonnet with OLED RFM95W @ 915 MHz -## https://www.adafruit.com/product/4074 -## -## Adafruit Monochrome OLEDs based on SSD1306 drivers -## https://github.com/adafruit/Adafruit_SSD1306 -## -## Adafruit_CircuitPython_framebuf -## https://github.com/adafruit/Adafruit_CircuitPython_framebuf -## -## Sparkfun Qwiic Python Package -## https://github.com/sparkfun/Qwiic_Py -## -## pyRF95 -## https://github.com/ladecadence/pyRF95 -## - - -## -## INIT VARIABLES -## - -# HVDN LocalRepo Home Directory -hvdn_localrepo=$HOME/HVDN-repo - -# HASviolet LocalRepo (GitHub clone) -hasviolet_localrepo=$HOME/HVDN-repo/hasviolet - -# HASviolet LocalRepo (Github Dailies Clone) -#hasviolet_localrepo=$HOME/HVDN-repo/hasty-banana - -# HASviolet Working directorydr@mBUI3 -hasviolet_install=$HOME/HASviolet - -# HASviolet INI file -hasviolet_ini=$hasviolet_install/HASviolet.ini - -# HASviolet Duckhunt INI file -hasvioletduckhunt_ini=$hasviolet_install/HASviolet-duckhunt.ini - -# HASviolet GitHub Repo -hasviolet_github_repo="https://github.com/hudsonvalleydigitalnetwork/hasviolet.git" - -# HASviolet Private Daily Dev Repo -# devviolet_github_repo="https://github.com/joecupano/hasty-banana.git" - -## -## START -## - - -echo " " -echo "HASviolet Refresh" -echo " " - -echo " " -echo "- Backup INI files" -echo " " - -cp $hasviolet_ini ~/hasviolet.ini.bk1 -cp $hasvioletduckhunt_ini ~/hasviolet-duckhunt.ini.bk1 - -# -# Ensure this is HASviolet clean -# - -sudo rm -rf $hvdn_localrepo >/dev/null 2>&1 -sudo rm -rf $hasviolet_install >/dev/null 2>&1 - -echo " " -echo "- Clone HASviolet Repository" -echo " " - -mkdir $hvdn_localrepo -cd $hvdn_localrepo -git clone $hasviolet_github_repo - -echo " " -echo "- Create HASviolet working directory" -echo " " - -mkdir $hasviolet_install -cp -R $hasviolet_localrepo/stable/* $hasviolet_install - -echo " " -echo "- Restore INI files" -echo " " - -cp ~/HASviolet.ini.bk1 $hasviolet_ini >/dev/null 2>&1 -cp ~/HASviolet-duckhunt.ini.bk1 $hasvioletduckhunt_ini >/dev/null 2>&1 - -echo " " -echo "- Refresh HASviolet Service (systemd)" -echo " " - -sudo systemctl stop HASviolet.service >/dev/null 2>&1 -sudo systemctl disable HASviolet.service >/dev/null 2>&1 -sudo rm -rf /lib/systemd/system/HASviolet.service >/dev/null 2>&1 - -echo " " -echo " By default HASviolet is configured to boot ready for portable operation" -echo " " -echo " In a few seconds you will see the HVDN logo on the OLED and then the MAIN MENU." -echo " To disable portable operation, from the MAIN MENU select OPTIONS then QUIT." -echo " To disable permanently you need to SSH into HASviolet and run the following command" -echo " " -echo " ./HASviolet-service.sh remove" -echo " " - -sleep 2 - -sudo cp $hasviolet_install/HASviolet.service /lib/systemd/system/HASviolet.service -sudo chown root:root /lib/systemd/system/HASviolet.service -sudo chmod 644 /lib/systemd/system/HASviolet.service -sudo systemctl daemon-reload -sudo systemctl enable HASviolet.service -sudo systemctl start HASviolet.service -sudo sync - -echo " " -echo "HASviolet Refresh complete" -echo " " -echo "- The repo has been cloned to $hasviolet_localrepo" -echo "- A working directory with all the apps is installed in $hasviolet_install" -echo " " -echo "- To run the apps, you must be in the $hasviolet_install directory and" -echo "- prefix the app name with ./.for example: ./HASviolet-rx.py" -echo " " -echo "- Enjoy! -- The HASviolet Team at HVDN " -echo " " -echo " " -exit 0 diff --git a/HASviolet_install-service.sh b/HASviolet_install-service.sh deleted file mode 100755 index 6287f40..0000000 --- a/HASviolet_install-service.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/bash - -## -## HASviolet Install Service -## - -## -## This script is part of the HASviolet project. -## -## Given a Raspbian Lite image, this script will install all the packegs, libraries, and github repo -## required to implement the HVDN Communicator. -## -## HASviolet has been design with the Raspberry Pi Zero Wireless providing compute, Radio Modules -## accessible via SPI, sensors via i2c, and GPS via microUSB besides i2c. Generic Python Libraries -## for i2c and SPI are installed as well as Adafruit and Sparkfun for specific devcies that include -## the following. -## -## -## Adafruit LoRa Radio Bonnet with OLED RFM95W @ 915 MHz -## https://www.adafruit.com/product/4074 -## -## Adafruit Monochrome OLEDs based on SSD1306 drivers -## https://github.com/adafruit/Adafruit_SSD1306 -## -## Adafruit_CircuitPython_framebuf -## https://github.com/adafruit/Adafruit_CircuitPython_framebuf -## -## Sparkfun Qwiic Python Package -## https://github.com/sparkfun/Qwiic_Py -## -## pyRF95 -## https://github.com/ladecadence/pyRF95 -## - - -## -## INIT VARIABLES -## - -# HVDN LocalRepo Home Directory -hvdn_localrepo=$HOME/HVDN-repo - -# HASviolet LocalRepo (GitHub clone) -hasviolet_localrepo=$HOME/HVDN-repo/hasviolet - -# HASviolet LocalRepo (Github Dailies Clone) -#hasviolet_localrepo=$HOME/HVDN-repo/hasty-banana - -# HASviolet Working directorydr@mBUI3 -hasviolet_install=$HOME/HASviolet - -# HASviolet INI file -hasviolet_ini=$hasviolet_install/HASviolet.ini - -# HASviolet Duckhunt INI file -hasvioletduckhunt_ini=$hasviolet_install/HASviolet-duckhunt.ini - -# HASviolet GitHub Repo -hasviolet_github_repo="https://github.com/hudsonvalleydigitalnetwork/hasviolet.git" - -# HASviolet Private Daily Dev Repo -# devviolet_github_repo="https://github.com/joecupano/hasty-banana.git" - - -echo " " -echo "Installing HASviolet Service (systemd)" -echo " " - -if [ -f /lib/systemd/system/HASviolet.service ]; then - sudo systemctl stop HASviolet.service >/dev/null 2>&1 - sudo systemctl disable HASviolet.service >/dev/null 2>&1 -fi - -echo " " -echo " By default HASviolet is configured to boot ready for portable operation" -echo " In a few seconds you will see the HVDN logo on the OLED and then the MAIN MENU." -echo " To disable portable operation, from the MAIN MENU select OPTIONS then QUIT." -echo " To disable permanently you need to SSH into HASviolet and run the following command" -echo " " -echo " ./HASviolet-service.sh remove" - -sleep 3 - -sudo cp $hasviolet_install/HASviolet.service /lib/systemd/system/HASviolet.service -sudo chown root:root /lib/systemd/system/HASviolet.service -sudo chmod 644 /lib/systemd/system/HASviolet.service -sudo systemctl daemon-reload -sudo systemctl enable HASviolet.service -sudo systemctl start HASviolet.service -sudo sync - -echo " " -echo "HASviolet Service install complete" -echo " " -echo " Enjoy! -- The HASviolet Team at HVDN " -echo " " - -exit 0 \ No newline at end of file