Last active
October 31, 2021 09:54
Revisions
-
dewomser revised this gist
Oct 31, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ cd ~/Downloads || exit rimage="raspios_full_armhf" dirr=$(curl --silent https://downloads.raspberrypi.org/$rimage/images/ | grep -o -E "$rimage-[0-9]{4}-[0-9]{2}-[0-9]{2}" | tail -1 ) pathr="https://downloads.raspberrypi.org/$rimage/images/$dirr/" rname=$(curl --silent $pathr | grep -o -E -w "[0-9]{4}-[0-9]{2}-[0-9]{2}-[[:lower:]-]*\.zip" | head -1) wget -erobots=off $pathr$rname -O raspi.zip #echo Test kompletter Pfad :: $pathr$rname -
dewomser revised this gist
Oct 31, 2021 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,8 +16,7 @@ shaname=$(curl --silent $pathr | grep -o -E -w "[0-9]{4}-[0-9]{2}-[0-9]{2}-[[:lo #echo Test kompletter sha256-Pfad :: $pathr$shaname wget $pathr$shaname -O raspi.sha256 echo "Bitte ein paar Sekunden warten. Der Hash wird erzeugt." sha1=$(shasum -a 256 raspi.zip | grep -o -P "[0-9a-z]{40,}") sha2=$(cat raspi.sha256 | grep -o -P "[0-9a-z]{40,}") sleep 1 echo Prüfsumme aus Download $sha1 -
dewomser revised this gist
Oct 31, 2021 . 1 changed file with 14 additions and 6 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,23 @@ #!/bin/bash cd ~/Downloads || exit ### Raspbian heißt jetzt Raspios ### ## Welches Raspios steht in $rimage: ## #rimage ="raspios_lite_armhf" rimage="raspios_full_armhf" dirr=$(curl --silent https://downloads.raspberrypi.org/$rimage/images/ | grep -o -E "$rimage-[0-9]{4}-[0-9]{2}-[0-9]{2}" | tail -1 ) pathr="https://downloads.raspberrypi.org/raspios_full_armhf/images/$dirr/" rname=$(curl --silent $pathr | grep -o -E -w "[0-9]{4}-[0-9]{2}-[0-9]{2}-[[:lower:]-]*\.zip" | head -1) wget -erobots=off $pathr$rname -O raspi.zip #echo Test kompletter Pfad :: $pathr$rname shaname=$(curl --silent $pathr | grep -o -E -w "[0-9]{4}-[0-9]{2}-[0-9]{2}-[[:lower:]-]*\.zip\.sha256" | head -1) #echo Test kompletter sha256-Pfad :: $pathr$shaname wget $pathr$shaname -O raspi.sha256 echo "Bitte ein paar Sekunden warten. Der Hash wird erzeugt." # Für den test abgeschaltet :: sha1=$(shasum -a 256 raspi.zip | grep -o -P "[0-9a-z]{40,}") sha1=$(cat raspi.sha256 | grep -o -P "[0-9a-z]{40,}") sha2=$(cat raspi.sha256 | grep -o -P "[0-9a-z]{40,}") sleep 1 echo Prüfsumme aus Download $sha1 @@ -53,4 +61,4 @@ else echo "Achtung,Prüfsumme stimmt nicht überein !" fi #http://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2021-05-28/2021-05-07-raspios-buster-armhf-full.zip -
dewomser revised this gist
Oct 30, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ cd ~/Downloads || exit dirr=$(curl --silent https://downloads.raspberrypi.org/raspios_full_armhf/images/ | grep -o -P raspios_full_armhf-[0-9]{4}-[0-9]{2}-[0-9]{2} | tail -1 ) pathr="https://downloads.raspberrypi.org/raspios_full_armhf/images/$dirr/" rname=$(curl $pathr | grep -o -P [0-9]{4}-[0-9]{2}-[0-9]{2}-raspios-buster-armhf-full\.zip|tail -1) wget -erobots=off $pathr$rname -O raspi.zip shaname=$(curl $pathr | grep -o -P [0-9]{4}-[0-9]{2}-[0-9]{2}-raspios-buster-armhf-full\.zip\.sha256|tail -1) wget $pathr$shaname -O raspi.sha256 echo "Bitte ein paar Sekunden warten. Der Hash wird erzeugt." -
dewomser revised this gist
Oct 30, 2021 . 1 changed file with 38 additions and 30 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,48 +1,56 @@ #!/bin/bash cd ~/Downloads || exit ## Raspbian heißt jetzt Raspios ## dirr=$(curl --silent https://downloads.raspberrypi.org/raspios_full_armhf/images/ | grep -o -P raspios_full_armhf-[0-9]{4}-[0-9]{2}-[0-9]{2} | tail -1 ) pathr="https://downloads.raspberrypi.org/raspios_full_armhf/images/$dirr/" rname=$(curl $pathr | grep -o -P [0-9]{4}-[0-9]{2}-[0-9]{2}-raspios-buster-armhf-full\.zip|tail -1) #wget -erobots=off $pathr$rname -O raspi.zip shaname=$(curl $pathr | grep -o -P [0-9]{4}-[0-9]{2}-[0-9]{2}-raspios-buster-armhf-full\.zip\.sha256|tail -1) wget $pathr$shaname -O raspi.sha256 echo "Bitte ein paar Sekunden warten. Der Hash wird erzeugt." sha1=$(shasum -a 256 raspi.zip | grep -o -P "[0-9a-z]{40,}") sha2=$(cat raspi.sha256 | grep -o -P "[0-9a-z]{40,}") sleep 1 echo Prüfsumme aus Download $sha1 echo Prüfsumme von Webseite $sha2 if [ "$sha1" == "$sha2" ]; then echo "Prüfsumme stimmt" echo "-----------------" echo "SD-Karte auf die geschieben werden soll ENTFERNEN !" \"y\" read input if [ "$input" == "y" ]; then laufwerke=($(lsblk -l -o Name | egrep -v [0-9] | egrep sd[a-z])) else exit fi echo Es gibt diese seriellen Blockdevices "${laufwerke[@]}" echo SD- Karte, die überschrieben werden soll einstecken, \"y\" read input if [ "$input" == "y" ]; then laufwerke1=($(lsblk -l -o Name | egrep -v [0-9] | egrep sd[a-z])) laufwerke2=($({ printf "%s\n" "${laufwerke[@]}" | sort -u; printf "%s\n" "${laufwerke1[@]}" "${laufwerke[@]}"; } | sort | uniq -u)) echo Es gibt jetzt dieses neue seriellen Blockdevices "${laufwerke2[@]}" else exit fi echo Ich bin mir SICHER und will auf SD Karte schreiben ! "${laufwerke2[@]}" \"y\" oder \"n\" read endgueltigja if [ "$endgueltigja" == "y" ]; then # das hier aktivieren --TOTENKOPF--- zum Schreiben #unzip raspi.zip | dd of=/dev/${laufwerke2[@]} status=progress echo "Tatatatah ! fertig" else exit fi else echo "Achtung,Prüfsumme stimmt nicht überein !" fi #http://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2021-05-28/2021-05-07-raspios-buster-armhf-full.zip -
dewomser revised this gist
Oct 30, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ cd ~/Downloads || exit ## Raspbian heißt jetzt Raspios ## #Schipsel *Anfang #dirr=$(curl --silent https://downloads.raspberrypi.org/raspios_full_armhf/images/ | grep -o -P raspios_full_armhf-[0-9]*-[0-9]*-[0-9]* | tail -1 ) #dillo http://downloads.raspberrypi.org/raspios_full_armhf/images/$dirr/ #Schnipsel * Ende -
dewomser revised this gist
Oct 30, 2021 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,15 @@ #!/bin/bash cd ~/Downloads || exit ## Raspbian heißt jetzt Raspios ## #Schipsel *Anfang #dirr=$(curl --silent https://downloads.raspberrypi.org/raspios_full_armhf/images/ | \grep -o -P raspios_full_armhf-[0-9]*-[0-9]*-[0-9]* | tail -1 ) #dillo http://downloads.raspberrypi.org/raspios_full_armhf/images/$dirr/ #Schnipsel * Ende #das hier aktivieren für ---Download--- #wget https://downloads.raspberrypi.org/raspbian_full_latest -O raspi.zip echo shasum aus zipfile wird gerechnet… -
dewomser revised this gist
Jul 2, 2019 . 1 changed file with 22 additions and 9 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,25 +1,38 @@ #!/bin/bash cd ~/Downloads || exit #das hier aktivieren für ---Download--- #wget https://downloads.raspberrypi.org/raspbian_full_latest -O raspi.zip echo shasum aus zipfile wird gerechnet… sha1=$(shasum -a 256 raspi.zip | grep -o -P "[0-9a-z]{40,}") sha2=$(curl https://www.raspberrypi.org/downloads/raspbian/ | grep -o -P "[0-9a-z]{40,}" | head -1) sleep 10 echo Prüfsumme aus Download "$sha1" echo Prüfsumme von Webseite "$sha2" if [ "$sha1" == "$sha2" ]; then echo "Prüfsumme stimmt" echo "Raspberry Pi Image wird entpackt." # das hier kommenieren. Es wird später entpackt. unzip raspi.zip laufwerke=$(lsblk -l -o Name | egrep -v [0-9] | egrep sd[a-z]) echo Es gibt diese seriellen Blockdevices $laufwerke. echo SD- Karte, die überschrieben werden soll einstecken, \"y\" read input if [ "$input" == "y" ]; then laufwerke1=$(lsblk -l -o Name | egrep -v [0-9] | egrep sd[a-z]) echo Es gibt jetzt diese seriellen Blockdevices $laufwerke1. fi sleep 10 echo Ich bin mir SICHER und will auf SD Karte schreiben ! \"sda sdb sdc …\" oder \"n\" read sdcard if [ "$sdcard" <> "n" ]; then echo Laufwerk $sdcard soll überschrieben werden ! \"y\" fi read endueltigja if [ "$endgueltigja" == "y" ]; then # das hier aktivieren --TOTENKOPF--- zum Schreiben #unzip raspi.zip | dd of=/dev/$sdcard status=progress echo "Tatatatah ! fertig" fi else echo "Achtung,Prüfsumme stimmt nicht überein !" fi -
dewomser revised this gist
Jul 2, 2019 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,10 +6,19 @@ sha2=$(curl https://www.raspberrypi.org/downloads/raspbian/ | grep -o -P "[0-9a- sleep 10 echo Prüfsumme aus Download $sha1 echo Prüfsumme von Webseite $sha2 if [ $sha1 == $sha2 ]; then echo "Prüfsumme stimmt" echo "Raspberry Pi Image wird entpackt." unzip raspi.zip #SD-Karten werden verglichen laufwerke=$(lsblk -l -o Name | egrep -v [0-9] | egrep sd[a-z]) echo Es gibt diese seriellen Blockdevices $laufwerke. echo SD- Karte, die überschrieben werden soll einstecken, "y" read input laufwerke1=$(lsblk -l -o Name | egrep -v [0-9] | egrep sd[a-z]) echo Es gibt jetzt diese seriellen Blockdevices $laufwerke1. else echo "Achtung,Prüfsumme stimmt nicht überein !" fi -
dewomser revised this gist
Jul 1, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash cd ~/Downloads || exit wget https://downloads.raspberrypi.org/raspbian_full_latest -O raspi.zip sha1=$(shasum -a 256 raspi.zip | grep -o -P "[0-9a-z]{40,}") sha2=$(curl https://www.raspberrypi.org/downloads/raspbian/ | grep -o -P "[0-9a-z]{40,}" | head -1) -
dewomser revised this gist
Feb 19, 2019 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,10 @@ sleep 10 echo Prüfsumme aus Download $sha1 echo Prüfsumme von Webseite $sha2 if [ $sha1 == $sha2 ]; then echo "Prüfsumme stimmt" echo "Raspberry Pi Image wird entpackt." unzip raspi.zip else echo "Achtung,Prüfsumme stimmt nicht überein !" fi -
dewomser created this gist
Jan 12, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/bin/bash cd ~/Downloads wget https://downloads.raspberrypi.org/raspbian_full_latest -O raspi.zip sha1=$(shasum -a 256 raspi.zip | grep -o -P "[0-9a-z]{40,}") sha2=$(curl https://www.raspberrypi.org/downloads/raspbian/ | grep -o -P "[0-9a-z]{40,}" | head -1) sleep 10 echo Prüfsumme aus Download $sha1 echo Prüfsumme von Webseite $sha2 if [ $sha1 == $sha2 ]; then echo "Prüfsumme stimmt " else echo "Achtung,Prüfsumme stimmt nicht überein !" fi