initial commit
This commit is contained in:
parent
bae942ecfb
commit
be6d2721cd
@ -1,236 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="128px"
|
||||
height="128px"
|
||||
viewBox="0 0 128 128"
|
||||
version="1.1"
|
||||
id="svg96"
|
||||
sodipodi:docname="Sovran_SystemsOS_Updater_Iconv3.svg"
|
||||
xml:space="preserve"
|
||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview98"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="5.2149125"
|
||||
inkscape:cx="9.0126153"
|
||||
inkscape:cy="64.430611"
|
||||
inkscape:window-width="3440"
|
||||
inkscape:window-height="1352"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer2" /><defs
|
||||
id="defs67"><linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient936"><stop
|
||||
style="stop-color:#1e8e11;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop932" /><stop
|
||||
style="stop-color:#1bff00;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop934" /></linearGradient><linearGradient
|
||||
id="linearGradient1028"
|
||||
inkscape:swatch="solid"><stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop1026" /></linearGradient><linearGradient
|
||||
id="linearGradient998"
|
||||
inkscape:swatch="solid"><stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop996" /></linearGradient><radialGradient
|
||||
id="radial0"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="131.914749"
|
||||
cy="55.927143"
|
||||
fx="131.914749"
|
||||
fy="55.927143"
|
||||
r="160"
|
||||
gradientTransform="matrix(0.232034,-0.541475,-0.368794,-0.0298398,4.277749,118.95849)"><stop
|
||||
offset="0"
|
||||
style="stop-color:#00ff39;stop-opacity:1;"
|
||||
id="stop2" /><stop
|
||||
offset="1"
|
||||
style="stop-color:#004a19;stop-opacity:1;"
|
||||
id="stop4" /></radialGradient><radialGradient
|
||||
id="radial1"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="525.587769"
|
||||
cy="638.591797"
|
||||
fx="525.587769"
|
||||
fy="638.591797"
|
||||
r="192"
|
||||
gradientTransform="matrix(-0.107656,-0.225172,-0.327748,0.258343,373.87973,30.205086)"><stop
|
||||
offset="0"
|
||||
style="stop-color:#43b60b;stop-opacity:1;"
|
||||
id="stop7" /><stop
|
||||
offset="1"
|
||||
style="stop-color:#0b88ff;stop-opacity:0.00829875;"
|
||||
id="stop9" /></radialGradient><clipPath
|
||||
id="clip1"><path
|
||||
d="M 7 46 L 57 46 L 57 93 L 7 93 Z M 7 46 "
|
||||
id="path12" /></clipPath><clipPath
|
||||
id="clip2"><path
|
||||
d="M 32.25 46.957031 C 19.6875 46.96875 9.085938 56.636719 7.503906 69.53125 C 9.0625 82.445312 19.667969 92.144531 32.25 92.160156 C 44.816406 92.148438 55.414062 82.480469 57 69.585938 C 55.441406 56.671875 44.835938 46.972656 32.25 46.957031 Z M 32.25 46.957031 "
|
||||
id="path15" /></clipPath><radialGradient
|
||||
id="radial2"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="131.914749"
|
||||
cy="55.927143"
|
||||
fx="131.914749"
|
||||
fy="55.927143"
|
||||
r="160"
|
||||
gradientTransform="matrix(0.485163,-1.148584,-0.771115,-0.0632965,-47.124961,203.98857)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(92.941177%,20%,23.137255%);stop-opacity:1;"
|
||||
id="stop18" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(63.921571%,27.843139%,72.941178%);stop-opacity:1;"
|
||||
id="stop20" /></radialGradient><radialGradient
|
||||
id="radial3"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="525.587769"
|
||||
cy="638.591797"
|
||||
fx="525.587769"
|
||||
fy="638.591797"
|
||||
r="192"
|
||||
gradientTransform="matrix(-0.225099,-0.477638,-0.685291,0.548001,725.67923,15.723794)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(10.980392%,44.313726%,84.705883%);stop-opacity:1;"
|
||||
id="stop23" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(20.784314%,51.764709%,89.411765%);stop-opacity:0.00829876;"
|
||||
id="stop25" /></radialGradient><linearGradient
|
||||
id="linear0"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="22"
|
||||
y1="37"
|
||||
x2="62"
|
||||
y2="37"
|
||||
gradientTransform="matrix(1.4,0,0,1.4,-26.799973,2.491745)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(58.039218%,57.647061%,56.470591%);stop-opacity:1;"
|
||||
id="stop28" /><stop
|
||||
offset="0.0908155"
|
||||
style="stop-color:rgb(87.058824%,86.666667%,85.490197%);stop-opacity:1;"
|
||||
id="stop30" /><stop
|
||||
offset="0.336093"
|
||||
style="stop-color:rgb(60.392159%,60.000002%,58.823532%);stop-opacity:1;"
|
||||
id="stop32" /><stop
|
||||
offset="0.844326"
|
||||
style="stop-color:rgb(76.47059%,75.294119%,72.941178%);stop-opacity:1;"
|
||||
id="stop34" /><stop
|
||||
offset="0.930505"
|
||||
style="stop-color:rgb(87.058824%,86.666667%,85.490197%);stop-opacity:1;"
|
||||
id="stop36" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(75.294119%,74.901962%,73.725492%);stop-opacity:1;"
|
||||
id="stop38" /></linearGradient><radialGradient
|
||||
id="radial4"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="-172.560638"
|
||||
cy="28.569126"
|
||||
fx="-172.560638"
|
||||
fy="28.569126"
|
||||
r="15.85742"
|
||||
gradientTransform="matrix(1.560712,0,0,1.4252,300.69366,13.349996)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:0.358268;"
|
||||
id="stop41" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:0.0944882;"
|
||||
id="stop43" /></radialGradient><filter
|
||||
id="alpha"
|
||||
filterUnits="objectBoundingBox"
|
||||
x="0"
|
||||
y="0"
|
||||
width="1"
|
||||
height="1"><feColorMatrix
|
||||
type="matrix"
|
||||
in="SourceGraphic"
|
||||
values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"
|
||||
id="feColorMatrix46" /></filter><mask
|
||||
id="mask0"><g
|
||||
filter="url(#alpha)"
|
||||
id="g51"><rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="128"
|
||||
height="128"
|
||||
style="fill:rgb(0%,0%,0%);fill-opacity:0.1;stroke:none;"
|
||||
id="rect49" /></g></mask><clipPath
|
||||
id="clip3"><rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="192"
|
||||
height="152"
|
||||
id="rect54" /></clipPath><g
|
||||
id="surface382"
|
||||
clip-path="url(#clip3)"><path
|
||||
style=" stroke:none;fill-rule:nonzero;fill:rgb(27.058825%,21.176471%,21.568628%);fill-opacity:1;"
|
||||
d="M 40 59.957031 C 26.191406 59.957031 15 71.152344 15 84.957031 C 15.011719 85.996094 15.085938 86.777344 15.222656 87.804688 C 15.222656 75.957031 27.421875 65.96875 40 65.957031 C 52.597656 65.972656 64.777344 75.957031 64.777344 87.859375 C 64.917969 86.816406 64.992188 86.011719 65 84.957031 C 65 71.152344 53.808594 59.957031 40 59.957031 Z M 40 59.957031 "
|
||||
id="path57" /></g><radialGradient
|
||||
id="radial5"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="40"
|
||||
cy="227"
|
||||
fx="40"
|
||||
fy="227"
|
||||
r="28"
|
||||
gradientTransform="matrix(0.575553,0,1.60551e-8,1.540703,8.977913,-280.78108)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:1;"
|
||||
id="stop60" /><stop
|
||||
offset="0.744626"
|
||||
style="stop-color:rgb(98.039216%,98.039216%,98.039216%);stop-opacity:1;"
|
||||
id="stop62" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(87.450981%,87.450981%,87.450981%);stop-opacity:1;"
|
||||
id="stop64" /></radialGradient>
|
||||
|
||||
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient936"
|
||||
id="linearGradient938"
|
||||
x1="-48.519272"
|
||||
y1="18.511358"
|
||||
x2="287.07454"
|
||||
y2="18.511358"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.1020247,0,0,1.1097375,37.198581,-10.424856)" /></defs><path
|
||||
style="fill:#f5f5f3;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
d="m 20,11.957031 h 88 c 4.41797,0 8,3.582031 8,8 V 108 c 0,4.41797 -3.58203,8 -8,8 H 20 c -4.417969,0 -8,-3.58203 -8,-8 V 19.957031 c 0,-4.417969 3.582031,-8 8,-8 z m 0,0"
|
||||
id="path69" /><path
|
||||
style="fill:url(#radial0);fill-rule:nonzero;stroke:none"
|
||||
d="m 20,85.957031 h 88 v -66 H 20 Z m 0,0"
|
||||
id="path71" /><path
|
||||
style="fill:none;fill-rule:nonzero;stroke:none;fill-opacity:1"
|
||||
d="m 20,85.957031 h 88 v -66 H 20 Z m 0,0"
|
||||
id="path73" /><g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Layer 1"
|
||||
transform="matrix(0.1816,0,0,0.1816,35.224187,79.037164)"><ellipse
|
||||
fill="#54c147"
|
||||
cx="168.64549"
|
||||
cy="10.117889"
|
||||
id="circle8314"
|
||||
rx="184.91634"
|
||||
ry="179.91556"
|
||||
style="fill:url(#linearGradient938);fill-opacity:1;stroke-width:1.71591" /><polygon
|
||||
fill="#ffffff"
|
||||
points="46.678,120.299 63.562,96.402 96.977,121.718 145.084,50.79 168.752,69.02 103.583,164.647 "
|
||||
id="polygon8316"
|
||||
transform="matrix(1.7395866,0,0,1.6925423,-18.737581,-172.19767)" /></g></svg>
|
Before Width: | Height: | Size: 8.4 KiB |
@ -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
|
@ -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
|
@ -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!
|
@ -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
|
@ -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
|
@ -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
|
@ -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!
|
@ -1,241 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="128px"
|
||||
height="128px"
|
||||
viewBox="0 0 128 128"
|
||||
version="1.1"
|
||||
id="svg96"
|
||||
sodipodi:docname="Sovran_SystemsOS_Reseter_Icon.svg"
|
||||
xml:space="preserve"
|
||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview98"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="6.8818681"
|
||||
inkscape:cx="38.579641"
|
||||
inkscape:cy="69.38523"
|
||||
inkscape:window-width="2560"
|
||||
inkscape:window-height="1513"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer2" /><defs
|
||||
id="defs67"><linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient936"><stop
|
||||
style="stop-color:#1e8e11;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop932" /><stop
|
||||
style="stop-color:#1bff00;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop934" /></linearGradient><linearGradient
|
||||
id="linearGradient1028"
|
||||
inkscape:swatch="solid"><stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop1026" /></linearGradient><linearGradient
|
||||
id="linearGradient998"
|
||||
inkscape:swatch="solid"><stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop996" /></linearGradient><radialGradient
|
||||
id="radial0"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="131.914749"
|
||||
cy="55.927143"
|
||||
fx="131.914749"
|
||||
fy="55.927143"
|
||||
r="160"
|
||||
gradientTransform="matrix(0.232034,-0.541475,-0.368794,-0.0298398,4.277749,118.95849)"><stop
|
||||
offset="0"
|
||||
style="stop-color:#00ff39;stop-opacity:1;"
|
||||
id="stop2" /><stop
|
||||
offset="1"
|
||||
style="stop-color:#004a19;stop-opacity:1;"
|
||||
id="stop4" /></radialGradient><radialGradient
|
||||
id="radial1"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="525.587769"
|
||||
cy="638.591797"
|
||||
fx="525.587769"
|
||||
fy="638.591797"
|
||||
r="192"
|
||||
gradientTransform="matrix(-0.107656,-0.225172,-0.327748,0.258343,373.87973,30.205086)"><stop
|
||||
offset="0"
|
||||
style="stop-color:#43b60b;stop-opacity:1;"
|
||||
id="stop7" /><stop
|
||||
offset="1"
|
||||
style="stop-color:#0b88ff;stop-opacity:0.00829875;"
|
||||
id="stop9" /></radialGradient><clipPath
|
||||
id="clip1"><path
|
||||
d="M 7 46 L 57 46 L 57 93 L 7 93 Z M 7 46 "
|
||||
id="path12" /></clipPath><clipPath
|
||||
id="clip2"><path
|
||||
d="M 32.25 46.957031 C 19.6875 46.96875 9.085938 56.636719 7.503906 69.53125 C 9.0625 82.445312 19.667969 92.144531 32.25 92.160156 C 44.816406 92.148438 55.414062 82.480469 57 69.585938 C 55.441406 56.671875 44.835938 46.972656 32.25 46.957031 Z M 32.25 46.957031 "
|
||||
id="path15" /></clipPath><radialGradient
|
||||
id="radial2"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="131.914749"
|
||||
cy="55.927143"
|
||||
fx="131.914749"
|
||||
fy="55.927143"
|
||||
r="160"
|
||||
gradientTransform="matrix(0.485163,-1.148584,-0.771115,-0.0632965,-47.124961,203.98857)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(92.941177%,20%,23.137255%);stop-opacity:1;"
|
||||
id="stop18" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(63.921571%,27.843139%,72.941178%);stop-opacity:1;"
|
||||
id="stop20" /></radialGradient><radialGradient
|
||||
id="radial3"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="525.587769"
|
||||
cy="638.591797"
|
||||
fx="525.587769"
|
||||
fy="638.591797"
|
||||
r="192"
|
||||
gradientTransform="matrix(-0.225099,-0.477638,-0.685291,0.548001,725.67923,15.723794)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(10.980392%,44.313726%,84.705883%);stop-opacity:1;"
|
||||
id="stop23" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(20.784314%,51.764709%,89.411765%);stop-opacity:0.00829876;"
|
||||
id="stop25" /></radialGradient><linearGradient
|
||||
id="linear0"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="22"
|
||||
y1="37"
|
||||
x2="62"
|
||||
y2="37"
|
||||
gradientTransform="matrix(1.4,0,0,1.4,-26.799973,2.491745)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(58.039218%,57.647061%,56.470591%);stop-opacity:1;"
|
||||
id="stop28" /><stop
|
||||
offset="0.0908155"
|
||||
style="stop-color:rgb(87.058824%,86.666667%,85.490197%);stop-opacity:1;"
|
||||
id="stop30" /><stop
|
||||
offset="0.336093"
|
||||
style="stop-color:rgb(60.392159%,60.000002%,58.823532%);stop-opacity:1;"
|
||||
id="stop32" /><stop
|
||||
offset="0.844326"
|
||||
style="stop-color:rgb(76.47059%,75.294119%,72.941178%);stop-opacity:1;"
|
||||
id="stop34" /><stop
|
||||
offset="0.930505"
|
||||
style="stop-color:rgb(87.058824%,86.666667%,85.490197%);stop-opacity:1;"
|
||||
id="stop36" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(75.294119%,74.901962%,73.725492%);stop-opacity:1;"
|
||||
id="stop38" /></linearGradient><radialGradient
|
||||
id="radial4"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="-172.560638"
|
||||
cy="28.569126"
|
||||
fx="-172.560638"
|
||||
fy="28.569126"
|
||||
r="15.85742"
|
||||
gradientTransform="matrix(1.560712,0,0,1.4252,300.69366,13.349996)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:0.358268;"
|
||||
id="stop41" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:0.0944882;"
|
||||
id="stop43" /></radialGradient><filter
|
||||
id="alpha"
|
||||
filterUnits="objectBoundingBox"
|
||||
x="0"
|
||||
y="0"
|
||||
width="1"
|
||||
height="1"><feColorMatrix
|
||||
type="matrix"
|
||||
in="SourceGraphic"
|
||||
values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"
|
||||
id="feColorMatrix46" /></filter><mask
|
||||
id="mask0"><g
|
||||
filter="url(#alpha)"
|
||||
id="g51"><rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="128"
|
||||
height="128"
|
||||
style="fill:rgb(0%,0%,0%);fill-opacity:0.1;stroke:none;"
|
||||
id="rect49" /></g></mask><clipPath
|
||||
id="clip3"><rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="192"
|
||||
height="152"
|
||||
id="rect54" /></clipPath><g
|
||||
id="surface382"
|
||||
clip-path="url(#clip3)"><path
|
||||
style=" stroke:none;fill-rule:nonzero;fill:rgb(27.058825%,21.176471%,21.568628%);fill-opacity:1;"
|
||||
d="M 40 59.957031 C 26.191406 59.957031 15 71.152344 15 84.957031 C 15.011719 85.996094 15.085938 86.777344 15.222656 87.804688 C 15.222656 75.957031 27.421875 65.96875 40 65.957031 C 52.597656 65.972656 64.777344 75.957031 64.777344 87.859375 C 64.917969 86.816406 64.992188 86.011719 65 84.957031 C 65 71.152344 53.808594 59.957031 40 59.957031 Z M 40 59.957031 "
|
||||
id="path57" /></g><radialGradient
|
||||
id="radial5"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="40"
|
||||
cy="227"
|
||||
fx="40"
|
||||
fy="227"
|
||||
r="28"
|
||||
gradientTransform="matrix(0.575553,0,1.60551e-8,1.540703,8.977913,-280.78108)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:1;"
|
||||
id="stop60" /><stop
|
||||
offset="0.744626"
|
||||
style="stop-color:rgb(98.039216%,98.039216%,98.039216%);stop-opacity:1;"
|
||||
id="stop62" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(87.450981%,87.450981%,87.450981%);stop-opacity:1;"
|
||||
id="stop64" /></radialGradient>
|
||||
|
||||
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient936"
|
||||
id="linearGradient938"
|
||||
x1="-48.519272"
|
||||
y1="18.511358"
|
||||
x2="287.07454"
|
||||
y2="18.511358"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.1020247,0,0,1.1097375,37.198581,-10.424856)" /></defs><path
|
||||
style="fill:#f5f5f3;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
d="m 20,11.957031 h 88 c 4.41797,0 8,3.582031 8,8 V 108 c 0,4.41797 -3.58203,8 -8,8 H 20 c -4.417969,0 -8,-3.58203 -8,-8 V 19.957031 c 0,-4.417969 3.582031,-8 8,-8 z m 0,0"
|
||||
id="path69" /><path
|
||||
style="fill:url(#radial0);fill-rule:nonzero;stroke:none"
|
||||
d="m 20,85.957031 h 88 v -66 H 20 Z m 0,0"
|
||||
id="path71" /><path
|
||||
style="fill:none;fill-rule:nonzero;stroke:none;fill-opacity:1"
|
||||
d="m 20,85.957031 h 88 v -66 H 20 Z m 0,0"
|
||||
id="path73" /><g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Layer 1"
|
||||
transform="matrix(0.1816,0,0,0.1816,35.224187,79.037164)"><ellipse
|
||||
fill="#54c147"
|
||||
cx="168.64549"
|
||||
cy="10.117889"
|
||||
id="circle8314"
|
||||
rx="184.91634"
|
||||
ry="179.91556"
|
||||
style="fill:url(#linearGradient938);fill-opacity:1;stroke-width:1.71591" /><g
|
||||
id="g1415"
|
||||
style="fill:#ffffff;fill-opacity:0;stroke:#ffffff;stroke-width:79.48975171;stroke-dasharray:none;stroke-opacity:1"
|
||||
transform="matrix(0.33321005,0,0,0.33321005,364.75396,52.190071)"><path
|
||||
style="fill:#ffffff;fill-opacity:0;stroke:#ffffff;stroke-width:79.48975171;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -376.71488,-211.58914 h -423.65088 c -3.89867,0 -7.45044,1.60793 -10.03854,4.19604 -2.58811,2.5881 -4.19604,6.14537 -4.19604,10.03854 v 328.90969 c 0,3.89318 1.60793,7.45044 4.19604,10.03304 2.5881,2.59362 6.14537,4.19604 10.03854,4.19604 h 423.65639 c 3.89868,0 7.45595,-1.60242 10.03855,-4.19604 2.5881,-2.5881 4.19603,-6.13986 4.19603,-10.03304 v -328.90969 c 0,-3.89317 -1.60793,-7.45044 -4.19603,-10.03854 -2.59361,-2.58811 -6.14538,-4.19604 -10.04406,-4.19604 z"
|
||||
id="path1409" /><path
|
||||
style="fill:#ffffff;fill-opacity:0;stroke:#ffffff;stroke-width:79.48975171;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -800.36576,-245.38319 h 15.93613 v -48.06718 c 0,-55.8315 21.95484,-106.65198 57.3348,-143.55176 35.51762,-37.06498 84.56497,-60.06608 138.55176,-60.06608 53.99229,0 103.03414,23.0011 138.56278,60.06057 35.37445,36.89978 57.32929,87.72577 57.32929,143.55176 v 48.06718 h 15.93612 c 13.22137,0 25.23679,5.39648 33.93172,14.09692 8.69494,8.70044 14.09692,20.71035 14.09692,33.93172 v 328.90969 c 0,13.22136 -5.39648,25.23678 -14.09692,33.93172 -8.70044,8.69493 -20.71035,14.09691 -33.93172,14.09691 h -423.65088 c -13.22687,0 -25.23678,-5.39647 -33.93722,-14.09691 -8.70044,-8.70045 -14.09692,-20.69934 -14.09692,-33.92622 v -328.90969 c 0,-13.22136 5.40198,-25.23678 14.09692,-33.93172 8.70044,-8.69493 20.71035,-14.09691 33.93722,-14.09691 z"
|
||||
id="path776" /></g></g></svg>
|
Before Width: | Height: | Size: 9.9 KiB |
@ -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
|
@ -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
|
@ -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
|
@ -1,236 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="128px"
|
||||
height="128px"
|
||||
viewBox="0 0 128 128"
|
||||
version="1.1"
|
||||
id="svg96"
|
||||
sodipodi:docname="Sovran_SystemsOS_Updater_Iconv3.svg"
|
||||
xml:space="preserve"
|
||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview98"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="5.2149125"
|
||||
inkscape:cx="9.0126153"
|
||||
inkscape:cy="64.430611"
|
||||
inkscape:window-width="3440"
|
||||
inkscape:window-height="1352"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer2" /><defs
|
||||
id="defs67"><linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient936"><stop
|
||||
style="stop-color:#1e8e11;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop932" /><stop
|
||||
style="stop-color:#1bff00;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop934" /></linearGradient><linearGradient
|
||||
id="linearGradient1028"
|
||||
inkscape:swatch="solid"><stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop1026" /></linearGradient><linearGradient
|
||||
id="linearGradient998"
|
||||
inkscape:swatch="solid"><stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop996" /></linearGradient><radialGradient
|
||||
id="radial0"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="131.914749"
|
||||
cy="55.927143"
|
||||
fx="131.914749"
|
||||
fy="55.927143"
|
||||
r="160"
|
||||
gradientTransform="matrix(0.232034,-0.541475,-0.368794,-0.0298398,4.277749,118.95849)"><stop
|
||||
offset="0"
|
||||
style="stop-color:#00ff39;stop-opacity:1;"
|
||||
id="stop2" /><stop
|
||||
offset="1"
|
||||
style="stop-color:#004a19;stop-opacity:1;"
|
||||
id="stop4" /></radialGradient><radialGradient
|
||||
id="radial1"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="525.587769"
|
||||
cy="638.591797"
|
||||
fx="525.587769"
|
||||
fy="638.591797"
|
||||
r="192"
|
||||
gradientTransform="matrix(-0.107656,-0.225172,-0.327748,0.258343,373.87973,30.205086)"><stop
|
||||
offset="0"
|
||||
style="stop-color:#43b60b;stop-opacity:1;"
|
||||
id="stop7" /><stop
|
||||
offset="1"
|
||||
style="stop-color:#0b88ff;stop-opacity:0.00829875;"
|
||||
id="stop9" /></radialGradient><clipPath
|
||||
id="clip1"><path
|
||||
d="M 7 46 L 57 46 L 57 93 L 7 93 Z M 7 46 "
|
||||
id="path12" /></clipPath><clipPath
|
||||
id="clip2"><path
|
||||
d="M 32.25 46.957031 C 19.6875 46.96875 9.085938 56.636719 7.503906 69.53125 C 9.0625 82.445312 19.667969 92.144531 32.25 92.160156 C 44.816406 92.148438 55.414062 82.480469 57 69.585938 C 55.441406 56.671875 44.835938 46.972656 32.25 46.957031 Z M 32.25 46.957031 "
|
||||
id="path15" /></clipPath><radialGradient
|
||||
id="radial2"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="131.914749"
|
||||
cy="55.927143"
|
||||
fx="131.914749"
|
||||
fy="55.927143"
|
||||
r="160"
|
||||
gradientTransform="matrix(0.485163,-1.148584,-0.771115,-0.0632965,-47.124961,203.98857)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(92.941177%,20%,23.137255%);stop-opacity:1;"
|
||||
id="stop18" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(63.921571%,27.843139%,72.941178%);stop-opacity:1;"
|
||||
id="stop20" /></radialGradient><radialGradient
|
||||
id="radial3"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="525.587769"
|
||||
cy="638.591797"
|
||||
fx="525.587769"
|
||||
fy="638.591797"
|
||||
r="192"
|
||||
gradientTransform="matrix(-0.225099,-0.477638,-0.685291,0.548001,725.67923,15.723794)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(10.980392%,44.313726%,84.705883%);stop-opacity:1;"
|
||||
id="stop23" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(20.784314%,51.764709%,89.411765%);stop-opacity:0.00829876;"
|
||||
id="stop25" /></radialGradient><linearGradient
|
||||
id="linear0"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="22"
|
||||
y1="37"
|
||||
x2="62"
|
||||
y2="37"
|
||||
gradientTransform="matrix(1.4,0,0,1.4,-26.799973,2.491745)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(58.039218%,57.647061%,56.470591%);stop-opacity:1;"
|
||||
id="stop28" /><stop
|
||||
offset="0.0908155"
|
||||
style="stop-color:rgb(87.058824%,86.666667%,85.490197%);stop-opacity:1;"
|
||||
id="stop30" /><stop
|
||||
offset="0.336093"
|
||||
style="stop-color:rgb(60.392159%,60.000002%,58.823532%);stop-opacity:1;"
|
||||
id="stop32" /><stop
|
||||
offset="0.844326"
|
||||
style="stop-color:rgb(76.47059%,75.294119%,72.941178%);stop-opacity:1;"
|
||||
id="stop34" /><stop
|
||||
offset="0.930505"
|
||||
style="stop-color:rgb(87.058824%,86.666667%,85.490197%);stop-opacity:1;"
|
||||
id="stop36" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(75.294119%,74.901962%,73.725492%);stop-opacity:1;"
|
||||
id="stop38" /></linearGradient><radialGradient
|
||||
id="radial4"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="-172.560638"
|
||||
cy="28.569126"
|
||||
fx="-172.560638"
|
||||
fy="28.569126"
|
||||
r="15.85742"
|
||||
gradientTransform="matrix(1.560712,0,0,1.4252,300.69366,13.349996)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:0.358268;"
|
||||
id="stop41" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:0.0944882;"
|
||||
id="stop43" /></radialGradient><filter
|
||||
id="alpha"
|
||||
filterUnits="objectBoundingBox"
|
||||
x="0"
|
||||
y="0"
|
||||
width="1"
|
||||
height="1"><feColorMatrix
|
||||
type="matrix"
|
||||
in="SourceGraphic"
|
||||
values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"
|
||||
id="feColorMatrix46" /></filter><mask
|
||||
id="mask0"><g
|
||||
filter="url(#alpha)"
|
||||
id="g51"><rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="128"
|
||||
height="128"
|
||||
style="fill:rgb(0%,0%,0%);fill-opacity:0.1;stroke:none;"
|
||||
id="rect49" /></g></mask><clipPath
|
||||
id="clip3"><rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="192"
|
||||
height="152"
|
||||
id="rect54" /></clipPath><g
|
||||
id="surface382"
|
||||
clip-path="url(#clip3)"><path
|
||||
style=" stroke:none;fill-rule:nonzero;fill:rgb(27.058825%,21.176471%,21.568628%);fill-opacity:1;"
|
||||
d="M 40 59.957031 C 26.191406 59.957031 15 71.152344 15 84.957031 C 15.011719 85.996094 15.085938 86.777344 15.222656 87.804688 C 15.222656 75.957031 27.421875 65.96875 40 65.957031 C 52.597656 65.972656 64.777344 75.957031 64.777344 87.859375 C 64.917969 86.816406 64.992188 86.011719 65 84.957031 C 65 71.152344 53.808594 59.957031 40 59.957031 Z M 40 59.957031 "
|
||||
id="path57" /></g><radialGradient
|
||||
id="radial5"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="40"
|
||||
cy="227"
|
||||
fx="40"
|
||||
fy="227"
|
||||
r="28"
|
||||
gradientTransform="matrix(0.575553,0,1.60551e-8,1.540703,8.977913,-280.78108)"><stop
|
||||
offset="0"
|
||||
style="stop-color:rgb(100%,100%,100%);stop-opacity:1;"
|
||||
id="stop60" /><stop
|
||||
offset="0.744626"
|
||||
style="stop-color:rgb(98.039216%,98.039216%,98.039216%);stop-opacity:1;"
|
||||
id="stop62" /><stop
|
||||
offset="1"
|
||||
style="stop-color:rgb(87.450981%,87.450981%,87.450981%);stop-opacity:1;"
|
||||
id="stop64" /></radialGradient>
|
||||
|
||||
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient936"
|
||||
id="linearGradient938"
|
||||
x1="-48.519272"
|
||||
y1="18.511358"
|
||||
x2="287.07454"
|
||||
y2="18.511358"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.1020247,0,0,1.1097375,37.198581,-10.424856)" /></defs><path
|
||||
style="fill:#f5f5f3;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
d="m 20,11.957031 h 88 c 4.41797,0 8,3.582031 8,8 V 108 c 0,4.41797 -3.58203,8 -8,8 H 20 c -4.417969,0 -8,-3.58203 -8,-8 V 19.957031 c 0,-4.417969 3.582031,-8 8,-8 z m 0,0"
|
||||
id="path69" /><path
|
||||
style="fill:url(#radial0);fill-rule:nonzero;stroke:none"
|
||||
d="m 20,85.957031 h 88 v -66 H 20 Z m 0,0"
|
||||
id="path71" /><path
|
||||
style="fill:none;fill-rule:nonzero;stroke:none;fill-opacity:1"
|
||||
d="m 20,85.957031 h 88 v -66 H 20 Z m 0,0"
|
||||
id="path73" /><g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Layer 1"
|
||||
transform="matrix(0.1816,0,0,0.1816,35.224187,79.037164)"><ellipse
|
||||
fill="#54c147"
|
||||
cx="168.64549"
|
||||
cy="10.117889"
|
||||
id="circle8314"
|
||||
rx="184.91634"
|
||||
ry="179.91556"
|
||||
style="fill:url(#linearGradient938);fill-opacity:1;stroke-width:1.71591" /><polygon
|
||||
fill="#ffffff"
|
||||
points="46.678,120.299 63.562,96.402 96.977,121.718 145.084,50.79 168.752,69.02 103.583,164.647 "
|
||||
id="polygon8316"
|
||||
transform="matrix(1.7395866,0,0,1.6925423,-18.737581,-172.19767)" /></g></svg>
|
Before Width: | Height: | Size: 8.4 KiB |
@ -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
|
@ -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
|
@ -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!
|
@ -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
|
@ -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
|
Reference in New Issue
Block a user