From adf403b860158a1439b2abb32fc307d8f20f801b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 16 Jan 2026 10:23:48 -0500 Subject: [PATCH 1/8] Create motd.txt add motd text --- motd.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 motd.txt diff --git a/motd.txt b/motd.txt new file mode 100644 index 00000000..09ff7ac9 --- /dev/null +++ b/motd.txt @@ -0,0 +1,11 @@ + +This Raspberry Pi has the CubeSatSim v2.x software installed +and runs automatically as systemd cubesatsim.service. For more +information see https://CubeSatSim.org. To update +to the latest version, enter this command: + +CubeSatSim/update + +To see configuration options, enter this command: + +CubeSatSim/config From 5df8e5752f7e99c7bda5d8cf580cbaed07ea3485 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 16 Jan 2026 10:57:41 -0500 Subject: [PATCH 2/8] Update install harmonized with update --- install | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install b/install index 76b2c3da..4351b8e1 100755 --- a/install +++ b/install @@ -10,6 +10,13 @@ else echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg fi +if [[ $(grep 'cubesatsim' /etc/motd) ]]; then + echo "motd already updated" +else + echo "updating motd" + sudo sh -c 'echo /home/pi/CubeSatSim/motd.txt >> /etc/motd' +fi + FILE=/home/pi/CubeSatSim/command_tx if [ -f "$FILE" ]; then echo "$FILE exists." @@ -280,7 +287,7 @@ if [ $changed -eq 1 ]; then echo -e "Current sim.cfg configuration file:" echo echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} - echo -e "\nCubeSatSim configuraation sim.cfg file updated to: \n" + echo -e "\nCubeSatSim configuration sim.cfg file updated to: \n" echo echo $n1 $n2 $n3 $n4 $n5 $n6 $n7 $n8 $n9 $n10 $n11 echo $n1 $n2 $n3 $n4 $n5 $n6 $n7 $n8 $n9 $n10 $n11 > /home/pi/CubeSatSim/sim.cfg From 225ee4db52c1994148fbf69b0a60f751c30ecacf Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 16 Jan 2026 10:57:50 -0500 Subject: [PATCH 3/8] Update update harmonized with install --- update | 45 +++++++++------------------------------------ 1 file changed, 9 insertions(+), 36 deletions(-) diff --git a/update b/update index c2e2ffbe..368a0ed6 100755 --- a/update +++ b/update @@ -175,33 +175,6 @@ if [ ! -d "/home/pi/PiSSTVpp" ]; then sudo raspi-config nonint do_camera 0 - - FILE=/home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg - if [ ! -f "$FILE" ]; then - echo "Copying SSTV image 1." - cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg - fi - - FILE=/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg - if [ ! -f "$FILE" ]; then - echo "Copying SSTV image 2." - cp /home/pi/CubeSatSim/sstv/sstv_image_2_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg - fi - -# echo "You need to reboot to complete this update. Reboot now (y/n)?" - -# read -r ANS - -# if [ "$ANS" = "y" ]; then - -# sudo reboot now - -# else - -# echo "The CubeSatSim software may not work correctly until you reboot." - -# fi - fi if [ ! -d "/home/pi/rpitx" ]; then @@ -228,7 +201,7 @@ if [ ! -d "/home/pi/WiringPi" ]; then cd - git clone https://github.com/PinkFreud/WiringPi + git clone https://github.com/alanbjohnston/WiringPi cd WiringPi ./build debian @@ -354,15 +327,15 @@ cd /home/pi/ssdv sudo sh -c 'echo "\ndtoverlay=pwm,pin=18,func=2" >> /boot/config.txt' FLAG=1 - cd /home/pi/pi-power-button - git pull --no-rebase - git checkout reboot-mode-change - script/install +# cd /home/pi/pi-power-button +# git pull --no-rebase +# git checkout reboot-mode-change +# script/install -# sudo apt-get update && sudo apt-get dist-upgrade -y - sudo apt-get update -y - sudo apt-get install -y libjpeg-dev zlib1g-dev libfreetype6-dev liblcms1-dev libopenjp2-7 libtiff5 python3-pil - sudo pip3 install -y adafruit-blinka RPI.GPIO adafruit-extended-bus adafruit-circuitpython-ina219 pillow +## sudo apt-get update && sudo apt-get dist-upgrade -y +# sudo apt-get update -y +# sudo apt-get install -y libjpeg-dev zlib1g-dev libfreetype6-dev liblcms1-dev libopenjp2-7 libtiff5 python3-pil +# sudo pip3 install -y adafruit-blinka RPI.GPIO adafruit-extended-bus adafruit-circuitpython-ina219 pillow fi From faf6dae850ef48126da16fa4c2217afc6800c298 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 16 Jan 2026 11:05:13 -0500 Subject: [PATCH 4/8] Update install add check for Bullseye --- install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install b/install index 4351b8e1..b11493ce 100755 --- a/install +++ b/install @@ -2,6 +2,23 @@ echo -e "\ninstallation script for CubeSatSim v2.1\n" +if [[ $(grep 'bullseye' /etc/os-release) ]]; then + echo "Bullseye detected, installation continuing." +else + echo "Your Pi OS version is not Bullseye." + echo "The software installation will likely not work." + echo "See the README.md for how to install using Bullseye." + echo + + echo "Are you sure you want to continue the installation (y/n)?" + + read -r ANS + + if [ "$ANS" = "n" ]; then + exit 1 + fi +fi + FILE=/home/pi/CubeSatSim/sim.cfg if [ -f "$FILE" ]; then echo "$FILE exists." From 7d4ef284e88d0664f235daccb8d37f78e3132366 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 16 Jan 2026 16:09:41 -0500 Subject: [PATCH 5/8] Update install change to libusb-1.0-0 --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index b11493ce..c2c29cee 100755 --- a/install +++ b/install @@ -80,7 +80,7 @@ sudo dpkg -i debian-template/wiringpi-2.61-1.deb cd #changed to python3-smbus -sudo apt install -y python3-pip python3-smbus libjpeg-dev zlib1g-dev libfreetype6-dev libopenjp2-7 libtiff5 python3-pil python3-serial libusb-1.0 +sudo apt install -y python3-pip python3-smbus libjpeg-dev zlib1g-dev libfreetype6-dev libopenjp2-7 libtiff5 python3-pil python3-serial libusb-1.0-0 libusb-1.0-0-dev sudo pip3 install --upgrade setuptools From 91c43a6d46168842a57718ddfefa0a032f657b71 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 16 Jan 2026 16:11:08 -0500 Subject: [PATCH 6/8] Update install fix motd --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index c2c29cee..09e9aa9e 100755 --- a/install +++ b/install @@ -31,7 +31,7 @@ if [[ $(grep 'cubesatsim' /etc/motd) ]]; then echo "motd already updated" else echo "updating motd" - sudo sh -c 'echo /home/pi/CubeSatSim/motd.txt >> /etc/motd' + sudo sh -c 'cat /home/pi/CubeSatSim/motd.txt >> /etc/motd' fi FILE=/home/pi/CubeSatSim/command_tx From 9c460690bf6a502e278c8c411579a5e97bb292d0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 16 Jan 2026 16:12:40 -0500 Subject: [PATCH 7/8] Update install fix PiSSTVpp install --- install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install b/install index 09e9aa9e..e31d0925 100755 --- a/install +++ b/install @@ -148,6 +148,8 @@ git clone https://github.com/csete/fcdctl.git cd fcdctl make fcdpp +cd + git clone https://github.com/alanbjohnston/PiSSTVpp.git cd PiSSTVpp From e68be96072bf166f9df34478be1ae0ac0bb80198 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 16 Jan 2026 16:17:07 -0500 Subject: [PATCH 8/8] Update install fix unzip -o --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index e31d0925..42362044 100755 --- a/install +++ b/install @@ -136,7 +136,7 @@ mkdir /home/pi/fctelem mkdir /home/pi/fctelem/public_html cd fctelem wget https://github.com/alanbjohnston/go/releases/download/v0.2/fctelem.zip -unzip fctelem.zip +unzip -o fctelem.zip cd echo "Installing fcdctl to set FUNcubeDongle Pro gain"