From d95044ee298d32c435c8cfd8c38e690a5222d7d9 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 13:55:41 -0500 Subject: [PATCH 01/37] simplify matrix for testing --- .github/workflows/main.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 66e96f6..7a36af5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,24 +15,24 @@ jobs: fail-fast: false matrix: include: - - name: limelight - script: ./install_limelight.sh - base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz - - name: limelight3 - script: ./install_limelight3.sh - base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz - - name: raspi - script: ./install_pi.sh - base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz - - name: snakeyes - script: ./install_snakeyes.sh - base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz + # - name: limelight + # script: ./install_limelight.sh + # base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz + # - name: limelight3 + # script: ./install_limelight3.sh + # base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz + # - name: raspi + # script: ./install_pi.sh + # base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz + # - name: snakeyes + # script: ./install_snakeyes.sh + # base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz - name: opi5 script: ./install_opi5.sh base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.2.1/ubuntu-24.04-preinstalled-server-arm64-orangepi-5.img.xz - - name: opi5plus - script: ./install_opi5.sh - base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.1.0/ubuntu-24.04-preinstalled-server-arm64-orangepi-5-plus.img.xz + # - name: opi5plus + # script: ./install_opi5.sh + # base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.1.0/ubuntu-24.04-preinstalled-server-arm64-orangepi-5-plus.img.xz name: "Build for ${{ matrix.name }}" From fe6c253593404fcb7d238ab02392c59d0e2186fa Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 14:59:11 -0500 Subject: [PATCH 02/37] make bash default shell for user pi --- install_opi5.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 8c5f004..54ef7e3 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -4,10 +4,8 @@ if id "$1" >/dev/null 2>&1; then echo 'user found' else echo "creating pi user" - useradd pi -b /home + useradd pi -m -b /home -s /bin/bash usermod -a -G sudo pi - mkdir /home/pi - chown -R pi /home/pi fi echo "pi:raspberry" | chpasswd From 0b3da4deefc1dc9041f2336bd8c8a0acca9b9e68 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 15:07:17 -0500 Subject: [PATCH 03/37] get rid of snaps --- install_opi5.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 54ef7e3..27b7c07 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -10,6 +10,16 @@ fi echo "pi:raspberry" | chpasswd apt-get update + +# clean up stuff +echo 'Purging snaps' +# get rid of snaps +rm -rf /var/lib/snapd/seed/snaps/* +rm -f /var/lib/snapd/seed/seed.yaml +apt-get purge --yes snapd + +apt-get autoremove + wget https://git.io/JJrEP -O install.sh chmod +x install.sh @@ -20,10 +30,10 @@ rm install.sh # Remove extra packages -echo "Purging extra things" +# echo "Purging extra things" # apt-get remove -y gdb gcc g++ linux-headers* libgcc*-dev # apt-get remove -y snapd -apt-get autoremove -y +# apt-get autoremove -y echo "Installing additional things" From 7eb54485bdbe7cb4b126df3648663a81abb4f8c7 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 15:09:01 -0500 Subject: [PATCH 04/37] On 24.04, must specify all CPUs --- install_opi5.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install_opi5.sh b/install_opi5.sh index 27b7c07..d0fdb5c 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -20,10 +20,11 @@ apt-get purge --yes snapd apt-get autoremove +# run Photonvision install script wget https://git.io/JJrEP -O install.sh chmod +x install.sh -sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/g' install.sh +sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=0-7/g' install.sh ./install.sh -n -q rm install.sh From 714e6b2e6b285c8487549b88a8781115a50a0bc8 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 15:48:21 -0500 Subject: [PATCH 05/37] quite apt-get to clean up the workflow log --- install_opi5.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index d0fdb5c..3648870 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -9,16 +9,16 @@ else fi echo "pi:raspberry" | chpasswd -apt-get update +apt-get update --quiet # clean up stuff echo 'Purging snaps' # get rid of snaps rm -rf /var/lib/snapd/seed/snaps/* rm -f /var/lib/snapd/seed/seed.yaml -apt-get purge --yes snapd +apt-get purge --yes --quiet snapd -apt-get autoremove +apt-get --yes --quiet autoremove # run Photonvision install script wget https://git.io/JJrEP -O install.sh @@ -39,9 +39,9 @@ rm install.sh echo "Installing additional things" sudo apt-get update -apt-get install -y network-manager net-tools libatomic1 +apt-get install --yes --quiet network-manager net-tools libatomic1 -apt-get install -y libc6 libstdc++6 +apt-get install --yes --quiet libc6 libstdc++6 # cat > /etc/netplan/00-default-nm-renderer.yaml < Date: Thu, 4 Jul 2024 16:29:41 -0500 Subject: [PATCH 06/37] a few other lxd packages --- install_opi5.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install_opi5.sh b/install_opi5.sh index 3648870..5759173 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -16,6 +16,7 @@ echo 'Purging snaps' # get rid of snaps rm -rf /var/lib/snapd/seed/snaps/* rm -f /var/lib/snapd/seed/seed.yaml +apt-get purge --yes --quiet lxd-installer lxd-agent-loader apt-get purge --yes --quiet snapd apt-get --yes --quiet autoremove From 53a6e1d22aa7d792c44053d02a349038a23fa743 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 16:45:24 -0500 Subject: [PATCH 07/37] remove bluetooth --- install_opi5.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install_opi5.sh b/install_opi5.sh index 5759173..eacf054 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -19,6 +19,9 @@ rm -f /var/lib/snapd/seed/seed.yaml apt-get purge --yes --quiet lxd-installer lxd-agent-loader apt-get purge --yes --quiet snapd +# remove bluetooth daemon +apt-get purge --yes --quiet bluez + apt-get --yes --quiet autoremove # run Photonvision install script @@ -62,7 +65,7 @@ apt-get install --yes --quiet libcholmod3 liblapack3 libsuitesparseconfig5 rm -rf /var/lib/apt/lists/* -apt-get clean +apt-get --yes --quiet autoclean rm -rf /usr/share/doc rm -rf /usr/share/locale/ From 9e82ee782cae4eba3e00e1fb526f0b773ac3d400 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 17:06:55 -0500 Subject: [PATCH 08/37] improve startup time when using NetworkManager --- install_opi5.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install_opi5.sh b/install_opi5.sh index eacf054..a6aeaa6 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -45,6 +45,8 @@ echo "Installing additional things" sudo apt-get update apt-get install --yes --quiet network-manager net-tools libatomic1 +systemctl disable NetworkManager-wait-online.service + apt-get install --yes --quiet libc6 libstdc++6 # cat > /etc/netplan/00-default-nm-renderer.yaml < Date: Thu, 4 Jul 2024 18:28:15 -0500 Subject: [PATCH 09/37] turn off networkd waiting also --- install_opi5.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install_opi5.sh b/install_opi5.sh index a6aeaa6..2fd38bc 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -46,6 +46,7 @@ sudo apt-get update apt-get install --yes --quiet network-manager net-tools libatomic1 systemctl disable NetworkManager-wait-online.service +systemctl disable systemd-networkd-wait-online.service apt-get install --yes --quiet libc6 libstdc++6 From 276ccc38923612231b17592c5b2212dd6fe0f075 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 22:14:40 -0500 Subject: [PATCH 10/37] let it wait for the network (for now) --- install_opi5.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 2fd38bc..5a239fe 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -45,8 +45,8 @@ echo "Installing additional things" sudo apt-get update apt-get install --yes --quiet network-manager net-tools libatomic1 -systemctl disable NetworkManager-wait-online.service -systemctl disable systemd-networkd-wait-online.service +# systemctl disable NetworkManager-wait-online.service +# systemctl disable systemd-networkd-wait-online.service apt-get install --yes --quiet libc6 libstdc++6 From b63d5328f14dc0860d248e4cc5bc7c766eba4291 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 22:24:12 -0500 Subject: [PATCH 11/37] look for the root partition --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a36af5..3029f00 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,6 +50,9 @@ jobs: bind_mount_repository: true base_image: ${{ matrix.base_image }} commands: | + mount -l + lsblk + df chmod +x ${{matrix.script}} ${{ matrix.script }} From ca35d4aac0ccb5cadf20547cb02f80bfe11c626d Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 22:27:14 -0500 Subject: [PATCH 12/37] check the files in /boot --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3029f00..ea2dabf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,9 +50,7 @@ jobs: bind_mount_repository: true base_image: ${{ matrix.base_image }} commands: | - mount -l - lsblk - df + ls -l /boot chmod +x ${{matrix.script}} ${{ matrix.script }} From 9af48aafa64e7e3254ffdbad391a0e5391cb94c1 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 22:43:19 -0500 Subject: [PATCH 13/37] set NetworkManager in coud-init --- install_opi5.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_opi5.sh b/install_opi5.sh index 5a239fe..ec8e5c5 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -45,6 +45,9 @@ echo "Installing additional things" sudo apt-get update apt-get install --yes --quiet network-manager net-tools libatomic1 +sed -i '/version: 2/a\ \ renderer: NetworkManager' /root/network-config +grep 'renderer' /root/network-config + # systemctl disable NetworkManager-wait-online.service # systemctl disable systemd-networkd-wait-online.service From 2cee482fa9b291c6ae66b7db06881598e14a18dc Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 22:43:42 -0500 Subject: [PATCH 14/37] not needed --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea2dabf..7a36af5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,6 @@ jobs: bind_mount_repository: true base_image: ${{ matrix.base_image }} commands: | - ls -l /boot chmod +x ${{matrix.script}} ${{ matrix.script }} From 02c47c07707d1bd02d5d97228d3c29df2d6cd1ab Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 22:58:34 -0500 Subject: [PATCH 15/37] typo --- install_opi5.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_opi5.sh b/install_opi5.sh index ec8e5c5..99a4ac8 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -45,7 +45,7 @@ echo "Installing additional things" sudo apt-get update apt-get install --yes --quiet network-manager net-tools libatomic1 -sed -i '/version: 2/a\ \ renderer: NetworkManager' /root/network-config +sed -i '/version: 2/a\ \ renderer: NetworkManager' /boot/network-config grep 'renderer' /root/network-config # systemctl disable NetworkManager-wait-online.service From e6d78abfe27405c20799d37826e92650ad648fea Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 22:59:04 -0500 Subject: [PATCH 16/37] another typo --- install_opi5.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_opi5.sh b/install_opi5.sh index 99a4ac8..b0b5683 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -46,7 +46,7 @@ sudo apt-get update apt-get install --yes --quiet network-manager net-tools libatomic1 sed -i '/version: 2/a\ \ renderer: NetworkManager' /boot/network-config -grep 'renderer' /root/network-config +grep 'renderer' /boot/network-config # systemctl disable NetworkManager-wait-online.service # systemctl disable systemd-networkd-wait-online.service From 8252161f942b0342d17cbdb8d0f870ee33b2fbf5 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 23:07:28 -0500 Subject: [PATCH 17/37] not needed --- install_opi5.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_opi5.sh b/install_opi5.sh index b0b5683..0cafdcb 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -42,7 +42,7 @@ rm install.sh echo "Installing additional things" -sudo apt-get update + apt-get install --yes --quiet network-manager net-tools libatomic1 sed -i '/version: 2/a\ \ renderer: NetworkManager' /boot/network-config From 83242b6d562e4e7201b7f33009484c2488ae94d9 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 4 Jul 2024 23:23:42 -0500 Subject: [PATCH 18/37] try setting the host name too --- install_opi5.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_opi5.sh b/install_opi5.sh index 0cafdcb..67bf53d 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -48,6 +48,9 @@ apt-get install --yes --quiet network-manager net-tools libatomic1 sed -i '/version: 2/a\ \ renderer: NetworkManager' /boot/network-config grep 'renderer' /boot/network-config +sed -i 's/#hostname:.*/hostname: photonvision/' /boot/user-data +grep 'hostname' /boot/user-data + # systemctl disable NetworkManager-wait-online.service # systemctl disable systemd-networkd-wait-online.service From 26e91ca601825cbffb478db6bee59ec75018a6df Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 00:14:35 -0500 Subject: [PATCH 19/37] may be causing long boot delay --- install_opi5.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_opi5.sh b/install_opi5.sh index 67bf53d..2d6ce64 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -52,7 +52,7 @@ sed -i 's/#hostname:.*/hostname: photonvision/' /boot/user-data grep 'hostname' /boot/user-data # systemctl disable NetworkManager-wait-online.service -# systemctl disable systemd-networkd-wait-online.service +systemctl disable systemd-networkd-wait-online.service apt-get install --yes --quiet libc6 libstdc++6 From bfff39678b0c10ab54a27c4d20e1fd57b5e2c0f7 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 00:26:05 -0500 Subject: [PATCH 20/37] enable photonvision network control --- install_opi5.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install_opi5.sh b/install_opi5.sh index 2d6ce64..3d4718d 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -51,6 +51,10 @@ grep 'renderer' /boot/network-config sed -i 's/#hostname:.*/hostname: photonvision/' /boot/user-data grep 'hostname' /boot/user-data +sed -i '/Description/aAfter=network-online.target' /etc/systemd/system/photonvision.service +sed -i 's/-n$//' /etc/systemd/system/photonvision.service +cat /etc/systemd/system/photonvision.service + # systemctl disable NetworkManager-wait-online.service systemctl disable systemd-networkd-wait-online.service From c337707f6e3abc4104fdae1aae895e1865671674 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 00:43:27 -0500 Subject: [PATCH 21/37] report how much space was freed up --- install_opi5.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_opi5.sh b/install_opi5.sh index 3d4718d..c4b362a 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -11,6 +11,7 @@ echo "pi:raspberry" | chpasswd apt-get update --quiet +before=$(df --output=used / | tail -n1) # clean up stuff echo 'Purging snaps' # get rid of snaps @@ -24,6 +25,11 @@ apt-get purge --yes --quiet bluez apt-get --yes --quiet autoremove +after=$(df --output=used / | tail -n1) +freed=$before - $after + +echo "Freed up $freed bytes" + # run Photonvision install script wget https://git.io/JJrEP -O install.sh chmod +x install.sh From f4a9321fac298381c26ad0f39ae69280464e5110 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 00:59:39 -0500 Subject: [PATCH 22/37] disable cloud-init after first run --- install_opi5.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install_opi5.sh b/install_opi5.sh index c4b362a..429431e 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -57,6 +57,10 @@ grep 'renderer' /boot/network-config sed -i 's/#hostname:.*/hostname: photonvision/' /boot/user-data grep 'hostname' /boot/user-data +# command to disable cloud-init after first boot +sed -i '$a\\nruncmd:\n- [ touch, /etc/cloud/cloud-init.disabled ]' /boot/user-data +tail /boot/user-data + sed -i '/Description/aAfter=network-online.target' /etc/systemd/system/photonvision.service sed -i 's/-n$//' /etc/systemd/system/photonvision.service cat /etc/systemd/system/photonvision.service From b6ff83cec742bb4af1bdd4e7a99e37bc1bfc4133 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 01:11:05 -0500 Subject: [PATCH 23/37] fixed math expression --- install_opi5.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 429431e..0de5a7e 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -26,7 +26,7 @@ apt-get purge --yes --quiet bluez apt-get --yes --quiet autoremove after=$(df --output=used / | tail -n1) -freed=$before - $after +freed=$(( before - after )) echo "Freed up $freed bytes" @@ -55,7 +55,7 @@ sed -i '/version: 2/a\ \ renderer: NetworkManager' /boot/network-config grep 'renderer' /boot/network-config sed -i 's/#hostname:.*/hostname: photonvision/' /boot/user-data -grep 'hostname' /boot/user-data +grep 'hostname:' /boot/user-data # command to disable cloud-init after first boot sed -i '$a\\nruncmd:\n- [ touch, /etc/cloud/cloud-init.disabled ]' /boot/user-data From 3c7468ad7e69235fb9717427da906fe7382bf930 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 13:03:39 -0500 Subject: [PATCH 24/37] commenting the edits to files --- install_opi5.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 0de5a7e..dfcf948 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -51,16 +51,20 @@ echo "Installing additional things" apt-get install --yes --quiet network-manager net-tools libatomic1 +# set NetworkManager as the renderer in cloud-init sed -i '/version: 2/a\ \ renderer: NetworkManager' /boot/network-config grep 'renderer' /boot/network-config +# set the hostname in cloud-init sed -i 's/#hostname:.*/hostname: photonvision/' /boot/user-data grep 'hostname:' /boot/user-data -# command to disable cloud-init after first boot +# add run command to disable cloud-init after first boot sed -i '$a\\nruncmd:\n- [ touch, /etc/cloud/cloud-init.disabled ]' /boot/user-data tail /boot/user-data +# modify photonvision.service to wait for the network before starting +# this helps ensure that photonvision detects the network the first time it starts sed -i '/Description/aAfter=network-online.target' /etc/systemd/system/photonvision.service sed -i 's/-n$//' /etc/systemd/system/photonvision.service cat /etc/systemd/system/photonvision.service @@ -70,10 +74,6 @@ systemctl disable systemd-networkd-wait-online.service apt-get install --yes --quiet libc6 libstdc++6 -# cat > /etc/netplan/00-default-nm-renderer.yaml < Date: Fri, 5 Jul 2024 13:17:04 -0500 Subject: [PATCH 25/37] see if ignore carrier improves disconnected boot --- install_opi5.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index dfcf948..9ad3332 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -23,6 +23,8 @@ apt-get purge --yes --quiet snapd # remove bluetooth daemon apt-get purge --yes --quiet bluez +# apt-get remove -y gdb gcc g++ linux-headers* libgcc*-dev + apt-get --yes --quiet autoremove after=$(df --output=used / | tail -n1) @@ -39,14 +41,6 @@ sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=0-7/g' install.sh ./install.sh -n -q rm install.sh - -# Remove extra packages -# echo "Purging extra things" -# apt-get remove -y gdb gcc g++ linux-headers* libgcc*-dev -# apt-get remove -y snapd -# apt-get autoremove -y - - echo "Installing additional things" apt-get install --yes --quiet network-manager net-tools libatomic1 @@ -63,6 +57,13 @@ grep 'hostname:' /boot/user-data sed -i '$a\\nruncmd:\n- [ touch, /etc/cloud/cloud-init.disabled ]' /boot/user-data tail /boot/user-data +# tell NetworkManager not to wait for the carrier on ethernet, which can delay boot +# when the coprocessor isn't connected to the ethernet +cat > /etc/ < Date: Fri, 5 Jul 2024 13:19:17 -0500 Subject: [PATCH 26/37] file name helps --- install_opi5.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_opi5.sh b/install_opi5.sh index 9ad3332..6cf977a 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -59,7 +59,7 @@ tail /boot/user-data # tell NetworkManager not to wait for the carrier on ethernet, which can delay boot # when the coprocessor isn't connected to the ethernet -cat > /etc/ < /etc/NetworkManager/conf.d/50-ignore-carrier.conf < Date: Fri, 5 Jul 2024 16:23:50 -0500 Subject: [PATCH 27/37] diagnostics --- install_opi5.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install_opi5.sh b/install_opi5.sh index 6cf977a..5141261 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -1,4 +1,7 @@ +pwd +ls -l + # Create pi/raspberry login if id "$1" >/dev/null 2>&1; then echo 'user found' @@ -30,7 +33,7 @@ apt-get --yes --quiet autoremove after=$(df --output=used / | tail -n1) freed=$(( before - after )) -echo "Freed up $freed bytes" +echo "Freed up $freed KiB" # run Photonvision install script wget https://git.io/JJrEP -O install.sh From 6133a120ca0d55d58fbb8435115ed3fa9eca58a6 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 16:44:09 -0500 Subject: [PATCH 28/37] Add CIDATA --- OPi5_CIDATA/meta-data | 18 ++++++ OPi5_CIDATA/network-config | 50 ++++++++++++++++ OPi5_CIDATA/user-data | 115 +++++++++++++++++++++++++++++++++++++ 3 files changed, 183 insertions(+) create mode 100644 OPi5_CIDATA/meta-data create mode 100644 OPi5_CIDATA/network-config create mode 100644 OPi5_CIDATA/user-data diff --git a/OPi5_CIDATA/meta-data b/OPi5_CIDATA/meta-data new file mode 100644 index 0000000..c0ec3f7 --- /dev/null +++ b/OPi5_CIDATA/meta-data @@ -0,0 +1,18 @@ +# This is the meta-data configuration file for cloud-init. Please refer to the +# cloud-init documentation for more information: +# +# https://cloudinit.readthedocs.io/ + +# Set the datasource mode to "local". This ensures that user-data is acted upon +# prior to bringing up the network (because everything about the datasource is +# assumed to be local). If you wish to use an HTTP datasource instead, you can +# change this to "net" or override it on the kernel cmdline (see README). +dsmode: local + +# Specifies the "unique" identifier of the instance. Typically in cloud-init +# this is generated by the owning cloud and is actually unique (to some +# degree). Here our data-source is local, so this is just a fixed string. +# Warning: changing this will cause cloud-init to assume it is running on a +# "new" instance, and to go through first time setup again (the value is +# compared to a cached copy). +instance-id: cloud-image diff --git a/OPi5_CIDATA/network-config b/OPi5_CIDATA/network-config new file mode 100644 index 0000000..c1c0ae5 --- /dev/null +++ b/OPi5_CIDATA/network-config @@ -0,0 +1,50 @@ +# This file contains a netplan-compatible configuration which cloud-init will +# apply on first-boot (note: it will *not* update the config after the first +# boot). Please refer to the cloud-init documentation and the netplan reference +# for full details: +# +# https://netplan.io/reference +# https://cloudinit.readthedocs.io/en/latest/topics/network-config.html +# https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html +# +# Please note that the YAML format employed by this file is sensitive to +# differences in whitespace; if you are editing this file in an editor (like +# Notepad) which uses literal tabs, take care to only use spaces for +# indentation. See the following link for more details: +# +# https://en.wikipedia.org/wiki/YAML + +# Some additional examples are commented out below + +network: + version: 2 + ethernets: + zz-all-en: + match: + name: "en*" + dhcp4: true + optional: true + zz-all-eth: + match: + name: "eth*" + dhcp4: true + optional: true + +# wifis: +# wlan0: +# dhcp4: true +# optional: true +# access-points: +# myhomewifi: +# password: "S3kr1t" +# myworkwifi: +# password: "correct battery horse staple" +# workssid: +# auth: +# key-management: eap +# method: peap +# identity: "me@example.com" +# password: "passw0rd" +# ca-certificate: /etc/my_ca.pem + +# regulatory-domain: GB diff --git a/OPi5_CIDATA/user-data b/OPi5_CIDATA/user-data new file mode 100644 index 0000000..0d89f77 --- /dev/null +++ b/OPi5_CIDATA/user-data @@ -0,0 +1,115 @@ +#cloud-config + +# This is the user-data configuration file for cloud-init. By default this sets +# up an initial user called "ubuntu" with password "ubuntu", which must be +# changed at first login. However, many additional actions can be initiated on +# first boot from this file. The cloud-init documentation has more details: +# +# https://cloudinit.readthedocs.io/ +# +# Please note that the YAML format employed by this file is sensitive to +# differences in whitespace; if you are editing this file in an editor (like +# Notepad) which uses literal tabs, take care to only use spaces for +# indentation. See the following link for more details: +# +# https://en.wikipedia.org/wiki/YAML +# +# Some additional examples are provided in comments below the default +# configuration. + +# The (default) ubuntu user must be in the video group for hardware acceleration +users: + - default + - name: ubuntu + groups: video + +# On first boot, set the (default) ubuntu user's password to "ubuntu" and +# expire user passwords +chpasswd: + expire: true + users: + - name: ubuntu + password: ubuntu + type: text + +## Set the system's hostname. Please note that, unless you have a local DNS +## setup where the hostname is derived from DHCP requests (as with dnsmasq), +## setting the hostname here will not make the machine reachable by this name. +## You may also wish to install avahi-daemon (see the "packages:" key below) +## to make your machine reachable by the .local domain +#hostname: ubuntu + +## Set up the keyboard layout. See localectl(1), in particular the various +## list-x11-* sub-commands, to determine the available models, layouts, +## variants, and options +#keyboard: +# model: pc105 +# layout: gb +# variant: +# options: ctrl:nocaps + +# Enable password authentication with the SSH daemon +ssh_pwauth: true + +## On first boot, use ssh-import-id to give the specific users SSH access to +## the default user +#ssh_import_id: +#- lp:my_launchpad_username +#- gh:my_github_username + +## Add users and groups to the system, and import keys with the ssh-import-id +## utility +#groups: +#- robot: [robot] +#- robotics: [robot] +#- pi +# +#users: +#- default +#- name: robot +# gecos: Mr. Robot +# primary_group: robot +# groups: users +# ssh_import_id: foobar +# lock_passwd: false +# passwd: $5$hkui88$nvZgIle31cNpryjRfO9uArF7DYiBcWEnjqq7L1AQNN3 + +## Update apt database and upgrade packages on first boot +#package_update: true +#package_upgrade: true + +## Install additional packages on first boot +#packages: +#- avahi-daemon +#- rng-tools +#- python3-gpiozero +#- [python3-serial, 3.5-1] + +## Write arbitrary files to the file-system (including binaries!) +#write_files: +#- path: /etc/default/console-setup +# content: | +# # Consult the console-setup(5) manual page. +# ACTIVE_CONSOLES="/dev/tty[1-6]" +# CHARMAP="UTF-8" +# VIDEOMODE= +# FONT="Lat15-Terminus18x10.psf.gz" +# FONTFACE= +# FONTSIZE= +# CODESET="Lat15" +# permissions: '0644' +# owner: root:root +#- encoding: gzip +# path: /root/Makefile +# content: !!binary | +# H4sICF2DTWIAA01ha2VmaWxlAFNWCM8syVBILMjPyU/PTC1WKMlXiPB2dlFQNjSx5MpNteLi +# dLDiSoRQxYl5KeWZyRkgXrSCkoqKRmaKgm6pppKCbmqhgoFCrIKamkK1QmpyRr6Ckn92YqWS +# NdC80uQMBZhOa4VahZoaqIrwjMQSewXfxOxUhcwShcr80qLi1Jw0RSUuAIYfEJmVAAAA +# owner: root:root +# permissions: '0644' + +## Run arbitrary commands at rc.local like time +#runcmd: +#- [ ls, -l, / ] +#- [ sh, -xc, "echo $(date) ': hello world!'" ] +#- [ wget, "http://ubuntu.com", -O, /run/mydir/index.html ] From 35c690df7772879cbe38627568bd178a84b48449 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 16:44:45 -0500 Subject: [PATCH 29/37] remove ls --- install_opi5.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 5141261..7d69dc8 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -1,7 +1,4 @@ -pwd -ls -l - # Create pi/raspberry login if id "$1" >/dev/null 2>&1; then echo 'user found' @@ -26,6 +23,7 @@ apt-get purge --yes --quiet snapd # remove bluetooth daemon apt-get purge --yes --quiet bluez + # apt-get remove -y gdb gcc g++ linux-headers* libgcc*-dev apt-get --yes --quiet autoremove From dbbd5df85814139a00c47ea58bd8b922d4d52600 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 16:51:16 -0500 Subject: [PATCH 30/37] Add static IP config --- OPi5_CIDATA/network-config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OPi5_CIDATA/network-config b/OPi5_CIDATA/network-config index c1c0ae5..2eeda78 100644 --- a/OPi5_CIDATA/network-config +++ b/OPi5_CIDATA/network-config @@ -18,7 +18,13 @@ network: version: 2 + renderer: NetworkManager ethernets: + end1: + dhcp4: true + dhcp6: false + addresses: + - 192.0.2.2/24 zz-all-en: match: name: "en*" From 14af023214531ae25d69094398038c3823e1f3dd Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 16:54:40 -0500 Subject: [PATCH 31/37] copy network-config from repo --- install_opi5.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 7d69dc8..0b61604 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -46,9 +46,8 @@ echo "Installing additional things" apt-get install --yes --quiet network-manager net-tools libatomic1 -# set NetworkManager as the renderer in cloud-init -sed -i '/version: 2/a\ \ renderer: NetworkManager' /boot/network-config -grep 'renderer' /boot/network-config +# set NetworkManager as the renderer in cloud-init and static ip +cp -f ./OPi5_CIDATA/network-config /boot/network-config # set the hostname in cloud-init sed -i 's/#hostname:.*/hostname: photonvision/' /boot/user-data From 92aebe2e1593731c2c9c917fa901f3e5e473bf87 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 17:23:56 -0500 Subject: [PATCH 32/37] clean removes more than autoclean --- install_opi5.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 0b61604..34ecbbf 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -23,9 +23,6 @@ apt-get purge --yes --quiet snapd # remove bluetooth daemon apt-get purge --yes --quiet bluez - -# apt-get remove -y gdb gcc g++ linux-headers* libgcc*-dev - apt-get --yes --quiet autoremove after=$(df --output=used / | tail -n1) @@ -89,7 +86,7 @@ apt-get install --yes --quiet libcholmod3 liblapack3 libsuitesparseconfig5 rm -rf /var/lib/apt/lists/* -apt-get --yes --quiet autoclean +apt-get --yes --quiet clean rm -rf /usr/share/doc rm -rf /usr/share/locale/ From b8618573026d44a6cafc1049a75678c6b413b77c Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 17:52:17 -0500 Subject: [PATCH 33/37] restore main.yml --- .github/workflows/main.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a36af5..66e96f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,24 +15,24 @@ jobs: fail-fast: false matrix: include: - # - name: limelight - # script: ./install_limelight.sh - # base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz - # - name: limelight3 - # script: ./install_limelight3.sh - # base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz - # - name: raspi - # script: ./install_pi.sh - # base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz - # - name: snakeyes - # script: ./install_snakeyes.sh - # base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz + - name: limelight + script: ./install_limelight.sh + base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz + - name: limelight3 + script: ./install_limelight3.sh + base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz + - name: raspi + script: ./install_pi.sh + base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz + - name: snakeyes + script: ./install_snakeyes.sh + base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz - name: opi5 script: ./install_opi5.sh base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.2.1/ubuntu-24.04-preinstalled-server-arm64-orangepi-5.img.xz - # - name: opi5plus - # script: ./install_opi5.sh - # base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.1.0/ubuntu-24.04-preinstalled-server-arm64-orangepi-5-plus.img.xz + - name: opi5plus + script: ./install_opi5.sh + base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.1.0/ubuntu-24.04-preinstalled-server-arm64-orangepi-5-plus.img.xz name: "Build for ${{ matrix.name }}" From 53a09d379950118868275525ca03203db6703329 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 5 Jul 2024 20:20:20 -0500 Subject: [PATCH 34/37] Create image for opi5pro --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 66e96f6..9535180 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,9 @@ jobs: - name: opi5plus script: ./install_opi5.sh base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.1.0/ubuntu-24.04-preinstalled-server-arm64-orangepi-5-plus.img.xz + - name: opi5pro + script: ./install_opi5.sh + base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.1.0/ubuntu-24.04-preinstalled-server-arm64-orangepi-5-pro.img.xz name: "Build for ${{ matrix.name }}" From db8325cb584dea6c8c96a36c470934faf76b3fac Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Sun, 21 Jul 2024 17:56:38 -0500 Subject: [PATCH 35/37] update the networking configuration for OPi's --- OPi5_CIDATA/network-config | 42 ++++++++++++-------------------------- OPi5_CIDATA/user-data | 9 +++++--- install_opi5.sh | 32 ++++++++++++++--------------- 3 files changed, 35 insertions(+), 48 deletions(-) diff --git a/OPi5_CIDATA/network-config b/OPi5_CIDATA/network-config index 2eeda78..503a756 100644 --- a/OPi5_CIDATA/network-config +++ b/OPi5_CIDATA/network-config @@ -20,37 +20,21 @@ network: version: 2 renderer: NetworkManager ethernets: - end1: - dhcp4: true - dhcp6: false - addresses: - - 192.0.2.2/24 zz-all-en: + renderer: NetworkManager match: name: "en*" dhcp4: true - optional: true - zz-all-eth: - match: - name: "eth*" - dhcp4: true - optional: true - -# wifis: -# wlan0: -# dhcp4: true -# optional: true -# access-points: -# myhomewifi: -# password: "S3kr1t" -# myworkwifi: -# password: "correct battery horse staple" -# workssid: -# auth: -# key-management: eap -# method: peap -# identity: "me@example.com" -# password: "passw0rd" -# ca-certificate: /etc/my_ca.pem + link-local: + - ipv4 + networkmanager: + passthrough: + ipv4.dhcp-timeout: "2147483647" + ipv4.link-local: "3" + ipv6.method: "disabled" + # zz-all-eth: + # match: + # name: "eth*" + # dhcp4: true + # optional: true -# regulatory-domain: GB diff --git a/OPi5_CIDATA/user-data b/OPi5_CIDATA/user-data index 0d89f77..974be88 100644 --- a/OPi5_CIDATA/user-data +++ b/OPi5_CIDATA/user-data @@ -26,10 +26,10 @@ users: # On first boot, set the (default) ubuntu user's password to "ubuntu" and # expire user passwords chpasswd: - expire: true + expire: false users: - name: ubuntu - password: ubuntu + password: photon type: text ## Set the system's hostname. Please note that, unless you have a local DNS @@ -37,7 +37,7 @@ chpasswd: ## setting the hostname here will not make the machine reachable by this name. ## You may also wish to install avahi-daemon (see the "packages:" key below) ## to make your machine reachable by the .local domain -#hostname: ubuntu +hostname: photonvision ## Set up the keyboard layout. See localectl(1), in particular the various ## list-x11-* sub-commands, to determine the available models, layouts, @@ -113,3 +113,6 @@ ssh_pwauth: true #- [ ls, -l, / ] #- [ sh, -xc, "echo $(date) ': hello world!'" ] #- [ wget, "http://ubuntu.com", -O, /run/mydir/index.html ] + +runcmd: +- [ touch, /etc/cloud/cloud-init.disabled ] diff --git a/install_opi5.sh b/install_opi5.sh index 34ecbbf..000d00e 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -36,42 +36,42 @@ chmod +x install.sh sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=0-7/g' install.sh -./install.sh -n -q +./install.sh -m -q rm install.sh echo "Installing additional things" apt-get install --yes --quiet network-manager net-tools libatomic1 -# set NetworkManager as the renderer in cloud-init and static ip -cp -f ./OPi5_CIDATA/network-config /boot/network-config +# let netplan create the config during cloud-init +rm -f /etc/netplan/00-default-nm-renderer.yaml -# set the hostname in cloud-init -sed -i 's/#hostname:.*/hostname: photonvision/' /boot/user-data -grep 'hostname:' /boot/user-data +# set NetworkManager as the renderer in cloud-init +cp -f ./OPi5_CIDATA/network-config /boot/network-config -# add run command to disable cloud-init after first boot -sed -i '$a\\nruncmd:\n- [ touch, /etc/cloud/cloud-init.disabled ]' /boot/user-data -tail /boot/user-data +# add customized user-data file for cloud-init +cp -f ./OPi5_CIDATA/user-data /boot/user-data # tell NetworkManager not to wait for the carrier on ethernet, which can delay boot # when the coprocessor isn't connected to the ethernet -cat > /etc/NetworkManager/conf.d/50-ignore-carrier.conf < /etc/NetworkManager/conf.d/50-ignore-carrier.conf < Date: Sun, 28 Jul 2024 20:40:55 -0500 Subject: [PATCH 36/37] revert a few changes that need more work --- OPi5_CIDATA/network-config | 19 +++++++------------ OPi5_CIDATA/user-data | 4 ++-- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/OPi5_CIDATA/network-config b/OPi5_CIDATA/network-config index 503a756..b5465a2 100644 --- a/OPi5_CIDATA/network-config +++ b/OPi5_CIDATA/network-config @@ -25,16 +25,11 @@ network: match: name: "en*" dhcp4: true - link-local: - - ipv4 - networkmanager: - passthrough: - ipv4.dhcp-timeout: "2147483647" - ipv4.link-local: "3" - ipv6.method: "disabled" - # zz-all-eth: - # match: - # name: "eth*" - # dhcp4: true - # optional: true + optional: true + zz-all-eth: + renderer: NetworkManager + match: + name: "eth*" + dhcp4: true + optional: true diff --git a/OPi5_CIDATA/user-data b/OPi5_CIDATA/user-data index 974be88..a4bd227 100644 --- a/OPi5_CIDATA/user-data +++ b/OPi5_CIDATA/user-data @@ -26,10 +26,10 @@ users: # On first boot, set the (default) ubuntu user's password to "ubuntu" and # expire user passwords chpasswd: - expire: false + expire: true users: - name: ubuntu - password: photon + password: ubuntu type: text ## Set the system's hostname. Please note that, unless you have a local DNS From f1a3fe4230c7a6edcf7799d5ab2c5f49264c70a7 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Sun, 28 Jul 2024 21:01:28 -0500 Subject: [PATCH 37/37] update actions to newest versions available --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9535180..e86d241 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,7 +61,7 @@ jobs: mv ${{ steps.install_deps.outputs.image }} photonvision_${{ matrix.name }}.img sudo xz -T 0 -v photonvision_${{ matrix.name }}.img - - uses: actions/upload-artifact@v4.3.3 + - uses: actions/upload-artifact@v4.3.4 with: name: photonvision_${{ matrix.name }}.img.xz path: photonvision_${{ matrix.name }}.img.xz @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-22.04 steps: # Download literally every single artifact - - uses: actions/download-artifact@v4.1.7 + - uses: actions/download-artifact@v4.1.8 - run: find # Push to dev release - uses: pyTooling/Actions/releaser@v1.0.5 @@ -85,7 +85,7 @@ jobs: **/*.xz if: github.event_name == 'push' # Upload all xz archives to GH tag if tagged - - uses: softprops/action-gh-release@v2.0.6 + - uses: softprops/action-gh-release@v2.0.8 with: files: | **/*.xz