From 86a313ce8c1064237365bc5904183fafb324e2fe Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sun, 10 Dec 2023 20:05:31 -0800 Subject: [PATCH] updated many files to make room for Sovran_SystemsOS_Light --- README.md | 6 + .../Icon/Sovran_SystemsOS_Updater_Iconv3.svg | 236 ++++++++++++++++++ .../localscript_to_remote_updater.sh | 5 + .../Sovran_SystemsOS_Light_Updater.desktop | 7 + .../Updater Source Files/Intro.md | 26 ++ .../Update_Sovran_SystemsOS_Light.sh | 64 +++++ .../sovran_systemsOS_light_updater_install.sh | 31 +++ .../Updater Source Files/Intro.md | 2 +- 8 files changed, 376 insertions(+), 1 deletion(-) create mode 100644 Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg create mode 100644 Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/localscript_to_remote_updater.sh create mode 100644 Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/Sovran_SystemsOS_Light_Updater.desktop create mode 100644 Sovran_SystemsOS_Light_Updater/Updater Source Files/Intro.md create mode 100755 Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh create mode 100755 Sovran_SystemsOS_Light_Updater/sovran_systemsOS_light_updater_local_installer/sovran_systemsOS_light_updater_install.sh diff --git a/README.md b/README.md index 7c5b1dd..8e763a9 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,12 @@ ### +![Sovran_SystemsOS_Light Updater](https://git.sovransystems.com/Sovran_Systems/Packages/raw/branch/main/Sovran_SystemsOS_Updater/To%20Install%20on%20Local%20Sovarn%20Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg) + +**Sovran_SystemsOS_Light Updater is the one click install to update the OS for your Sovran Book Pro** + +### + ## All Is Love. Fear Is Illusion. All Beings Are Free. Truth Can Never Be Destroyed. Created, Handcrafted, and Headquartered in Southern California – 2022-2023 🏖️. diff --git a/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg b/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg new file mode 100644 index 0000000..db97054 --- /dev/null +++ b/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg @@ -0,0 +1,236 @@ + + + + + diff --git a/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/localscript_to_remote_updater.sh b/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/localscript_to_remote_updater.sh new file mode 100644 index 0000000..c34f079 --- /dev/null +++ b/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/localscript_to_remote_updater.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +bash -c "$(curl https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Light_Updater/Updater%20Source%20Files/Update_Sovran_SystemsOS_Light.sh)" + +exit \ No newline at end of file diff --git a/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/Sovran_SystemsOS_Light_Updater.desktop b/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/Sovran_SystemsOS_Light_Updater.desktop new file mode 100644 index 0000000..0843de1 --- /dev/null +++ b/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/Sovran_SystemsOS_Light_Updater.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Version=1.0 +Terminal=false +Type=Application +Name=Sovran_SystemsOS Updater +Exec=/home/free/.Sovran_Systems/localscript_to_remote_updater.sh +Icon=/home/free/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg \ No newline at end of file diff --git a/Sovran_SystemsOS_Light_Updater/Updater Source Files/Intro.md b/Sovran_SystemsOS_Light_Updater/Updater Source Files/Intro.md new file mode 100644 index 0000000..68b0ed5 --- /dev/null +++ b/Sovran_SystemsOS_Light_Updater/Updater Source Files/Intro.md @@ -0,0 +1,26 @@ + +Welcome to the Sovran_SystemsOS_Light Updater! + + +This updater will run through a few stages. Sometimes, it could take up to 3 hours for it to finish. Be patient... + + +When it is finished, a final pop up will state "Yay complete! Please reboot when you are ready." + + +All updates come from these links: + +https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOS_Light + +and + +https://git.sovransystems.com/Sovran_Systems/Software + + +Don't Trust, Verify! + + +After you have checked that the software is safe from the links above, then click "OK." + + +Enjoy! \ No newline at end of file diff --git a/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh b/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh new file mode 100755 index 0000000..b5cd3b8 --- /dev/null +++ b/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh @@ -0,0 +1,64 @@ +!/usr/bin/env bash + +FLATPAK () { +if ! ssh root@localhost 'flatpak update -y' ; then + +zenity --error \ +--title="Sovran_SystemsOS_Light Updater" \ +--text="Could Not Update Flatpaks." + +exit 1 + +fi + +} + +SPICE () { +xterm -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure'" + +if [[ $? != 1 ]] ; then + +zenity --info \ +--ellipsize \ +--no-wrap \ +--width=700 \ +--title="Sovran_SystemsOS_Light Updater" \ +--text="Yay complete! Please reboot when you are ready." + +exit 1 + +else + +zenity --error \ +--width=700 \ +--title="Sovran_SystemsOS_Light Updater" \ +--text="Could not complete the update." + +exit 2 + +fi + +} + +######### + +curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Light_Updater/Updater%20Source%20Files/Intro.md" | + +zenity --text-info \ +--width=1000 \ +--height=700 \ +--title="Sovran_SystemsOS_Light Updater" + +if [[ $? -eq 1 ]]; then + +exit 1 + +else + +FLATPAK + +SPICE | zenity --progress --no-cancel --auto-close --width=550 --pulsate --text="Updating now. In rare cases, it could take up to 3 hours. Please Be Patient..." ----title="Sovran_SystemsOS_Light Updater" + +fi + +exit 0 \ No newline at end of file diff --git a/Sovran_SystemsOS_Light_Updater/sovran_systemsOS_light_updater_local_installer/sovran_systemsOS_light_updater_install.sh b/Sovran_SystemsOS_Light_Updater/sovran_systemsOS_light_updater_local_installer/sovran_systemsOS_light_updater_install.sh new file mode 100755 index 0000000..f5b5fc3 --- /dev/null +++ b/Sovran_SystemsOS_Light_Updater/sovran_systemsOS_light_updater_local_installer/sovran_systemsOS_light_updater_install.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +pushd /home/free/Downloads + + wget https://git.sovransystems.com/Sovran_Systems/Software/archive/main.zip + + unzip main.zip + +popd + +mkdir -p /home/free/.Sovran_Systems + +mkdir -p /home/free/.local/share/applications/ + +mv "/home/free/Downloads/software/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/localscript_to_remote_updater.sh" /home/free/.Sovran_Systems/ + +mv "/home/free/Downloads/software/Sovran_SystemsOS_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/Icon" /home/free/.Sovran_Systems/ + +mv "/home/free/Downloads/software/Sovran_SystemsOS_Updater/To Install on Local Sovran Book Pros/Sovran_SystemsOS_Light_Updater.desktop" /home/free/.local/share/applications/ + +chown free:users /home/free -R + +chmod 770 /home/free -R + +rm -rf /home/free/Downloads/software + +rm -rf /home/free/Downloads/main.zip + +rm -rf /home/free/Downloads/sovran_systemsOS_updater_install.sh + +exit \ No newline at end of file diff --git a/Sovran_SystemsOS_Updater/Updater Source Files/Intro.md b/Sovran_SystemsOS_Updater/Updater Source Files/Intro.md index dfac40f..4c33208 100644 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Intro.md +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Intro.md @@ -1,5 +1,5 @@ -Welcome to the Sovran_SystemsOS! +Welcome to the Sovran_SystemsOS Updater! This updater will run through a few stages. Sometimes, it could take up to 3 hours for it to finish. Be patient...