From 27878d90c28ee4ac69beb1d16590a240a7c584b5 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sun, 4 Jun 2023 22:00:34 -0700 Subject: [PATCH] added password rester-test --- .../Icon/Sovran_SystemsOS_Updater_Iconv3.svg | 236 ++++++++++++++++++ .../localscript_to_remote_updater.sh | 5 + .../Sovran_SystemsOS_Updater.desktop | 7 + .../Updater Source Files/Intro.md | 18 ++ .../Update_Sovran_SystemsOS.sh | 56 +++++ .../Update_Sovran_SystemsOS.sh.archive | 47 ++++ .../sovran_systemsOS_updater_install.sh | 23 ++ 7 files changed, 392 insertions(+) create mode 100644 Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg create mode 100644 Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/.Sovran_Systems/localscript_to_remote_updater.sh create mode 100644 Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop create mode 100644 Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Intro.md create mode 100755 Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Update_Sovran_SystemsOS.sh create mode 100755 Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Update_Sovran_SystemsOS.sh.archive create mode 100755 Sovran_SystemsOS_Password_Reseter1/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh diff --git a/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg b/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg new file mode 100644 index 0000000..db97054 --- /dev/null +++ b/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg @@ -0,0 +1,236 @@ + + + + + diff --git a/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/.Sovran_Systems/localscript_to_remote_updater.sh b/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/.Sovran_Systems/localscript_to_remote_updater.sh new file mode 100644 index 0000000..956f317 --- /dev/null +++ b/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn 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_Updater/Updater%20Source%20Files/Update_Sovran_SystemsOS.sh)" + +exit \ No newline at end of file diff --git a/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop b/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop new file mode 100644 index 0000000..0843de1 --- /dev/null +++ b/Sovran_SystemsOS_Password_Reseter1/To Install on Local Sovarn Pros/Sovran_SystemsOS_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_Password_Reseter1/Updater Source Files/Intro.md b/Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Intro.md new file mode 100644 index 0000000..9e0fd8e --- /dev/null +++ b/Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Intro.md @@ -0,0 +1,18 @@ + +Welcome to the Sovran_SystemsOS Updater! + +This updater will run through a few stages. + +Be patient... + +A couple windows will pop up during the process. Keep clicking "OK." + +When it is finished, a final pop up will state "Complete! Please Reboot." and then you can reboot when ready. + +All updates come from here: https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOSv2 + +Don't Trust, Verify! + +After you have checked that the software is safe from the link above, then click "OK." + +Enjoy! \ No newline at end of file diff --git a/Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Update_Sovran_SystemsOS.sh b/Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Update_Sovran_SystemsOS.sh new file mode 100755 index 0000000..55dc20d --- /dev/null +++ b/Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -0,0 +1,56 @@ +#!/usr/bin/env bash + +set -o nounset + +curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" | +zenity --text-info \ +--title="Sovran_SystemsOS Updater" \ +--width=1110 \ +--height=710 + +if [[ $? -eq 1 ]]; then + + exit 1 + +else + +#id=$(curl ifconfig.me) + +ssh -i /home/free/.ssh/sovranpro_login root@192.168.1.32 'cd /etc/nixos; nix flake update' + +if [[ $? != 0 ]]; then + echo "Could not update flake -- exiting" | + zenity --text-info \ + --title="Sovran_SystemsOS Updater" \ + --width=1110 \ + --height=710 + + exit 1 +fi + +ssh -i /home/free/.ssh/sovranpro_login root@192.168.1.32 "nixos-rebuild switch --impure" | + zenity --progress \ + --no-cancel \ + --auto-close \ + --pulsate \ + --title="Sovran_SystemsOS Updater" + +if [[ $? != 0 ]]; then + echo "Could not Update Sovran_SystemsOS -- exiting" | + zenity --text-info \ + --title="Sovran_SystemsOS Updater" \ + --width=1110 \ + --height=710 + + exit 1 +fi + +zenity --info \ + --ellipsize \ + --no-wrap \ + --title="Sovran_SystemsOS Updater" \ + --text="Complete! Please Reboot." + +fi + +exit 0 \ No newline at end of file diff --git a/Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Update_Sovran_SystemsOS.sh.archive b/Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Update_Sovran_SystemsOS.sh.archive new file mode 100755 index 0000000..5b85db5 --- /dev/null +++ b/Sovran_SystemsOS_Password_Reseter1/Updater Source Files/Update_Sovran_SystemsOS.sh.archive @@ -0,0 +1,47 @@ +#!/usr/bin/env bash + + +curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" | +zenity --text-info \ +--title="Sovran_SystemsOS Updater" \ +--width=1110 \ +--height=710 + +if [[ $? -eq 1 ]]; then + + exit 1 +fi + +password=$(zenity --password --title="Sovran_SystemsOS Updater") + + if [ $? -eq 1 ] ; then + + exit 2 + + else + + + pushd /etc/nixos/ + + echo -e "$password" | sudo -S nix flake update + + popd + + + echo -e "$password" | sudo -S nixos-rebuild switch --impure | + zenity --progress \ + --no-cancel \ + --auto-close \ + --pulsate \ + --title="Sovran_SystemsOS Updater" + + + zenity --info \ + --ellipsize \ + --no-wrap \ + --title="Sovran_SystemsOS Updater" \ + --text="Complete! Please Reboot." + + fi + +exit 0 \ No newline at end of file diff --git a/Sovran_SystemsOS_Password_Reseter1/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh b/Sovran_SystemsOS_Password_Reseter1/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh new file mode 100755 index 0000000..7d242e0 --- /dev/null +++ b/Sovran_SystemsOS_Password_Reseter1/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +pushd ~/Downloads + +wget https://git.sovransystems.com/Sovran_Systems/Software/archive/main.zip + +unzip main.zip + +popd + +mkdir ~/.Sovran_Systems + +mv "/home/free/Downloads/packages/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems" /home/free/ + +mv "/home/free/Downloads/packages/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop" /home/free/.local/share/applications/ + +chmod 770 /home/free/.Sovran_Systems/localscript_to_remote_updater.sh + +rm -rf /home/free/Downloads/main.zip + +rm -rf /home/free/Downloads/packages + +exit \ No newline at end of file