From be6d2721cd851c46e0c8f647f72625ff1c6b2e81 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sat, 16 Mar 2024 21:10:31 -0700 Subject: [PATCH] initial commit --- .../Icon/Sovran_SystemsOS_Updater_Iconv3.svg | 236 -------- .../localscript_to_remote_updater.sh | 5 - .../Sovran_SystemsOS_Light_Updater.desktop | 7 - .../Updater Source Files/Intro.md | 30 - .../Update_Sovran_SystemsOS_Light.sh | 81 --- .../sovran_systemsOS_light_updater_install.sh | 31 - .../Master_Passwords_Reset.sh | 548 ------------------ Sovran_SystemsOS_Resetter/Resetter_Intro.md | 37 -- .../Sovran_SystemsOS_Resetter_Icon2.svg | 241 -------- .../Sovran_SystemsOS_Resetter.desktop | 7 - .../localscript_to_remote_resetter.sh | 5 - .../sovran_systemsOS_resetter_install.sh | 31 - .../Icon/Sovran_SystemsOS_Updater_Iconv3.svg | 236 -------- .../localscript_to_remote_updater.sh | 5 - .../Sovran_SystemsOS_Updater.desktop | 7 - .../Updater Source Files/Intro.md | 28 - .../Update_Sovran_SystemsOS.sh | 81 --- .../sovran_systemsOS_updater_install.sh | 31 - 18 files changed, 1647 deletions(-) delete mode 100755 Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg delete mode 100755 Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/localscript_to_remote_updater.sh delete mode 100755 Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/Sovran_SystemsOS_Light_Updater.desktop delete mode 100755 Sovran_SystemsOS_Light_Updater/Updater Source Files/Intro.md delete mode 100755 Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh delete mode 100755 Sovran_SystemsOS_Light_Updater/sovran_systemsOS_light_updater_local_installer/sovran_systemsOS_light_updater_install.sh delete mode 100755 Sovran_SystemsOS_Resetter/Resetter Source Files/Master_Passwords_Reset.sh delete mode 100755 Sovran_SystemsOS_Resetter/Resetter_Intro.md delete mode 100755 Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Icon_Resetter/Sovran_SystemsOS_Resetter_Icon2.svg delete mode 100755 Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Sovran_SystemsOS_Resetter.desktop delete mode 100755 Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/localscript_to_remote_resetter.sh delete mode 100755 Sovran_SystemsOS_Resetter/sovran_systemsOS_resetter_local_installer/sovran_systemsOS_resetter_install.sh delete mode 100755 Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg delete mode 100755 Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/localscript_to_remote_updater.sh delete mode 100755 Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop delete mode 100755 Sovran_SystemsOS_Updater/Updater Source Files/Intro.md delete mode 100755 Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh delete mode 100755 Sovran_SystemsOS_Updater/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh 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 deleted file mode 100755 index db97054..0000000 --- a/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg +++ /dev/null @@ -1,236 +0,0 @@ - - - - - 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 deleted file mode 100755 index a04e42a..0000000 --- a/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/localscript_to_remote_updater.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -bash -c "$(curl https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Light_Updater/To%20Install%20on%20Local%20Sovran%20Book%20Pros/.Sovran_Systems/localscript_to_remote_updater.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 deleted file mode 100755 index e40b1ad..0000000 --- a/Sovran_SystemsOS_Light_Updater/To Install on Local Sovran Book Pros/Sovran_SystemsOS_Light_Updater.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Version=1.0 -Terminal=false -Type=Application -Name=Sovran_SystemsOS_Light 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 deleted file mode 100755 index 7d1d8a0..0000000 --- a/Sovran_SystemsOS_Light_Updater/Updater Source Files/Intro.md +++ /dev/null @@ -1,30 +0,0 @@ - -Welcome to the Sovran_SystemsOS_Light Updater! - - -This updater will run through a few stages. Sometimes, it could take up to 1 hour for it to finish. Be patient... - -You may keep working while the update is in progress. - -When it is finished, a final pop up will state "Yay complete! Please reboot when you are ready." - -Save all your work (if you were working on file) and reboot your Sovran Pro. - -All Sovran_SystemsOS_Updater logs can be found in your Documents folder under "Updater_App_Logs" - -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 deleted file mode 100755 index c8b92f8..0000000 --- a/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/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 () { - -time_stamp=$(date +%Y-%m-%d-%T) - -mkdir -p /home/free/Documents/Updater_App_Logs - -xterm -T "Sovran_SystemsOS_Light_Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch 2>&1 | tee /home/free/Documents/Updater_App_Logs/{$time_stamp}_Updater_Log.txt'" - -} - -TACO () { - -pushd /home/free/Documents/Updater_App_Logs - -file=$(ls -Art | tail -n 1) - -if grep -w "error" $file ; then - - zenity --error \ - --width=1300 \ - --title="Sovran_SystemsOS_Light_Updater" \ - --text="Could not complete the Sovran_SystemsOS update. Check the error log in your Documents under Updater_App_Logs folder for more details." - -else - zenity --info \ - --ellipsize \ - --no-wrap \ - --width=550 \ - --title="Sovran_SystemsOS_Light_Updater" \ - --text="Yay complete! Please reboot when you are ready." - - exit 1 - -fi - -popd - -} - -######### - -curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Light_Updater/Updater%20Source%20Files/Intro.md" | - -zenity --text-info \ ---width=1100 \ ---height=930 \ ---title="Sovran_SystemsOS_Light_Updater" - -if [[ $? -eq 1 ]]; then - - exit 1 - -else - - FLATPAK | zenity --progress --no-cancel --auto-close --width=500 --pulsate --text="Updating Flatpaks now..." --title="Sovran_SystemsOS_Light_Updater" - - SPICE | zenity --progress --no-cancel --auto-close --width=1050 --pulsate --text="Updating now. In rare cases, it could take up to 3 hours. Go have some herbal tea and relax while the update is in progress." --title="Sovran_SystemsOS_Light_Updater" - - TACO - - find /home/free/Documents/Updater_App_Logs -name "*.txt" -type f -mtime +3 -delete - -fi - -exit 0 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 deleted file mode 100755 index 20f99e3..0000000 --- a/Sovran_SystemsOS_Light_Updater/sovran_systemsOS_light_updater_local_installer/sovran_systemsOS_light_updater_install.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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_Light_Updater/To Install on Local Sovran Book Pros/.Sovran_Systems/Icon" /home/free/.Sovran_Systems/ - -mv "/home/free/Downloads/software/Sovran_SystemsOS_Light_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 700 /home/free -R - -rm -rf /home/free/Downloads/software - -rm -rf /home/free/Downloads/main.zip - -rm -rf /home/free/Downloads/sovran_systemsOS_light_updater_install.sh - -exit \ No newline at end of file diff --git a/Sovran_SystemsOS_Resetter/Resetter Source Files/Master_Passwords_Reset.sh b/Sovran_SystemsOS_Resetter/Resetter Source Files/Master_Passwords_Reset.sh deleted file mode 100755 index 7d00282..0000000 --- a/Sovran_SystemsOS_Resetter/Resetter Source Files/Master_Passwords_Reset.sh +++ /dev/null @@ -1,548 +0,0 @@ -#!/usr/bin/env bash - -YUP () { - -set -o nounset - -#### CREATE NEW MASTER LOGIN #### - -#### Check to See If It Has Been Run Before #### - -FILE=/var/lib/beacons/resetter/completed - -if [ -e $FILE ]; then - - zenity --info \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Already Completed" - - exit 1 - -else - - #### Initial Reseter Tag #### - - ssh root@localhost 'mkdir -p /var/lib/beacons/resetter ; touch /var/lib/beacons/resetter/started' - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Create Resetter Tag" - - exit 1 - - fi - - #### Create New Log In SSH Key For the Local Sovran Pro #### - - PASS=$(zenity --password --title="Please Type In A New Sovran Pro Updater Password") - - if [[ $? -eq 1 ]]; then - - exit 1 - - else - - ssh-keygen -q -N "${PASS}" -t ed25519 -f /home/free/.ssh/sovranpro_login - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Create New Login Key" - - exit 1 - - fi - - - ssh root@localhost 'sed -i -e "0,/ssh-ed25519.*/{ s::$(cat /home/free/.ssh/sovranpro_login.pub): }" /root/.ssh/authorized_keys' - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Move Key to Root" - - exit 1 - - fi - - fi - - rm -rf /home/free/.ssh/factory_login /home/free/.ssh/factory_login.pub - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Remove Factory Keys" - - exit 1 - - fi - - - #### RESET KEYS FOR AGENIX #### - - ### Make Backup Directory #### - - NOW=$(date '+%Y%m%d.%H%M%S') # default NOW string - BAKDIR=bak_${NOW} - - ssh root@localhost "cd /root/.ssh/agenix/; mkdir ${BAKDIR}" - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Make Backup Directory" - - exit 1 - - fi - - #### Move existing keys to Backup Directory #### - - ssh root@localhost "cd /root/.ssh/agenix/; mv agenix-secret-keys* ${BAKDIR}" - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Move Keys to Backup Directory" - - exit 1 - - fi - - ##### Generate New Keys #### - - ssh root@localhost 'ssh-keygen -q -N "" -t ed25519 -f /root/.ssh/agenix/agenix-secret-keys' - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Reset Main Agenix Keys" - - exit 1 - - fi - - #### Send .pub into agenix/secrets.nix #### - - ssh root@localhost 'sed -i -e "0,/root.*/{s::root = $(cat /root/.ssh/agenix/agenix-secret-keys.pub):};s:root@nixos::" /var/lib/agenix-secrets/secrets.nix' - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Send Agenix Keys to Main" - - exit 1 - - fi - - ssh root@localhost << 'EOF' - - sed -i 's:\(root =[[:blank:]]*\)\(.*\):\1"\2";:' /var/lib/agenix-secrets/secrets.nix - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Put Quotes On Agenix Keys in Main" - - exit 1 - - fi - - - #### DATABASES #### - - ssh root@localhost "echo -n $(pwgen -s 33 -1) > /var/lib/secrets/wordpressdb" - - ssh root@localhost "echo -n $(pwgen -s 33 -1) > /var/lib/secrets/matrixdb" - - ssh root@localhost "echo -n $(pwgen -s 33 -1) > /var/lib/secrets/nextclouddb" - - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Reset Database Passwords" - - exit 1 - - fi - - - #### Mysql Passwords #### - - ssh root@localhost << 'EOF' - - wp=$(cat /var/lib/secrets/wordpressdb) - - sudo mysql -u root -e "SET PASSWORD FOR wpusr@localhost = PASSWORD('${wp}')"; - - sed -i "s:define( 'DB_PASSWORD'.*:define( 'DB_PASSWORD', '${wp}' );:" /var/lib/www/wordpress/wp-config.php - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Update Wordpress Config File and/or Update Wordpress Password to Database" - - exit 1 - - fi - - - #### PostgresQL Passwords #### - - ssh root@localhost << 'EOF' - - nc=$(cat /var/lib/secrets/nextclouddb) - - sed -i "s:'dbpassword.*:'dbpassword' => '${nc}',:" /var/lib/www/nextcloud/config/config.php - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Update Nextcloud Config File" - - exit 1 - - fi - - - ssh root@localhost << 'EOF' - - nc=$(cat /var/lib/secrets/nextclouddb) - - PGPASSWORD=${nc} psql -U ncusr nextclouddb - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Reset Nextcloud Database Password" - - exit 1 - - fi - - - ssh root@localhost << 'EOF' - - ms=$(cat /var/lib/secrets/matrixdb) - - PGPASSWORD=${ms} psql -U matrix-synapse matrix-synapse - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Reset Matrix-Synapse Database Passwords" - - exit 1 - - fi - - #### Matrix-Synapse Keys #### - - ssh root@localhost "echo -n $(pwgen -s 33 -1) > /var/lib/secrets/turn" - - ssh root@localhost "echo -n $(pwgen -s 33 -1) > /var/lib/secrets/matrix_reg_secret" - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Reset Matrix-Synapse Keys" - - exit 1 - - fi - - - #### UPDATE AGENIX SECRETS #### - - ssh root@localhost " - - rm -rf /var/lib/agenix-secrets/nextclouddb.age ; - rm -rf /var/lib/agenix-secrets/wordpressdb.age ; - rm -rf /var/lib/agenix-secrets/turn.age ; - rm -rf /var/lib/agenix-secrets/matrixdb.age ; - rm -rf /var/lib/agenix-secrets/matrix_reg_secret.age " - - - ssh root@localhost << 'EOF' - - pushd /var/lib/agenix-secrets/ - - echo -n $(cat /var/lib/secrets/wordpressdb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e wordpressdb.age -i /root/.ssh/agenix/agenix-secret-keys - - echo -n $(cat /var/lib/secrets/nextclouddb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e nextclouddb.age -i /root/.ssh/agenix/agenix-secret-keys - - echo -n $(cat /var/lib/secrets/matrixdb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e matrixdb.age -i /root/.ssh/agenix/agenix-secret-keys - - echo -n $(cat /var/lib/secrets/turn) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e turn.age -i /root/.ssh/agenix/agenix-secret-keys - - echo -n $(cat /var/lib/secrets/matrix_reg_secret) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e matrix_reg_secret.age -i /root/.ssh/agenix/agenix-secret-keys - - popd - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Update Agenix Secrets" - - exit 1 - - fi - - - #### VAULTWARDEN #### - - ssh root@localhost << 'EOF' - - echo -n $(pwgen -s 77 -1) > /var/lib/secrets/vaultwarden/vaultwarden - - ENCRYPTPASS=$(cat "/var/lib/secrets/vaultwarden/vaultwarden" | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4) - - sed -i "0,/ADMIN_.*/{s::ADMIN_TOKEN=${ENCRYPTPASS}:}" /var/lib/secrets/vaultwarden/vaultwarden.env - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Update Vaultwarden Password" - - exit 1 - - fi - - - #### MAIN #### - - ssh root@localhost << 'EOF' - - echo -n $(pwgen -s 77 -1) > /var/lib/secrets/main - - sudo echo "root:$(cat /var/lib/secrets/main)" | chpasswd -c SHA512 - -EOF - - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Update Main Password" - - exit 1 - - fi - - - #### RESET SYSTEMD SERVICES #### - - ssh root@localhost "systemctl restart postgresql matrix-synapse caddy mysql coturn vaultwarden" - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Reset Services" - - exit 1 - - fi - - - #### RESET LND AND RTL #### - - ssh root@localhost << 'EOF' - - systemctl stop bitcoind lnd lightning-loop lightning-pool rtl - - rm -rf /var/lib/lightning-loop /var/lib/lightning-pool /var/lib/lnd - - echo -n $(pwgen -s 33 -1) > /etc/nix-bitcoin-secrets/rtl-password - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Reset LND or RTL Passwords" - - exit 1 - - fi - - - #### NIXOS REBUILD SWITCH #### - - ssh root@localhost 'nixos-rebuild switch --impure' - - - #### FINAL RESETER TAG #### - - ssh root@localhost 'touch /var/lib/beacons/resetter/completed' - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Create Final Resetter Tag" - - exit 1 - - fi - - -#### FINAL DIALOG POPUP #### - - zenity --info \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="All Done! All Passwords Are Reset." - - - #### REMOVE RESETER APP #### - - rm -rf /home/free/.Sovran_Systems/localscript_to_remote_resetter.sh - - rm -rf /home/free/.Sovran_Systems/Icon_Resetter - - rm -rf /home/free/.local/share/applications/Sovran_SystemsOS_Resetter.desktop - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --width=350 \ - --title="Sovran_SystemsOS_Resetter" \ - --text="Could Not Remove Resetter App" - - exit 1 - - fi - -fi - -exit 0 - -} - -######### - -curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Resetter/Resetter_Intro.md" | - -zenity --text-info \ ---width=1000 \ ---height=750 \ ---title="Sovran_SystemsOS_Resetter" - -if [[ $? -eq 1 ]]; then - - exit 1 - -else - - YUP | zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Resetting now. Please be patient..." --title="Sovran_SystemsOS_Resetter" - -fi - -exit 0 \ No newline at end of file diff --git a/Sovran_SystemsOS_Resetter/Resetter_Intro.md b/Sovran_SystemsOS_Resetter/Resetter_Intro.md deleted file mode 100755 index e753fa2..0000000 --- a/Sovran_SystemsOS_Resetter/Resetter_Intro.md +++ /dev/null @@ -1,37 +0,0 @@ - -Welcome to the Sovran_SystemsOS_Resetter App! - - -This resetter will run through a few stages to reset all your internal passwords from the factory. - - -It will first ask for the factory password which is "gosovransystems" - - -Then, it will ask you for your new password in a pop window titled "Please Type In A New Sovran Pro Updater Password" - -Once you have thought of your new password and typed it in, make SURE YOU KEEP THIS PASSWORD SAFE and do NOT store it on the Sovran Pro. - - -Then, it will ask you to type the NEW password again in a new pop up. - - -That is it! - - -Now just wait for all the internal passwords to be reset. - - -When it is finished, a final pop up will state "All Done! All Passwords Are Reset." - - -All updates come from here: https://https://git.sovransystems.com/Sovran_Systems/Software/src/branch/main/Sovran_SystemsOS_Resetter - - -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_Resetter/To Install on local Sovran Pro/Icon_Resetter/Sovran_SystemsOS_Resetter_Icon2.svg b/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Icon_Resetter/Sovran_SystemsOS_Resetter_Icon2.svg deleted file mode 100755 index b26eee8..0000000 --- a/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Icon_Resetter/Sovran_SystemsOS_Resetter_Icon2.svg +++ /dev/null @@ -1,241 +0,0 @@ - - - - - diff --git a/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Sovran_SystemsOS_Resetter.desktop b/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Sovran_SystemsOS_Resetter.desktop deleted file mode 100755 index 947145e..0000000 --- a/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Sovran_SystemsOS_Resetter.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Version=1.0 -Terminal=false -Type=Application -Name=Sovran_SystemsOS_Resetter -Exec=/home/free/.Sovran_Systems/localscript_to_remote_resetter.sh -Icon=/home/free/.Sovran_Systems/Icon_Resetter/Sovran_SystemsOS_Resetter_Icon2.svg \ No newline at end of file diff --git a/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/localscript_to_remote_resetter.sh b/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/localscript_to_remote_resetter.sh deleted file mode 100755 index c9f4c48..0000000 --- a/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/localscript_to_remote_resetter.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -bash -c "$(curl https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Resetter/Resetter%20Source%20Files/Master_Passwords_Reset.sh)" - -exit \ No newline at end of file diff --git a/Sovran_SystemsOS_Resetter/sovran_systemsOS_resetter_local_installer/sovran_systemsOS_resetter_install.sh b/Sovran_SystemsOS_Resetter/sovran_systemsOS_resetter_local_installer/sovran_systemsOS_resetter_install.sh deleted file mode 100755 index be9928d..0000000 --- a/Sovran_SystemsOS_Resetter/sovran_systemsOS_resetter_local_installer/sovran_systemsOS_resetter_install.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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_Resetter/To Install on local Sovran Pro/localscript_to_remote_resetter.sh" /home/free/.Sovran_Systems/ - -mv "/home/free/Downloads/software/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Icon_Resetter/" /home/free/.Sovran_Systems/ - -mv "/home/free/Downloads/software/Sovran_SystemsOS_Resetter/To Install on local Sovran Pro/Sovran_SystemsOS_Resetter.desktop" /home/free/.local/share/applications/ - -chown free:users /home/free -R - -chmod 700 /home/free -R - -rm -rf /home/free/Downloads/software - -rm -rf /home/free/Downloads/main.zip - -rm -rf /home/free/Downloads/sovran_systemsOS_resetter_install.sh - -exit \ No newline at end of file diff --git a/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg b/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg deleted file mode 100755 index db97054..0000000 --- a/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg +++ /dev/null @@ -1,236 +0,0 @@ - - - - - diff --git a/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/localscript_to_remote_updater.sh b/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/localscript_to_remote_updater.sh deleted file mode 100755 index 956f317..0000000 --- a/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/localscript_to_remote_updater.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/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_Updater/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop b/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop deleted file mode 100755 index 0843de1..0000000 --- a/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[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_Updater/Updater Source Files/Intro.md b/Sovran_SystemsOS_Updater/Updater Source Files/Intro.md deleted file mode 100755 index c4ad0d1..0000000 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Intro.md +++ /dev/null @@ -1,28 +0,0 @@ - -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. Please be patient. - -You may keep working while the update is in progress. - -When it is finished, a final pop up will state "Yay complete! Please reboot when you are ready." - -Save all your work (if you were working on file) and reboot your Sovran Pro. - -All Sovran_SystemsOS_Updater logs can be found in your Documents folder under "Updater_App_Logs" - -All updates come from these links: - -https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOS - -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_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh deleted file mode 100755 index 169aba0..0000000 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/env bash - -FLATPAK () { - -if ! ssh root@localhost 'flatpak update -y' ; then - - zenity --error \ - --title="Sovran_SystemsOS_Updater" \ - --text="Could Not Update Flatpaks." - - exit 1 - -fi - -} - -SPICE () { - -time_stamp=$(date +%Y-%m-%d-%T) - -mkdir -p /home/free/Documents/Updater_App_Logs - -xterm -T "Sovran_SystemsOS_Updater" -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 2>&1 | tee /home/free/Documents/Updater_App_Logs/{$time_stamp}_Updater_Log.txt'" - -} - -TACO () { - -pushd /home/free/Documents/Updater_App_Logs - -file=$(ls -Art | tail -n 1) - -if grep -w "error" $file ; then - - zenity --error \ - --width=1300 \ - --title="Sovran_SystemsOS_Updater" \ - --text="Could not complete the Sovran_SystemsOS update. Check the error log in your Documents under Updater_App_Logs folder for more details." - -else - zenity --info \ - --ellipsize \ - --no-wrap \ - --width=550 \ - --title="Sovran_SystemsOS_Updater" \ - --text="Yay complete! Please reboot when you are ready." - - exit 1 - -fi - -popd - -} - -######### - -curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" | - -zenity --text-info \ ---width=1100 \ ---height=930 \ ---title="Sovran_SystemsOS_Updater" - -if [[ $? -eq 1 ]]; then - - exit 1 - -else - - FLATPAK | zenity --progress --no-cancel --auto-close --width=500 --pulsate --text="Updating Flatpaks now..." --title="Sovran_SystemsOS_Updater" - - SPICE | zenity --progress --no-cancel --auto-close --width=1050 --pulsate --text="Updating now. In rare cases, it could take up to 3 hours. Go have some herbal tea and relax while the update is in progress." --title="Sovran_SystemsOS_Updater" - - TACO - - find /home/free/Documents/Updater_App_Logs -name "*.txt" -type f -mtime +3 -delete - -fi - -exit 0 diff --git a/Sovran_SystemsOS_Updater/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh b/Sovran_SystemsOS_Updater/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh deleted file mode 100755 index fa90887..0000000 --- a/Sovran_SystemsOS_Updater/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/localscript_to_remote_updater.sh" /home/free/.Sovran_Systems/ - -mv "/home/free/Downloads/software/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/.Sovran_Systems/Icon" /home/free/.Sovran_Systems/ - -mv "/home/free/Downloads/software/Sovran_SystemsOS_Updater/To Install on Local Sovarn Pros/Sovran_SystemsOS_Updater.desktop" /home/free/.local/share/applications/ - -chown free:users /home/free -R - -chmod 700 /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