From 465a733ad7d16862ed3de59060b93a94b64c867c Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Tue, 3 Jun 2025 05:13:32 -0600 Subject: [PATCH] 1748949212 --- README.md | 1 + dump_configs.sh | 8 ++++++-- full_status.sh | 5 +---- installer0.sh | 1 + installer2.sh | 4 ++-- reconfig_full.sh | 2 +- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 570b10a..f46eddf 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ Upload ~/Garfana-Visualization.json to create dashboard * import * data source * fix + * Raspberry OS Lite **known bugs** doubling of appending to /boot/firmaware/config.txt and /etc/modules when running intstaller3.sh diff --git a/dump_configs.sh b/dump_configs.sh index dbf6a8e..8ae4618 100644 --- a/dump_configs.sh +++ b/dump_configs.sh @@ -22,10 +22,14 @@ sudo cp /etc/influxdb/influxdb.conf $dname/influxdb.conf sudo cp /etc/telegraf/telegraf.conf $dname/telegraf.conf if [ -f /etc/udev/rules.d/50-tty.rules ]; then - sudo cp /etc/udev/rules.d/50-tty.rules $dname/50-tty.rules 2> /dev/null + echo "/etc/udev/rules.d/50-tty.rules found, copying as well" + sudo cp /etc/udev/rules.d/50-tty.rules $dname/50-tty.rules fi echo "Fixing permissions in $dname" sudo chown -R $username:$username $dname sudo chmod 775 $dname -sudo chmod 664 $dname/* \ No newline at end of file +sudo chmod 664 $dname/* + +echo "Compressing up $dname to $dname.tar.gz +tar czf $dname.tar.gz $dname \ No newline at end of file diff --git a/full_status.sh b/full_status.sh index 06477b6..3202f03 100644 --- a/full_status.sh +++ b/full_status.sh @@ -1,6 +1,6 @@ #!/bin/bash # status of services -bash ./status_services +bash ./status_services.sh # test pps echo "Testing PPS" @@ -14,9 +14,6 @@ cgps echo "Checking Timekeeping GPS" gpsmon -# chek chrony sources -# chronyc sources - # do same with watch echo "Watching chronyc sources" watch chronyc sources diff --git a/installer0.sh b/installer0.sh index 383b819..5309a1c 100644 --- a/installer0.sh +++ b/installer0.sh @@ -3,6 +3,7 @@ echo "Updating this repo" git pull +# run da raspberry pi config script sudo raspi-config echo "Rebooting in 5 minutes" diff --git a/installer2.sh b/installer2.sh index 25e00e8..25ee174 100644 --- a/installer2.sh +++ b/installer2.sh @@ -2,8 +2,8 @@ set -e # change boot target to cli before deleting desktop environ -echo "Changing boot target to cli" -sudo systemctl set-default multi-user.target +# echo "Changing boot target to cli" +# sudo systemctl set-default multi-user.target # nuke old packages # sudo apt purge cups cups-browsed pulseaudio* bluetooth libgl* xserver* lightdm* raspberrypi-ui-mods vlc* lxde* chromium* desktop* gnome* gstreamer* gtk* hicolor-icon-theme* lx* mesa* -y diff --git a/reconfig_full.sh b/reconfig_full.sh index 513a5d9..3ead4ba 100644 --- a/reconfig_full.sh +++ b/reconfig_full.sh @@ -30,7 +30,7 @@ bash ./stop_services.sh bash ./dump_configs.sh # replace dem by truncation -echo "Placing the new config files" +echo "Placing the new config files by truncation" sudo bash -c "cat $gpsd_new > $gpsd" sudo bash -c "cat $chrony_new > $chrony" sudo bash -c "cat $grafana_new > $grafana"